progress on migrating to heex templates and font-icons
This commit is contained in:
parent
d43daafdb7
commit
3eff955672
21793 changed files with 2161968 additions and 16895 deletions
assets_old/node_modules/util.promisify
17
assets_old/node_modules/util.promisify/.eslintrc
generated
vendored
Normal file
17
assets_old/node_modules/util.promisify/.eslintrc
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"env": {
|
||||
"es6": true
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"id-length": [2, { "max": 30 }],
|
||||
"max-statements": [2, 16],
|
||||
"multiline-comment-style": 0,
|
||||
"no-magic-numbers": 0,
|
||||
"operator-linebreak": [2, "before"]
|
||||
}
|
||||
}
|
12
assets_old/node_modules/util.promisify/.github/FUNDING.yml
generated
vendored
Normal file
12
assets_old/node_modules/util.promisify/.github/FUNDING.yml
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
github: [ljharb]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: npm/util.promisify
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
15
assets_old/node_modules/util.promisify/.github/workflows/rebase.yml
generated
vendored
Normal file
15
assets_old/node_modules/util.promisify/.github/workflows/rebase.yml
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
name: Automatic Rebase
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
_:
|
||||
name: "Automatic Rebase"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ljharb/rebase@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
12
assets_old/node_modules/util.promisify/.travis.yml
generated
vendored
Normal file
12
assets_old/node_modules/util.promisify/.travis.yml
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
version: ~> 1.0
|
||||
language: node_js
|
||||
os:
|
||||
- linux
|
||||
import:
|
||||
- ljharb/travis-ci:node/all.yml
|
||||
- ljharb/travis-ci:node/pretest.yml
|
||||
- ljharb/travis-ci:node/posttest.yml
|
||||
matrix:
|
||||
allow_failures:
|
||||
- node_js: "0.10"
|
||||
- node_js: "0.8"
|
58
assets_old/node_modules/util.promisify/CHANGELOG.md
generated
vendored
Normal file
58
assets_old/node_modules/util.promisify/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||
|
||||
## [v1.0.1](https://github.com/ljharb/util.promisify/compare/v1.0.0...v1.0.1) - 2020-01-16
|
||||
|
||||
### Fixed
|
||||
|
||||
- [Refactor] remove unnecessary duplication. Fixes #3. [`#3`](https://github.com/ljharb/util.promisify/issues/3)
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] use shared travis-ci configs [`f1b5e43`](https://github.com/ljharb/util.promisify/commit/f1b5e43359e74a30f35bd10a33be765de73917c6)
|
||||
- [Tests] up to `node` `v10.0`, `v9.11`, `v8.11`, `v6.14`, `4.9`; use `nvm install-latest-npm`; pin included builds to LTS [`e89390f`](https://github.com/ljharb/util.promisify/commit/e89390f498f7eb5111188fff5260cbb9f5216cd3)
|
||||
- [meta] add `auto-changelog` [`fe8e751`](https://github.com/ljharb/util.promisify/commit/fe8e751819a1318d3c929b086c70308aed50715d)
|
||||
- [Tests] up to `node` `v11.0`, `v10.12`, `v8.12` [`e09b894`](https://github.com/ljharb/util.promisify/commit/e09b894291aef2991e5c553f0b64968e03b58262)
|
||||
- [Refactor] use `callBound` helper from `es-abstract` for robustness [`baa0cf6`](https://github.com/ljharb/util.promisify/commit/baa0cf697068573cbe650e01aa6774154dd3f454)
|
||||
- [actions] add automatic rebasing / merge commit blocking [`24912f4`](https://github.com/ljharb/util.promisify/commit/24912f41b30d88b8984fb07307f737de6f576873)
|
||||
- [Docs] Add usage information for the shim/monkey-patch [`38b1ee5`](https://github.com/ljharb/util.promisify/commit/38b1ee56b558019213a6fdc2553796e8cdaf773e)
|
||||
- [Refactor] use `__proto__` instead of ES6’s `Object.setPrototypeOf` [`02ec7e2`](https://github.com/ljharb/util.promisify/commit/02ec7e241caf8848c1e141c801f98ed31325b59a)
|
||||
- [meta] create FUNDING.yml [`076b8b5`](https://github.com/ljharb/util.promisify/commit/076b8b5d19783a0e4c932e41782846e431deeb7d)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest` [`4cedaa9`](https://github.com/ljharb/util.promisify/commit/4cedaa9c6b0a77a0416b69d480b3b806c00dec6e)
|
||||
- Adds usage information to the README [`ddb4556`](https://github.com/ljharb/util.promisify/commit/ddb45562320ab8aea93dc0364640ea21ab68bfbb)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest` [`95362c0`](https://github.com/ljharb/util.promisify/commit/95362c0e93186a30ede6333430ddfa0606a769b4)
|
||||
- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `eslint` [`fd79a58`](https://github.com/ljharb/util.promisify/commit/fd79a58573186c83d81777fa0b1ad293b2f475e3)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`2cf792b`](https://github.com/ljharb/util.promisify/commit/2cf792b9dcaab24b642ef1de8239ceb089fc5d38)
|
||||
- [Docs] Link to util.promisify-all [`032ff5c`](https://github.com/ljharb/util.promisify/commit/032ff5c6ee2958a02f56c770337441c3a587b88c)
|
||||
- [Tests] allow node 0.10 and 0.8 to fail again [`c2f8418`](https://github.com/ljharb/util.promisify/commit/c2f8418dfc36b83cd8a18b86a735c2936c6f5f9e)
|
||||
- [Tests] remove mistakenly added travis jobs [`13a242f`](https://github.com/ljharb/util.promisify/commit/13a242fb33dcbd4e2872436f2e430e62526fb147)
|
||||
- [Tests] on `node` `v10.1` [`8244578`](https://github.com/ljharb/util.promisify/commit/82445786197fd3e54aeffaa2fe0f1da38bcafec4)
|
||||
- [meta] add `funding` field [`e1645ca`](https://github.com/ljharb/util.promisify/commit/e1645ca10648d1ae917e3f5ae954b37de338dc20)
|
||||
- [New] add `auto` entry point [`2c48047`](https://github.com/ljharb/util.promisify/commit/2c480479d67646fb2bfb92a4e5d50ff14bcdca3c)
|
||||
- [Fix] use `has-symbols` package to ensure we support Symbol shams too. [`75135c8`](https://github.com/ljharb/util.promisify/commit/75135c8a48ea4e1be1cfe7a95af11905818303e7)
|
||||
- [Deps] update `es-abstract` [`32aa5cc`](https://github.com/ljharb/util.promisify/commit/32aa5ccd3ee7513edef99ed7d516d6c0f4901883)
|
||||
- [Dev Deps] update `eslint` [`c3043e6`](https://github.com/ljharb/util.promisify/commit/c3043e6e562847102e9136479268777bc07e9b26)
|
||||
- [Deps] update `object.getownpropertydescriptors` [`521ed25`](https://github.com/ljharb/util.promisify/commit/521ed25d40dc230b38ac3755036219fbaf94694c)
|
||||
- [Deps] update `has-symbol` [`16d91ec`](https://github.com/ljharb/util.promisify/commit/16d91ecc0016c31e49b7c3da938c19132c243732)
|
||||
- [Deps] update `define-properties` [`532915e`](https://github.com/ljharb/util.promisify/commit/532915ed58fe6f0edc3670837b510e09fb39b99a)
|
||||
- [Tests] `npm` v5+ breaks on node < v4 [`0647c63`](https://github.com/ljharb/util.promisify/commit/0647c63d932451c043c3e8f3b003c636057f035a)
|
||||
|
||||
## v1.0.0 - 2017-05-30
|
||||
|
||||
### Commits
|
||||
|
||||
- Dotfiles. [`02c20cb`](https://github.com/ljharb/util.promisify/commit/02c20cb4eb01cf656102f57f71635785114f1d09)
|
||||
- Initial implementation. [`05ff048`](https://github.com/ljharb/util.promisify/commit/05ff0480448f019a85675ce81ecc4e9bdc099286)
|
||||
- Initial commit [`9472155`](https://github.com/ljharb/util.promisify/commit/947215502491bb1b3238aa0ac5c67258e41db3a8)
|
||||
- package.json [`e0302c0`](https://github.com/ljharb/util.promisify/commit/e0302c01e5e3b1dd78647303f9a4337b5bb63196)
|
||||
- Initial readme. [`5df78e1`](https://github.com/ljharb/util.promisify/commit/5df78e16e89e8328c61d6bbac85409a36560fe3b)
|
||||
- [Dev Deps] add `safe-publish-latest` [`596b6b4`](https://github.com/ljharb/util.promisify/commit/596b6b4fbce79dbaf5fff366454ab5b31d2eb993)
|
||||
- [Tests] add `npm run lint` [`54c2ccb`](https://github.com/ljharb/util.promisify/commit/54c2ccb85db682fc293b30a0bfece76d0a5c7c60)
|
||||
- [Dev Deps] add `@es-shims/api` [`d9014f1`](https://github.com/ljharb/util.promisify/commit/d9014f12add2fb3fe743647df614c69ed305a824)
|
||||
- [Tests] allow 0.10 and 0.8 to fail, for now. [`c5c7b61`](https://github.com/ljharb/util.promisify/commit/c5c7b619b88878fc715d1768b48bd45378c9f807)
|
21
assets_old/node_modules/util.promisify/LICENSE
generated
vendored
Normal file
21
assets_old/node_modules/util.promisify/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2017 Jordan Harband
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
28
assets_old/node_modules/util.promisify/README.md
generated
vendored
Normal file
28
assets_old/node_modules/util.promisify/README.md
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
# util.promisify
|
||||
Polyfill for util.promisify in node versions < v8
|
||||
|
||||
node v8.0.0 added support for a built-in `util.promisify`: https://github.com/nodejs/node/pull/12442/
|
||||
|
||||
This package provides the built-in `util.promisify` in node v8.0.0 and later, and a replacement in other environments.
|
||||
|
||||
## Usage
|
||||
|
||||
**Direct**
|
||||
```js
|
||||
const promisify = require('util.promisify');
|
||||
// Use `promisify` just like the built-in method on `util`
|
||||
```
|
||||
|
||||
**Shim**
|
||||
```js
|
||||
require('util.promisify/shim')();
|
||||
// `util.promisify` is now defined
|
||||
const util = require('util');
|
||||
// Use `util.promisify`
|
||||
```
|
||||
|
||||
Note: this package requires a native ES5 environment, and for `Promise` to be globally available. It will throw upon requiring it if these are not present.
|
||||
|
||||
## Promisifying modules
|
||||
|
||||
If you want to promisify a whole module, like the `fs` module, you can use [`util.promisify-all`](https://www.npmjs.com/package/util.promisify-all).
|
3
assets_old/node_modules/util.promisify/auto.js
generated
vendored
Normal file
3
assets_old/node_modules/util.promisify/auto.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
require('./shim')();
|
88
assets_old/node_modules/util.promisify/implementation.js
generated
vendored
Normal file
88
assets_old/node_modules/util.promisify/implementation.js
generated
vendored
Normal file
|
@ -0,0 +1,88 @@
|
|||
'use strict';
|
||||
|
||||
var isES5 = typeof Object.defineProperty === 'function'
|
||||
&& typeof Object.defineProperties === 'function';
|
||||
|
||||
var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
|
||||
|
||||
if (!isES5 || !hasProto) {
|
||||
throw new TypeError('util.promisify requires a true ES5 environment, that also supports `__proto__`');
|
||||
}
|
||||
|
||||
var getOwnPropertyDescriptors = require('object.getownpropertydescriptors');
|
||||
|
||||
if (typeof Promise !== 'function') {
|
||||
throw new TypeError('`Promise` must be globally available for util.promisify to work.');
|
||||
}
|
||||
|
||||
var callBound = require('es-abstract/helpers/callBound');
|
||||
|
||||
var $slice = callBound('Array.prototype.slice');
|
||||
var $concat = callBound('Array.prototype.concat');
|
||||
var $forEach = callBound('Array.prototype.forEach');
|
||||
|
||||
var hasSymbols = require('has-symbols')();
|
||||
|
||||
var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
|
||||
var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
|
||||
|
||||
module.exports = function promisify(orig) {
|
||||
if (typeof orig !== 'function') {
|
||||
var error = new TypeError('The "original" argument must be of type function');
|
||||
error.name = 'TypeError [ERR_INVALID_ARG_TYPE]';
|
||||
error.code = 'ERR_INVALID_ARG_TYPE';
|
||||
throw error;
|
||||
}
|
||||
|
||||
if (hasSymbols && orig[kCustomPromisifiedSymbol]) {
|
||||
var customFunction = orig[kCustomPromisifiedSymbol];
|
||||
if (typeof customFunction !== 'function') {
|
||||
throw new TypeError('The [util.promisify.custom] property must be a function');
|
||||
}
|
||||
Object.defineProperty(customFunction, kCustomPromisifiedSymbol, {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: customFunction,
|
||||
writable: false
|
||||
});
|
||||
return customFunction;
|
||||
}
|
||||
|
||||
// Names to create an object from in case the callback receives multiple
|
||||
// arguments, e.g. ['stdout', 'stderr'] for child_process.exec.
|
||||
var argumentNames = orig[kCustomPromisifyArgsSymbol];
|
||||
|
||||
var promisified = function fn() {
|
||||
var args = $slice(arguments);
|
||||
var self = this; // eslint-disable-line no-invalid-this
|
||||
return new Promise(function (resolve, reject) {
|
||||
orig.apply(self, $concat(args, function (err) {
|
||||
var values = arguments.length > 1 ? $slice(arguments, 1) : [];
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else if (typeof argumentNames !== 'undefined' && values.length > 1) {
|
||||
var obj = {};
|
||||
$forEach(argumentNames, function (name, index) {
|
||||
obj[name] = values[index];
|
||||
});
|
||||
resolve(obj);
|
||||
} else {
|
||||
resolve(values[0]);
|
||||
}
|
||||
}));
|
||||
});
|
||||
};
|
||||
|
||||
promisified.__proto__ = orig.__proto__; // eslint-disable-line no-proto
|
||||
|
||||
Object.defineProperty(promisified, kCustomPromisifiedSymbol, {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: promisified,
|
||||
writable: false
|
||||
});
|
||||
return Object.defineProperties(promisified, getOwnPropertyDescriptors(orig));
|
||||
};
|
||||
|
||||
module.exports.custom = kCustomPromisifiedSymbol;
|
||||
module.exports.customPromisifyArgs = kCustomPromisifyArgsSymbol;
|
24
assets_old/node_modules/util.promisify/index.js
generated
vendored
Normal file
24
assets_old/node_modules/util.promisify/index.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
'use strict';
|
||||
|
||||
var define = require('define-properties');
|
||||
var util = require('util');
|
||||
|
||||
var implementation = require('./implementation');
|
||||
var getPolyfill = require('./polyfill');
|
||||
var polyfill = getPolyfill();
|
||||
var shim = require('./shim');
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
var boundPromisify = function promisify(orig) {
|
||||
/* eslint-enable no-unused-vars */
|
||||
return polyfill.apply(util, arguments);
|
||||
};
|
||||
define(boundPromisify, {
|
||||
custom: polyfill.custom,
|
||||
customPromisifyArgs: polyfill.customPromisifyArgs,
|
||||
getPolyfill: getPolyfill,
|
||||
implementation: implementation,
|
||||
shim: shim
|
||||
});
|
||||
|
||||
module.exports = boundPromisify;
|
57
assets_old/node_modules/util.promisify/package.json
generated
vendored
Normal file
57
assets_old/node_modules/util.promisify/package.json
generated
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"name": "util.promisify",
|
||||
"version": "1.0.1",
|
||||
"description": "Polyfill/shim for util.promisify in node versions < v8",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"define-properties": "^1.1.3",
|
||||
"es-abstract": "^1.17.2",
|
||||
"has-symbols": "^1.0.1",
|
||||
"object.getownpropertydescriptors": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@es-shims/api": "^2.1.2",
|
||||
"@ljharb/eslint-config": "^15.1.0",
|
||||
"auto-changelog": "^1.16.2",
|
||||
"eslint": "^6.8.0",
|
||||
"safe-publish-latest": "^1.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "safe-publish-latest",
|
||||
"lint": "eslint .",
|
||||
"pretest": "npm run lint",
|
||||
"tests-only": "es-shim-api --bound",
|
||||
"test": "npm run tests-only",
|
||||
"posttest": "npx aud",
|
||||
"version": "auto-changelog && git add CHANGELOG.md",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ljharb/util.promisify.git"
|
||||
},
|
||||
"keywords": [
|
||||
"promisify",
|
||||
"promise",
|
||||
"util",
|
||||
"polyfill",
|
||||
"shim",
|
||||
"util.promisify"
|
||||
],
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ljharb/util.promisify/issues"
|
||||
},
|
||||
"homepage": "https://github.com/ljharb/util.promisify#readme",
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false
|
||||
}
|
||||
}
|
11
assets_old/node_modules/util.promisify/polyfill.js
generated
vendored
Normal file
11
assets_old/node_modules/util.promisify/polyfill.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
var util = require('util');
|
||||
var implementation = require('./implementation');
|
||||
|
||||
module.exports = function getPolyfill() {
|
||||
if (typeof util.promisify === 'function') {
|
||||
return util.promisify;
|
||||
}
|
||||
return implementation;
|
||||
};
|
17
assets_old/node_modules/util.promisify/shim.js
generated
vendored
Normal file
17
assets_old/node_modules/util.promisify/shim.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
var util = require('util');
|
||||
var getPolyfill = require('./polyfill');
|
||||
|
||||
module.exports = function shimUtilPromisify() {
|
||||
var polyfill = getPolyfill();
|
||||
if (polyfill !== util.promisify) {
|
||||
Object.defineProperty(util, 'promisify', {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
value: polyfill,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
return polyfill;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue