new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ObjectUnsubscribedError = void 0;
|
||||
var createErrorClass_1 = require("./createErrorClass");
|
||||
exports.ObjectUnsubscribedError = createErrorClass_1.createErrorClass(function (_super) {
|
||||
return function ObjectUnsubscribedErrorImpl() {
|
||||
_super(this);
|
||||
this.name = 'ObjectUnsubscribedError';
|
||||
this.message = 'object unsubscribed';
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=ObjectUnsubscribedError.js.map
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _namespace = _interopRequireDefault(require("./namespace"));
|
||||
|
||||
var _types = require("./types");
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
||||
|
||||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||
|
||||
var Tag = /*#__PURE__*/function (_Namespace) {
|
||||
_inheritsLoose(Tag, _Namespace);
|
||||
|
||||
function Tag(opts) {
|
||||
var _this;
|
||||
|
||||
_this = _Namespace.call(this, opts) || this;
|
||||
_this.type = _types.TAG;
|
||||
return _this;
|
||||
}
|
||||
|
||||
return Tag;
|
||||
}(_namespace["default"]);
|
||||
|
||||
exports["default"] = Tag;
|
||||
module.exports = exports.default;
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
if (!require("./is-implemented")()) {
|
||||
Object.defineProperty(Array.prototype, "splice", {
|
||||
value: require("./shim"),
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
export function applyMixins(derivedCtor: any, baseCtors: any[]) {
|
||||
for (let i = 0, len = baseCtors.length; i < len; i++) {
|
||||
const baseCtor = baseCtors[i];
|
||||
const propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype);
|
||||
for (let j = 0, len2 = propertyKeys.length; j < len2; j++) {
|
||||
const name = propertyKeys[j];
|
||||
derivedCtor.prototype[name] = baseCtor.prototype[name];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./is-implemented")() ? Math.atanh : require("./shim");
|
||||
@@ -0,0 +1,26 @@
|
||||
import assertString from './util/assertString';
|
||||
import { alphanumeric } from './alpha';
|
||||
export default function isAlphanumeric(_str) {
|
||||
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';
|
||||
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||
assertString(_str);
|
||||
var str = _str;
|
||||
var ignore = options.ignore;
|
||||
|
||||
if (ignore) {
|
||||
if (ignore instanceof RegExp) {
|
||||
str = str.replace(ignore, '');
|
||||
} else if (typeof ignore === 'string') {
|
||||
str = str.replace(new RegExp("[".concat(ignore.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g, '\\$&'), "]"), 'g'), ''); // escape regex for ignore
|
||||
} else {
|
||||
throw new Error('ignore should be instance of a String or RegExp');
|
||||
}
|
||||
}
|
||||
|
||||
if (locale in alphanumeric) {
|
||||
return alphanumeric[locale].test(str);
|
||||
}
|
||||
|
||||
throw new Error("Invalid locale '".concat(locale, "'"));
|
||||
}
|
||||
export var locales = Object.keys(alphanumeric);
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"min.js","sourceRoot":"","sources":["../../../../src/internal/operators/min.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAElC,iDAAgD;AAgDhD,SAAgB,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ACvB,iBAAiB,CAAC,CAAC,CAAC,EAAE,CA6LxB;AAED,oBAAY,kBAAkB,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CACtE,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KACrB,CAAC,CAAA"}
|
||||
@@ -0,0 +1,44 @@
|
||||
# latest-version
|
||||
|
||||
> Get the latest version of an npm package
|
||||
|
||||
Fetches the version directly from the registry instead of depending on the massive [npm](https://github.com/npm/npm/blob/8b5e7b6ae5b4cd2d7d62eaf93b1428638b387072/package.json#L37-L85) module like the [latest](https://github.com/bahamas10/node-latest) module does.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install latest-version
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import latestVersion from 'latest-version';
|
||||
|
||||
console.log(await latestVersion('ava'));
|
||||
//=> '0.18.0'
|
||||
|
||||
console.log(await latestVersion('@sindresorhus/df'));
|
||||
//=> '1.0.1'
|
||||
|
||||
// Also works with semver ranges and dist-tags
|
||||
console.log(await latestVersion('npm', {version: 'latest-5'}));
|
||||
//=> '5.5.1'
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
- [latest-version-cli](https://github.com/sindresorhus/latest-version-cli) - CLI for this module
|
||||
- [package-json](https://github.com/sindresorhus/package-json) - Get the package.json of a package from the npm registry
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-latest-version?utm_source=npm-latest-version&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"lift.js","sourceRoot":"","sources":["../../../../src/internal/util/lift.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,UAAU,OAAO,CAAC,MAAW;IACjC,OAAO,UAAU,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,CAAC;AAClC,CAAC;AAMD,MAAM,UAAU,OAAO,CACrB,IAAqF;IAErF,OAAO,CAAC,MAAqB,EAAE,EAAE;QAC/B,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,OAAO,MAAM,CAAC,IAAI,CAAC,UAA+B,YAA2B;gBAC3E,IAAI;oBACF,OAAO,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;iBACjC;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACjB;YACH,CAAC,CAAC,CAAC;SACJ;QACD,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAChE,CAAC,CAAC;AACJ,CAAC"}
|
||||
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
var callBind = require('call-bind');
|
||||
|
||||
var $resolve = GetIntrinsic('%Promise.resolve%', true);
|
||||
var $PromiseResolve = $resolve && callBind($resolve);
|
||||
|
||||
// https://262.ecma-international.org/9.0/#sec-promise-resolve
|
||||
|
||||
module.exports = function PromiseResolve(C, x) {
|
||||
if (!$PromiseResolve) {
|
||||
throw new SyntaxError('This environment does not support Promises.');
|
||||
}
|
||||
return $PromiseResolve(C, x);
|
||||
};
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/observable/concat.ts"],"names":[],"mappings":";;;AAEA,oDAAmD;AACnD,qCAA4C;AAC5C,+BAA8B;AA4G9B,SAAgB,MAAM;IAAC,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACnC,OAAO,qBAAS,EAAE,CAAC,WAAI,CAAC,IAAI,EAAE,mBAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC;AAFD,wBAEC"}
|
||||
@@ -0,0 +1,141 @@
|
||||
'use strict';
|
||||
|
||||
var has = require('has');
|
||||
var inspect = require('object-inspect');
|
||||
var supportsDescriptors = require('define-properties').supportsDescriptors;
|
||||
|
||||
var forEach = require('foreach');
|
||||
var availableFlags = require('available-regexp-flags');
|
||||
var regexProperties = require('available-regexp-flags/properties');
|
||||
|
||||
var sortedFlags = availableFlags.slice().sort(function (a, b) { return a.localeCompare(b); }).join('');
|
||||
|
||||
var getRegexLiteral = function (stringRegex) {
|
||||
try {
|
||||
// eslint-disable-next-line no-new-func
|
||||
return Function('return ' + stringRegex + ';')();
|
||||
} catch (e) { /**/ }
|
||||
return null;
|
||||
};
|
||||
|
||||
module.exports = function runTests(flags, t) {
|
||||
t.equal(flags(/a/g), 'g', 'flags(/a/g) !== "g"');
|
||||
t.equal(flags(/a/gmi), 'gim', 'flags(/a/gmi) !== "gim"');
|
||||
t.equal(flags(new RegExp('a', 'gmi')), 'gim', 'flags(new RegExp("a", "gmi")) !== "gim"');
|
||||
t.equal(flags(/a/), '', 'flags(/a/) !== ""');
|
||||
t.equal(flags(new RegExp('a')), '', 'flags(new RegExp("a")) !== ""');
|
||||
|
||||
forEach(availableFlags, function (flag) {
|
||||
var property = regexProperties[flag];
|
||||
t.test(property + ' flag', function (st) {
|
||||
st.equal(flags(getRegexLiteral('/a/' + flag)), flag, 'flags(/a/' + flag + ') !== ' + inspect(flag));
|
||||
st.equal(flags(new RegExp('a', flag)), flag, 'flags(new RegExp("a", ' + inspect(flag) + ')) !== ' + inspect(flag));
|
||||
st.end();
|
||||
});
|
||||
});
|
||||
|
||||
t.test('sorting', function (st) {
|
||||
st.equal(flags(/a/gim), 'gim', 'flags(/a/gim) !== "gim"');
|
||||
st.equal(flags(/a/mig), 'gim', 'flags(/a/mig) !== "gim"');
|
||||
st.equal(flags(/a/mgi), 'gim', 'flags(/a/mgi) !== "gim"');
|
||||
if (has(RegExp.prototype, 'sticky')) {
|
||||
st.equal(flags(getRegexLiteral('/a/gyim')), 'gimy', 'flags(/a/gyim) !== "gimy"');
|
||||
}
|
||||
if (has(RegExp.prototype, 'unicode')) {
|
||||
st.equal(flags(getRegexLiteral('/a/ugmi')), 'gimu', 'flags(/a/ugmi) !== "gimu"');
|
||||
}
|
||||
if (has(RegExp.prototype, 'dotAll')) {
|
||||
st.equal(flags(getRegexLiteral('/a/sgmi')), 'gims', 'flags(/a/sgmi) !== "gims"');
|
||||
}
|
||||
|
||||
var randomFlags = availableFlags.slice().sort(function () { return Math.random() > 0.5 ? 1 : -1; }).join('');
|
||||
st.equal(
|
||||
flags(getRegexLiteral('/a/' + randomFlags)),
|
||||
sortedFlags,
|
||||
'random: flags(/a/' + randomFlags + ') === ' + inspect(sortedFlags)
|
||||
);
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('basic examples', function (st) {
|
||||
st.equal(flags(/a/g), 'g', '(/a/g).flags !== "g"');
|
||||
st.equal(flags(/a/gmi), 'gim', '(/a/gmi).flags !== "gim"');
|
||||
st.equal(flags(new RegExp('a', 'gmi')), 'gim', 'new RegExp("a", "gmi").flags !== "gim"');
|
||||
st.equal(flags(/a/), '', '(/a/).flags !== ""');
|
||||
st.equal(flags(new RegExp('a')), '', 'new RegExp("a").flags !== ""');
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('generic flags', function (st) {
|
||||
st.equal(flags({}), '');
|
||||
st.equal(flags({ ignoreCase: true }), 'i');
|
||||
st.equal(flags({ dotAll: 1, global: 0, sticky: 1, unicode: 1 }), 'suy');
|
||||
st.equal(flags({ __proto__: { multiline: true } }), 'm');
|
||||
|
||||
var obj = {};
|
||||
forEach(availableFlags, function (flag) {
|
||||
obj[regexProperties[flag]] = true;
|
||||
});
|
||||
st.equal(flags(obj), sortedFlags, 'an object with every available flag: ' + sortedFlags);
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('throws properly', function (st) {
|
||||
var nonObjects = ['', false, true, 42, NaN, null, undefined];
|
||||
st.plan(nonObjects.length);
|
||||
var throwsOnNonObject = function (nonObject) {
|
||||
st['throws'](flags.bind(null, nonObject), TypeError, inspect(nonObject) + ' is not an Object');
|
||||
};
|
||||
nonObjects.forEach(throwsOnNonObject);
|
||||
});
|
||||
|
||||
t.test('getters', { skip: !supportsDescriptors }, function (st) {
|
||||
/* eslint getter-return: 0 */
|
||||
var calls = '';
|
||||
var re = {};
|
||||
Object.defineProperty(re, 'hasIndices', {
|
||||
get: function () {
|
||||
calls += 'd';
|
||||
}
|
||||
});
|
||||
Object.defineProperty(re, 'global', {
|
||||
get: function () {
|
||||
calls += 'g';
|
||||
}
|
||||
});
|
||||
Object.defineProperty(re, 'ignoreCase', {
|
||||
get: function () {
|
||||
calls += 'i';
|
||||
}
|
||||
});
|
||||
Object.defineProperty(re, 'multiline', {
|
||||
get: function () {
|
||||
calls += 'm';
|
||||
}
|
||||
});
|
||||
Object.defineProperty(re, 'dotAll', {
|
||||
get: function () {
|
||||
calls += 's';
|
||||
}
|
||||
});
|
||||
Object.defineProperty(re, 'unicode', {
|
||||
get: function () {
|
||||
calls += 'u';
|
||||
}
|
||||
});
|
||||
Object.defineProperty(re, 'sticky', {
|
||||
get: function () {
|
||||
calls += 'y';
|
||||
}
|
||||
});
|
||||
|
||||
flags(re);
|
||||
|
||||
st.equal(calls, 'dgimsuy', 'getters are called in expected order');
|
||||
|
||||
st.end();
|
||||
});
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,47 @@
|
||||
'use strict'
|
||||
|
||||
const browsers = require('./browsers').browsers
|
||||
const versions = require('./browserVersions').browserVersions
|
||||
const agentsData = require('../../data/agents')
|
||||
|
||||
function unpackBrowserVersions(versionsData) {
|
||||
return Object.keys(versionsData).reduce((usage, version) => {
|
||||
usage[versions[version]] = versionsData[version]
|
||||
return usage
|
||||
}, {})
|
||||
}
|
||||
|
||||
module.exports.agents = Object.keys(agentsData).reduce((map, key) => {
|
||||
let versionsData = agentsData[key]
|
||||
map[browsers[key]] = Object.keys(versionsData).reduce((data, entry) => {
|
||||
if (entry === 'A') {
|
||||
data.usage_global = unpackBrowserVersions(versionsData[entry])
|
||||
} else if (entry === 'C') {
|
||||
data.versions = versionsData[entry].reduce((list, version) => {
|
||||
if (version === '') {
|
||||
list.push(null)
|
||||
} else {
|
||||
list.push(versions[version])
|
||||
}
|
||||
return list
|
||||
}, [])
|
||||
} else if (entry === 'D') {
|
||||
data.prefix_exceptions = unpackBrowserVersions(versionsData[entry])
|
||||
} else if (entry === 'E') {
|
||||
data.browser = versionsData[entry]
|
||||
} else if (entry === 'F') {
|
||||
data.release_date = Object.keys(versionsData[entry]).reduce(
|
||||
(map2, key2) => {
|
||||
map2[versions[key2]] = versionsData[entry][key2]
|
||||
return map2
|
||||
},
|
||||
{}
|
||||
)
|
||||
} else {
|
||||
// entry is B
|
||||
data.prefix = versionsData[entry]
|
||||
}
|
||||
return data
|
||||
}, {})
|
||||
return map
|
||||
}, {})
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bufferToggle.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferToggle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAA+C;AAE/C,qCAAuC;AACvC,qDAAoD;AACpD,2DAAgE;AAChE,qCAAoC;AACpC,+CAA8C;AA6C9C,SAAgB,YAAY,CAC1B,QAA4B,EAC5B,eAAmD;IAEnD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,OAAO,GAAU,EAAE,CAAC;QAG1B,qBAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAC3B,6CAAwB,CACtB,UAAU,EACV,UAAC,SAAS;YACR,IAAM,MAAM,GAAQ,EAAE,CAAC;YACvB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAGrB,IAAM,mBAAmB,GAAG,IAAI,2BAAY,EAAE,CAAC;YAE/C,IAAM,UAAU,GAAG;gBACjB,qBAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACxB,mBAAmB,CAAC,WAAW,EAAE,CAAC;YACpC,CAAC,CAAC;YAGF,mBAAmB,CAAC,GAAG,CAAC,qBAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,UAAU,EAAE,WAAI,CAAC,CAAC,CAAC,CAAC;QACnI,CAAC,EACD,WAAI,CACL,CACF,CAAC;QAEF,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;;;gBAEJ,KAAqB,IAAA,YAAA,SAAA,OAAO,CAAA,gCAAA,qDAAE;oBAAzB,IAAM,MAAM,oBAAA;oBACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACpB;;;;;;;;;QACH,CAAC,EACD;YAEE,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAG,CAAC,CAAC;aACnC;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAlDD,oCAkDC"}
|
||||
@@ -0,0 +1,15 @@
|
||||
let postcss = require('postcss')
|
||||
|
||||
let processResult = require('./process-result')
|
||||
let parse = require('./parser')
|
||||
|
||||
module.exports = function async(plugins) {
|
||||
let processor = postcss(plugins)
|
||||
return async input => {
|
||||
let result = await processor.process(input, {
|
||||
parser: parse,
|
||||
from: undefined
|
||||
})
|
||||
return processResult(result)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
import { SHA2 } from './_sha2.js';
|
||||
import { rotr, wrapConstructor } from './utils.js';
|
||||
// Choice: a ? b : c
|
||||
const Chi = (a, b, c) => (a & b) ^ (~a & c);
|
||||
// Majority function, true if any two inpust is true
|
||||
const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c);
|
||||
// Round constants:
|
||||
// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311)
|
||||
// prettier-ignore
|
||||
const SHA256_K = new Uint32Array([
|
||||
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
|
||||
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
|
||||
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
|
||||
0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
|
||||
0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
|
||||
0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
|
||||
0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
|
||||
0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
|
||||
]);
|
||||
// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19):
|
||||
// prettier-ignore
|
||||
const IV = new Uint32Array([
|
||||
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
|
||||
]);
|
||||
// Temporary buffer, not used to store anything between runs
|
||||
// Named this way because it matches specification.
|
||||
const SHA256_W = new Uint32Array(64);
|
||||
class SHA256 extends SHA2 {
|
||||
constructor() {
|
||||
super(64, 32, 8, false);
|
||||
// We cannot use array here since array allows indexing by variable
|
||||
// which means optimizer/compiler cannot use registers.
|
||||
this.A = IV[0] | 0;
|
||||
this.B = IV[1] | 0;
|
||||
this.C = IV[2] | 0;
|
||||
this.D = IV[3] | 0;
|
||||
this.E = IV[4] | 0;
|
||||
this.F = IV[5] | 0;
|
||||
this.G = IV[6] | 0;
|
||||
this.H = IV[7] | 0;
|
||||
}
|
||||
get() {
|
||||
const { A, B, C, D, E, F, G, H } = this;
|
||||
return [A, B, C, D, E, F, G, H];
|
||||
}
|
||||
// prettier-ignore
|
||||
set(A, B, C, D, E, F, G, H) {
|
||||
this.A = A | 0;
|
||||
this.B = B | 0;
|
||||
this.C = C | 0;
|
||||
this.D = D | 0;
|
||||
this.E = E | 0;
|
||||
this.F = F | 0;
|
||||
this.G = G | 0;
|
||||
this.H = H | 0;
|
||||
}
|
||||
process(view, offset) {
|
||||
// Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array
|
||||
for (let i = 0; i < 16; i++, offset += 4)
|
||||
SHA256_W[i] = view.getUint32(offset, false);
|
||||
for (let i = 16; i < 64; i++) {
|
||||
const W15 = SHA256_W[i - 15];
|
||||
const W2 = SHA256_W[i - 2];
|
||||
const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3);
|
||||
const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10);
|
||||
SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0;
|
||||
}
|
||||
// Compression function main loop, 64 rounds
|
||||
let { A, B, C, D, E, F, G, H } = this;
|
||||
for (let i = 0; i < 64; i++) {
|
||||
const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);
|
||||
const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;
|
||||
const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);
|
||||
const T2 = (sigma0 + Maj(A, B, C)) | 0;
|
||||
H = G;
|
||||
G = F;
|
||||
F = E;
|
||||
E = (D + T1) | 0;
|
||||
D = C;
|
||||
C = B;
|
||||
B = A;
|
||||
A = (T1 + T2) | 0;
|
||||
}
|
||||
// Add the compressed chunk to the current hash value
|
||||
A = (A + this.A) | 0;
|
||||
B = (B + this.B) | 0;
|
||||
C = (C + this.C) | 0;
|
||||
D = (D + this.D) | 0;
|
||||
E = (E + this.E) | 0;
|
||||
F = (F + this.F) | 0;
|
||||
G = (G + this.G) | 0;
|
||||
H = (H + this.H) | 0;
|
||||
this.set(A, B, C, D, E, F, G, H);
|
||||
}
|
||||
roundClean() {
|
||||
SHA256_W.fill(0);
|
||||
}
|
||||
destroy() {
|
||||
this.set(0, 0, 0, 0, 0, 0, 0, 0);
|
||||
this.buffer.fill(0);
|
||||
}
|
||||
}
|
||||
// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
|
||||
class SHA224 extends SHA256 {
|
||||
constructor() {
|
||||
super();
|
||||
this.A = 0xc1059ed8 | 0;
|
||||
this.B = 0x367cd507 | 0;
|
||||
this.C = 0x3070dd17 | 0;
|
||||
this.D = 0xf70e5939 | 0;
|
||||
this.E = 0xffc00b31 | 0;
|
||||
this.F = 0x68581511 | 0;
|
||||
this.G = 0x64f98fa7 | 0;
|
||||
this.H = 0xbefa4fa4 | 0;
|
||||
this.outputLen = 28;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* SHA2-256 hash function
|
||||
* @param message - data that would be hashed
|
||||
*/
|
||||
export const sha256 = wrapConstructor(() => new SHA256());
|
||||
export const sha224 = wrapConstructor(() => new SHA224());
|
||||
//# sourceMappingURL=sha256.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
export type Donor = {
|
||||
receiptNeeded: boolean;
|
||||
donationAmount: number;
|
||||
paidDonationAmount: number;
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
lastname: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
var os = require('os');
|
||||
|
||||
// adapted from https://github.com/sindresorhus/os-homedir/blob/11e089f4754db38bb535e5a8416320c4446e8cfd/index.js
|
||||
|
||||
module.exports = os.homedir || function homedir() {
|
||||
var home = process.env.HOME;
|
||||
var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null;
|
||||
}
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
return home || (user ? '/Users/' + user : null);
|
||||
}
|
||||
|
||||
if (process.platform === 'linux') {
|
||||
return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null)); // eslint-disable-line no-extra-parens
|
||||
}
|
||||
|
||||
return home || null;
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var define = require('define-properties');
|
||||
var callBind = require('call-bind');
|
||||
|
||||
var implementation = require('./implementation');
|
||||
var getPolyfill = require('./polyfill');
|
||||
var shim = require('./shim');
|
||||
|
||||
var bound = callBind(implementation);
|
||||
|
||||
define(bound, {
|
||||
getPolyfill: getPolyfill,
|
||||
implementation: implementation,
|
||||
shim: shim
|
||||
});
|
||||
|
||||
module.exports = bound;
|
||||
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* https://tc39.es/ecma402/#sec-supportedlocales
|
||||
* @param availableLocales
|
||||
* @param requestedLocales
|
||||
* @param options
|
||||
*/
|
||||
export declare function SupportedLocales(availableLocales: Set<string>, requestedLocales: string[], options?: {
|
||||
localeMatcher?: 'best fit' | 'lookup';
|
||||
}): string[];
|
||||
//# sourceMappingURL=SupportedLocales.d.ts.map
|
||||
@@ -0,0 +1,93 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
export let selectedValue = [];
|
||||
export let activeSelectedValue = undefined;
|
||||
export let isDisabled = false;
|
||||
export let multiFullItemClearable = false;
|
||||
export let getSelectionLabel = undefined;
|
||||
|
||||
function handleClear(i, event) {
|
||||
event.stopPropagation();
|
||||
dispatch('multiItemClear', {i});
|
||||
}
|
||||
</script>
|
||||
|
||||
{#each selectedValue as value, i}
|
||||
<div class="multiSelectItem {activeSelectedValue === i ? 'active' : ''} {isDisabled ? 'disabled' : ''}" on:click={event => multiFullItemClearable ? handleClear(i, event) : {}}>
|
||||
<div class="multiSelectItem_label">
|
||||
{@html getSelectionLabel(value)}
|
||||
</div>
|
||||
{#if !isDisabled && !multiFullItemClearable}
|
||||
<div class="multiSelectItem_clear" on:click="{event => handleClear(i, event)}">
|
||||
<svg width="100%" height="100%" viewBox="-2 -2 50 50" focusable="false" role="presentation">
|
||||
<path
|
||||
d="M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124 l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
.multiSelectItem {
|
||||
background: var(--multiItemBG, #EBEDEF);
|
||||
margin: var(--multiItemMargin, 5px 5px 0 0);
|
||||
border-radius: var(--multiItemBorderRadius, 16px);
|
||||
height: var(--multiItemHeight, 32px);
|
||||
line-height: var(--multiItemHeight, 32px);
|
||||
display: flex;
|
||||
cursor: default;
|
||||
padding: var(--multiItemPadding, 0 10px 0 15px);
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.multiSelectItem_label {
|
||||
margin: var(--multiLabelMargin, 0 5px 0 0);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.multiSelectItem:hover,
|
||||
.multiSelectItem.active {
|
||||
background-color: var(--multiItemActiveBG, #006FFF);
|
||||
color: var(--multiItemActiveColor, #fff);
|
||||
}
|
||||
|
||||
.multiSelectItem.disabled:hover {
|
||||
background: var(--multiItemDisabledHoverBg, #EBEDEF);
|
||||
color: var(--multiItemDisabledHoverColor, #C1C6CC);
|
||||
}
|
||||
|
||||
.multiSelectItem_clear {
|
||||
border-radius: var(--multiClearRadius, 50%);
|
||||
background: var(--multiClearBG, #52616F);
|
||||
min-width: var(--multiClearWidth, 16px);
|
||||
max-width: var(--multiClearWidth, 16px);
|
||||
height: var(--multiClearHeight, 16px);
|
||||
position: relative;
|
||||
top: var(--multiClearTop, 8px);
|
||||
text-align: var(--multiClearTextAlign, center);
|
||||
padding: var(--multiClearPadding, 1px);
|
||||
}
|
||||
|
||||
.multiSelectItem_clear:hover,
|
||||
.active .multiSelectItem_clear {
|
||||
background: var(--multiClearHoverBG, #fff);
|
||||
}
|
||||
|
||||
.multiSelectItem_clear:hover svg,
|
||||
.active .multiSelectItem_clear svg {
|
||||
fill: var(--multiClearHoverFill, #006FFF);
|
||||
}
|
||||
|
||||
.multiSelectItem_clear svg {
|
||||
fill: var(--multiClearFill, #EBEDEF);
|
||||
vertical-align: top;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,73 @@
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var common = require('./common');
|
||||
|
||||
common.register('ln', _ln, {
|
||||
cmdOptions: {
|
||||
's': 'symlink',
|
||||
'f': 'force',
|
||||
},
|
||||
});
|
||||
|
||||
//@
|
||||
//@ ### ln([options,] source, dest)
|
||||
//@
|
||||
//@ Available options:
|
||||
//@
|
||||
//@ + `-s`: symlink
|
||||
//@ + `-f`: force
|
||||
//@
|
||||
//@ Examples:
|
||||
//@
|
||||
//@ ```javascript
|
||||
//@ ln('file', 'newlink');
|
||||
//@ ln('-sf', 'file', 'existing');
|
||||
//@ ```
|
||||
//@
|
||||
//@ Links `source` to `dest`. Use `-f` to force the link, should `dest` already exist.
|
||||
function _ln(options, source, dest) {
|
||||
if (!source || !dest) {
|
||||
common.error('Missing <source> and/or <dest>');
|
||||
}
|
||||
|
||||
source = String(source);
|
||||
var sourcePath = path.normalize(source).replace(RegExp(path.sep + '$'), '');
|
||||
var isAbsolute = (path.resolve(source) === sourcePath);
|
||||
dest = path.resolve(process.cwd(), String(dest));
|
||||
|
||||
if (fs.existsSync(dest)) {
|
||||
if (!options.force) {
|
||||
common.error('Destination file exists', { continue: true });
|
||||
}
|
||||
|
||||
fs.unlinkSync(dest);
|
||||
}
|
||||
|
||||
if (options.symlink) {
|
||||
var isWindows = process.platform === 'win32';
|
||||
var linkType = isWindows ? 'file' : null;
|
||||
var resolvedSourcePath = isAbsolute ? sourcePath : path.resolve(process.cwd(), path.dirname(dest), source);
|
||||
if (!fs.existsSync(resolvedSourcePath)) {
|
||||
common.error('Source file does not exist', { continue: true });
|
||||
} else if (isWindows && common.statFollowLinks(resolvedSourcePath).isDirectory()) {
|
||||
linkType = 'junction';
|
||||
}
|
||||
|
||||
try {
|
||||
fs.symlinkSync(linkType === 'junction' ? resolvedSourcePath : source, dest, linkType);
|
||||
} catch (err) {
|
||||
common.error(err.message);
|
||||
}
|
||||
} else {
|
||||
if (!fs.existsSync(source)) {
|
||||
common.error('Source file does not exist', { continue: true });
|
||||
}
|
||||
try {
|
||||
fs.linkSync(source, dest);
|
||||
} catch (err) {
|
||||
common.error(err.message);
|
||||
}
|
||||
}
|
||||
return '';
|
||||
}
|
||||
module.exports = _ln;
|
||||
@@ -0,0 +1,23 @@
|
||||
var LazyWrapper = require('./_LazyWrapper'),
|
||||
copyArray = require('./_copyArray');
|
||||
|
||||
/**
|
||||
* Creates a clone of the lazy wrapper object.
|
||||
*
|
||||
* @private
|
||||
* @name clone
|
||||
* @memberOf LazyWrapper
|
||||
* @returns {Object} Returns the cloned `LazyWrapper` object.
|
||||
*/
|
||||
function lazyClone() {
|
||||
var result = new LazyWrapper(this.__wrapped__);
|
||||
result.__actions__ = copyArray(this.__actions__);
|
||||
result.__dir__ = this.__dir__;
|
||||
result.__filtered__ = this.__filtered__;
|
||||
result.__iteratees__ = copyArray(this.__iteratees__);
|
||||
result.__takeCount__ = this.__takeCount__;
|
||||
result.__views__ = copyArray(this.__views__);
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = lazyClone;
|
||||
@@ -0,0 +1,7 @@
|
||||
parser: typescript
|
||||
printWidth: 80
|
||||
tabWidth: 2
|
||||
singleQuote: true
|
||||
trailingComma: all
|
||||
arrowParens: always
|
||||
bracketSpacing: false
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "global-dirs",
|
||||
"version": "3.0.1",
|
||||
"description": "Get the directory of globally installed packages and binaries",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/global-dirs",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"global",
|
||||
"prefix",
|
||||
"path",
|
||||
"paths",
|
||||
"npm",
|
||||
"yarn",
|
||||
"node",
|
||||
"modules",
|
||||
"node-modules",
|
||||
"package",
|
||||
"packages",
|
||||
"binary",
|
||||
"binaries",
|
||||
"bin",
|
||||
"directory",
|
||||
"directories",
|
||||
"npmrc",
|
||||
"rc",
|
||||
"config",
|
||||
"root",
|
||||
"resolve"
|
||||
],
|
||||
"dependencies": {
|
||||
"ini": "2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^2.4.0",
|
||||
"execa": "^5.0.0",
|
||||
"import-fresh": "^3.3.0",
|
||||
"tsd": "^0.14.0",
|
||||
"xo": "^0.37.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"jsxRuntime.module.js","sources":["../src/index.js"],"sourcesContent":["import { options, Fragment } from 'preact';\n\n/** @typedef {import('preact').VNode} VNode */\n\nlet vnodeId = 0;\n\n/**\n * @fileoverview\n * This file exports various methods that implement Babel's \"automatic\" JSX runtime API:\n * - jsx(type, props, key)\n * - jsxs(type, props, key)\n * - jsxDEV(type, props, key, __source, __self)\n *\n * The implementation of createVNode here is optimized for performance.\n * Benchmarks: https://esbench.com/bench/5f6b54a0b4632100a7dcd2b3\n */\n\n/**\n * JSX.Element factory used by Babel's {runtime:\"automatic\"} JSX transform\n * @param {VNode['type']} type\n * @param {VNode['props']} props\n * @param {VNode['key']} [key]\n * @param {unknown} [isStaticChildren]\n * @param {unknown} [__source]\n * @param {unknown} [__self]\n */\nfunction createVNode(type, props, key, isStaticChildren, __source, __self) {\n\t// We'll want to preserve `ref` in props to get rid of the need for\n\t// forwardRef components in the future, but that should happen via\n\t// a separate PR.\n\tlet normalizedProps = {},\n\t\tref,\n\t\ti;\n\tfor (i in props) {\n\t\tif (i == 'ref') {\n\t\t\tref = props[i];\n\t\t} else {\n\t\t\tnormalizedProps[i] = props[i];\n\t\t}\n\t}\n\n\tconst vnode = {\n\t\ttype,\n\t\tprops: normalizedProps,\n\t\tkey,\n\t\tref,\n\t\t_children: null,\n\t\t_parent: null,\n\t\t_depth: 0,\n\t\t_dom: null,\n\t\t_nextDom: undefined,\n\t\t_component: null,\n\t\t_hydrating: null,\n\t\tconstructor: undefined,\n\t\t_original: --vnodeId,\n\t\t__source,\n\t\t__self\n\t};\n\n\t// If a Component VNode, check for and apply defaultProps.\n\t// Note: `type` is often a String, and can be `undefined` in development.\n\tif (typeof type === 'function' && (ref = type.defaultProps)) {\n\t\tfor (i in ref)\n\t\t\tif (typeof normalizedProps[i] === 'undefined') {\n\t\t\t\tnormalizedProps[i] = ref[i];\n\t\t\t}\n\t}\n\n\tif (options.vnode) options.vnode(vnode);\n\treturn vnode;\n}\n\nexport {\n\tcreateVNode as jsx,\n\tcreateVNode as jsxs,\n\tcreateVNode as jsxDEV,\n\tFragment\n};\n"],"names":["vnodeId","createVNode","type","props","key","isStaticChildren","__source","__self","ref","i","normalizedProps","vnode","__k","__","__b","__e","__d","undefined","__c","__h","constructor","__v","defaultProps","options"],"mappings":"8DAIA,IAAIA,EAAU,EAsBd,SAASC,EAAYC,EAAMC,EAAOC,EAAKC,EAAkBC,EAAUC,GAIlE,IACCC,EACAC,EAFGC,EAAkB,GAGtB,IAAKD,KAAKN,EACA,OAALM,EACHD,EAAML,EAAMM,GAEZC,EAAgBD,GAAKN,EAAMM,GAI7B,IAAME,EAAQ,CACbT,KAAAA,EACAC,MAAOO,EACPN,IAAAA,EACAI,IAAAA,EACAI,IAAW,KACXC,GAAS,KACTC,IAAQ,EACRC,IAAM,KACNC,SAAUC,EACVC,IAAY,KACZC,IAAY,KACZC,iBAAaH,EACbI,MAAarB,EACbM,SAAAA,EACAC,OAAAA,GAKD,GAAoB,mBAATL,IAAwBM,EAAMN,EAAKoB,cAC7C,IAAKb,KAAKD,OACyB,IAAvBE,EAAgBD,KAC1BC,EAAgBD,GAAKD,EAAIC,IAK5B,OADIc,EAAQZ,OAAOY,EAAQZ,MAAMA,GAC1BA,CACP"}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "es6-iterator",
|
||||
"version": "2.0.3",
|
||||
"description": "Iterator abstraction based on ES6 specification",
|
||||
"author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)",
|
||||
"keywords": [
|
||||
"iterator",
|
||||
"array",
|
||||
"list",
|
||||
"set",
|
||||
"map",
|
||||
"generator"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/medikoo/es6-iterator.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"d": "1",
|
||||
"es5-ext": "^0.10.35",
|
||||
"es6-symbol": "^3.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.9",
|
||||
"eslint-config-medikoo-es5": "^1.4.4",
|
||||
"event-emitter": "^0.3.5",
|
||||
"tad": "^0.2.7"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "medikoo-es5",
|
||||
"root": true,
|
||||
"rules": {
|
||||
"no-extend-native": "off"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint --ignore-path=.gitignore .",
|
||||
"test": "node ./node_modules/tad/bin/tad"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import { config } from '../config';
|
||||
import { timeoutProvider } from '../scheduler/timeoutProvider';
|
||||
|
||||
/**
|
||||
* Handles an error on another job either with the user-configured {@link onUnhandledError},
|
||||
* or by throwing it on that new job so it can be picked up by `window.onerror`, `process.on('error')`, etc.
|
||||
*
|
||||
* This should be called whenever there is an error that is out-of-band with the subscription
|
||||
* or when an error hits a terminal boundary of the subscription and no error handler was provided.
|
||||
*
|
||||
* @param err the error to report
|
||||
*/
|
||||
export function reportUnhandledError(err: any) {
|
||||
timeoutProvider.setTimeout(() => {
|
||||
const { onUnhandledError } = config;
|
||||
if (onUnhandledError) {
|
||||
// Execute the user-configured error handler.
|
||||
onUnhandledError(err);
|
||||
} else {
|
||||
// Throw so it is picked up by the runtime's uncaught error mechanism.
|
||||
throw err;
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export type ResponseTrack = {
|
||||
id: number;
|
||||
name: string;
|
||||
distance: number;
|
||||
minimumLapTime?: number;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
# Intl LocaleMatcher
|
||||
|
||||
We've migrated the docs to https://formatjs.io/docs/polyfills/intl-localematcher.
|
||||
@@ -0,0 +1,15 @@
|
||||
var common = require('./common');
|
||||
|
||||
//@
|
||||
//@ ### error()
|
||||
//@
|
||||
//@ Tests if error occurred in the last command. Returns a truthy value if an
|
||||
//@ error returned, or a falsy value otherwise.
|
||||
//@
|
||||
//@ **Note**: do not rely on the
|
||||
//@ return value to be an error message. If you need the last error message, use
|
||||
//@ the `.stderr` attribute from the last command's return value instead.
|
||||
function error() {
|
||||
return common.state.error;
|
||||
}
|
||||
module.exports = error;
|
||||
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1,48 @@
|
||||
'use strict'
|
||||
|
||||
const u = require('universalify').fromCallback
|
||||
const fs = require('graceful-fs')
|
||||
const path = require('path')
|
||||
const mkdir = require('../mkdirs')
|
||||
const remove = require('../remove')
|
||||
|
||||
const emptyDir = u(function emptyDir (dir, callback) {
|
||||
callback = callback || function () {}
|
||||
fs.readdir(dir, (err, items) => {
|
||||
if (err) return mkdir.mkdirs(dir, callback)
|
||||
|
||||
items = items.map(item => path.join(dir, item))
|
||||
|
||||
deleteItem()
|
||||
|
||||
function deleteItem () {
|
||||
const item = items.pop()
|
||||
if (!item) return callback()
|
||||
remove.remove(item, err => {
|
||||
if (err) return callback(err)
|
||||
deleteItem()
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
function emptyDirSync (dir) {
|
||||
let items
|
||||
try {
|
||||
items = fs.readdirSync(dir)
|
||||
} catch (err) {
|
||||
return mkdir.mkdirsSync(dir)
|
||||
}
|
||||
|
||||
items.forEach(item => {
|
||||
item = path.join(dir, item)
|
||||
remove.removeSync(item)
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
emptyDirSync,
|
||||
emptydirSync: emptyDirSync,
|
||||
emptyDir,
|
||||
emptydir: emptyDir
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('get', require('../get'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0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ference in New Issue
Block a user