new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _processor = _interopRequireDefault(require("./processor"));
|
||||
|
||||
var selectors = _interopRequireWildcard(require("./selectors"));
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||||
|
||||
var parser = function parser(processor) {
|
||||
return new _processor["default"](processor);
|
||||
};
|
||||
|
||||
Object.assign(parser, selectors);
|
||||
delete parser.__esModule;
|
||||
var _default = parser;
|
||||
exports["default"] = _default;
|
||||
module.exports = exports.default;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subscribeOn.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/subscribeOn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,GAAE,MAAU,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAIvG"}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { SchedulerLike } from '../types';
|
||||
/**
|
||||
* Used in {@link scheduled} to create an observable from an Iterable.
|
||||
* @param input The iterable to create an observable from
|
||||
* @param scheduler The scheduler to use
|
||||
*/
|
||||
export declare function scheduleIterable<T>(input: Iterable<T>, scheduler: SchedulerLike): Observable<T>;
|
||||
//# sourceMappingURL=scheduleIterable.d.ts.map
|
||||
@@ -0,0 +1,46 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $Array = GetIntrinsic('%Array%');
|
||||
var $species = GetIntrinsic('%Symbol.species%', true);
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var Get = require('./Get');
|
||||
var IsArray = require('./IsArray');
|
||||
var IsConstructor = require('./IsConstructor');
|
||||
var IsInteger = require('./IsInteger');
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/6.0/#sec-arrayspeciescreate
|
||||
|
||||
module.exports = function ArraySpeciesCreate(originalArray, length) {
|
||||
if (!IsInteger(length) || length < 0) {
|
||||
throw new $TypeError('Assertion failed: length must be an integer >= 0');
|
||||
}
|
||||
var len = length === 0 ? 0 : length;
|
||||
var C;
|
||||
var isArray = IsArray(originalArray);
|
||||
if (isArray) {
|
||||
C = Get(originalArray, 'constructor');
|
||||
// TODO: figure out how to make a cross-realm normal Array, a same-realm Array
|
||||
// if (IsConstructor(C)) {
|
||||
// if C is another realm's Array, C = undefined
|
||||
// Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ?
|
||||
// }
|
||||
if ($species && Type(C) === 'Object') {
|
||||
C = Get(C, $species);
|
||||
if (C === null) {
|
||||
C = void 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (typeof C === 'undefined') {
|
||||
return $Array(len);
|
||||
}
|
||||
if (!IsConstructor(C)) {
|
||||
throw new $TypeError('C must be a constructor');
|
||||
}
|
||||
return new C(len); // Construct(C, len);
|
||||
};
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"2":"C K L G M N O Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H","16":"P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB EC FC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC"},E:{"1":"B","2":"I v J D E F A C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e PC QC RC SC qB AC TC rB"},G:{"2":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"2":"oC"},I:{"2":"tB I f pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"2":"A B C h qB AC rB"},L:{"2":"H"},M:{"2":"H"},N:{"2":"A B"},O:{"2":"vC"},P:{"2":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"2":"1B"},R:{"2":"9C"},S:{"2":"AD BD"}},B:7,C:"Explicit descendant combinator >>"};
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"name": "data-uri-to-buffer",
|
||||
"version": "4.0.1",
|
||||
"description": "Generate a Buffer instance from a Data URI string",
|
||||
"type": "module",
|
||||
"exports": "./dist/index.js",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist",
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"test": "jest",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/TooTallNate/node-data-uri-to-buffer.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12"
|
||||
},
|
||||
"keywords": [
|
||||
"data",
|
||||
"uri",
|
||||
"datauri",
|
||||
"data-uri",
|
||||
"buffer",
|
||||
"convert",
|
||||
"rfc2397",
|
||||
"2397"
|
||||
],
|
||||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/TooTallNate/node-data-uri-to-buffer/issues"
|
||||
},
|
||||
"homepage": "https://github.com/TooTallNate/node-data-uri-to-buffer",
|
||||
"devDependencies": {
|
||||
"@types/jest": "^27.0.2",
|
||||
"@types/node": "^12.20.36",
|
||||
"jest": "^27.3.1",
|
||||
"ts-jest": "^27.0.7",
|
||||
"typescript": "^4.4.4"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "ts-jest",
|
||||
"globals": {
|
||||
"ts-jest": {
|
||||
"diagnostics": false,
|
||||
"isolatedModules": true
|
||||
}
|
||||
},
|
||||
"verbose": false,
|
||||
"testEnvironment": "node",
|
||||
"testMatch": [
|
||||
"<rootDir>/test/**/*.test.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = isJSON;
|
||||
|
||||
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
||||
|
||||
var _merge = _interopRequireDefault(require("./util/merge"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
var default_json_options = {
|
||||
allow_primitives: false
|
||||
};
|
||||
|
||||
function isJSON(str, options) {
|
||||
(0, _assertString.default)(str);
|
||||
|
||||
try {
|
||||
options = (0, _merge.default)(options, default_json_options);
|
||||
var primitives = [];
|
||||
|
||||
if (options.allow_primitives) {
|
||||
primitives = [null, false, true];
|
||||
}
|
||||
|
||||
var obj = JSON.parse(str);
|
||||
return primitives.includes(obj) || !!obj && _typeof(obj) === 'object';
|
||||
} catch (e) {
|
||||
/* ignore */
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
module.exports = exports.default;
|
||||
module.exports.default = exports.default;
|
||||
@@ -0,0 +1,23 @@
|
||||
import EachBlock from '../EachBlock';
|
||||
import ThenBlock from '../ThenBlock';
|
||||
import CatchBlock from '../CatchBlock';
|
||||
import InlineComponent from '../InlineComponent';
|
||||
import Element from '../Element';
|
||||
import SlotTemplate from '../SlotTemplate';
|
||||
import ConstTag from '../ConstTag';
|
||||
declare type NodeWithScope = EachBlock | ThenBlock | CatchBlock | InlineComponent | Element | SlotTemplate | ConstTag;
|
||||
export default class TemplateScope {
|
||||
names: Set<string>;
|
||||
dependencies_for_name: Map<string, Set<string>>;
|
||||
owners: Map<string, NodeWithScope>;
|
||||
parent?: TemplateScope;
|
||||
constructor(parent?: TemplateScope);
|
||||
add(name: any, dependencies: Set<string>, owner: any): this;
|
||||
child(): TemplateScope;
|
||||
is_top_level(name: string): any;
|
||||
get_owner(name: string): NodeWithScope;
|
||||
is_let(name: string): boolean;
|
||||
is_await(name: string): boolean;
|
||||
is_const(name: string): boolean;
|
||||
}
|
||||
export {};
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "fs.realpath",
|
||||
"version": "1.0.0",
|
||||
"description": "Use node's fs.realpath, but fall back to the JS implementation if the native one fails",
|
||||
"main": "index.js",
|
||||
"dependencies": {},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"test": "tap test/*.js --cov"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/isaacs/fs.realpath.git"
|
||||
},
|
||||
"keywords": [
|
||||
"realpath",
|
||||
"fs",
|
||||
"polyfill"
|
||||
],
|
||||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
||||
"license": "ISC",
|
||||
"files": [
|
||||
"old.js",
|
||||
"index.js"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0.00621,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.01863,"53":0,"54":0,"55":0.01242,"56":0,"57":0,"58":0,"59":0.00621,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.02484,"69":0.01242,"70":0.01242,"71":0.01242,"72":0.01242,"73":0.01242,"74":0.01863,"75":0.01863,"76":0.01242,"77":0.01242,"78":0.04967,"79":0.03105,"80":0.01863,"81":0.01863,"82":0.02484,"83":0.02484,"84":0.00621,"85":0,"86":0,"87":0,"88":0.00621,"89":0,"90":0,"91":0.01242,"92":0,"93":0,"94":0,"95":0.00621,"96":0.00621,"97":0,"98":0,"99":0,"100":0.03105,"101":0.00621,"102":0.25457,"103":0.01242,"104":0.01242,"105":0.02484,"106":0.01242,"107":0.02484,"108":0.07451,"109":1.57709,"110":1.13004,"111":0.00621,"112":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0.00621,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0.00621,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0.00621,"39":0,"40":0,"41":0,"42":0.01242,"43":0,"44":0,"45":0,"46":0,"47":0.00621,"48":0,"49":0.00621,"50":0,"51":0.00621,"52":0,"53":0,"54":0,"55":0.00621,"56":0.00621,"57":0.00621,"58":0.00621,"59":0.00621,"60":0.01242,"61":0.00621,"62":0,"63":0.00621,"64":0,"65":0,"66":0.04346,"67":0,"68":0.07451,"69":0.04967,"70":0.05588,"71":0.06209,"72":0.08072,"73":0.02484,"74":0.07451,"75":0.04967,"76":0.05588,"77":0.05588,"78":0.08072,"79":0.12418,"80":0.10555,"81":0.08693,"83":0.10555,"84":0.15523,"85":0.14902,"86":0.37254,"87":0.15523,"88":0.10555,"89":0.09934,"90":0.11797,"91":0.03725,"92":0.01863,"93":0.04967,"94":0.01863,"95":0.00621,"96":0.02484,"97":0.00621,"98":0.01863,"99":0.16764,"100":1.12383,"101":0.39117,"102":0.29803,"103":0.2732,"104":0.21732,"105":0.08072,"106":0.08072,"107":0.15523,"108":0.99965,"109":11.32522,"110":7.69295,"111":0,"112":0,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0.00621,"44":0,"45":0,"46":0.00621,"47":0.00621,"48":0.00621,"49":0.00621,"50":0,"51":0.00621,"52":0,"53":0.01863,"54":0.01863,"55":0.02484,"56":0.00621,"57":0,"58":0,"60":0.00621,"62":0,"63":0.00621,"64":0,"65":0.00621,"66":0.00621,"67":0.01242,"68":0.00621,"69":0,"70":0.00621,"71":0,"72":0.00621,"73":0.00621,"74":0.00621,"75":0.00621,"76":0.00621,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0.00621,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0.06209,"94":0.67678,"95":0.27941,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0.00621},B:{"12":0,"13":0,"14":0,"15":0,"16":0,"17":0.00621,"18":0.01242,"79":0.01242,"80":0.03725,"81":0.03105,"83":0.03105,"84":0.03725,"85":0.01863,"86":0.03105,"87":0.02484,"88":0.01863,"89":0.02484,"90":0.02484,"91":0,"92":0.00621,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0.00621,"100":0,"101":0,"102":0.01863,"103":0,"104":0.00621,"105":0.00621,"106":0.01242,"107":0.02484,"108":0.08072,"109":1.45291,"110":2.04897},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.01242,"14":0.04346,"15":0.01242,_:"0","3.1":0,"3.2":0,"5.1":0.00621,"6.1":0,"7.1":0,"9.1":0.44705,"10.1":0,"11.1":0.00621,"12.1":0.00621,"13.1":0.06209,"14.1":0.11176,"15.1":0.01863,"15.2-15.3":0.01863,"15.4":0.05588,"15.5":0.0683,"15.6":0.42221,"16.0":0.0683,"16.1":0.14902,"16.2":0.49672,"16.3":0.49672,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0.00879,"9.0-9.2":0.01978,"9.3":0.05494,"10.0-10.2":0.01978,"10.3":0.08351,"11.0-11.2":0.08131,"11.3-11.4":0.0901,"12.0-12.1":0.07472,"12.2-12.5":0.46588,"13.0-13.1":0.04395,"13.2":0.04395,"13.3":0.04175,"13.4-13.7":0.1846,"14.0-14.4":0.41095,"14.5-14.8":0.6307,"15.0-15.1":0.24393,"15.2-15.3":0.23294,"15.4":0.29887,"15.5":0.5428,"15.6":1.85475,"16.0":2.4415,"16.1":5.50711,"16.2":4.66763,"16.3":2.99748,"16.4":0.00659},P:{"4":0.05186,"20":0.51858,"5.0-5.4":0.01037,"6.2-6.4":0,"7.2-7.4":0,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0.01037,"12.0":0.02074,"13.0":0.03111,"14.0":0.05186,"15.0":0.02074,"16.0":0.06223,"17.0":0.06223,"18.0":0.12446,"19.0":1.23422},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.01748,"4.2-4.3":0.01049,"4.4":0,"4.4.3-4.4.4":0.07341},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.02856,"9":0.00714,"10":0.00714,"11":0.09996,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0.1706},H:{"0":0.41633},L:{"0":36.20614},R:{_:"0"},M:{"0":0.69754},Q:{"13.1":0}};
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"config-chain","version":"1.1.13","files":{"LICENCE":{"checkedAt":1678883672782,"integrity":"sha512-eeqKwzVXiMHUQbTtmjTZ1IbUFXo0PpnX+rlZyT6+vcWz97iNg4EmnBYpE9qhPW7ulmQIbmRcAS4SCTY4+uxoDQ==","mode":420,"size":1070},"package.json":{"checkedAt":1678883672782,"integrity":"sha512-kgChefqssiLiShuP5qocsQmZ6JmK4lR7nq9LFasJXikGbPT0n2V5NwkPrOHrS4O2eubkPRWgcOnfsm/mnKW0RQ==","mode":420,"size":675},"index.js":{"checkedAt":1678883672782,"integrity":"sha512-TCLyawAWGO9RzvontmYocKqGPoYfhNGj6HgiQMUJHTZ3P+ZeR7Fq9jGsYrVe8n46a6IpBsd9ewBtr6QBI6dFyA==","mode":493,"size":7208},"readme.markdown":{"checkedAt":1678883672786,"integrity":"sha512-zYvT+CK+dNkRFz/T6QteMDqyyKjMx23OkP/nPiJFHrFQBuoKHdHI2KtN+q/r5TVPc2O5l45TiUulhhnhi1nZqg==","mode":420,"size":6018}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"schedulePromise.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/schedulePromise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,MAAM,UAAU,eAAe,CAAI,KAAqB,EAAE,SAAwB;IAChF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC"}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"{src,test}/**/*.js": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
// Type definitions for html-minifier 4.0
|
||||
// Project: https://github.com/kangax/html-minifier, https://kangax.github.io/html-minifier
|
||||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
||||
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as UglifyJS from 'uglify-js';
|
||||
import * as CleanCSS from 'clean-css';
|
||||
import * as RelateUrl from 'relateurl';
|
||||
|
||||
export function minify(text: string, options?: Options): string;
|
||||
|
||||
export interface Options {
|
||||
// Treat attributes in case sensitive manner (useful for custom HTML tags)
|
||||
caseSensitive?: boolean | undefined;
|
||||
|
||||
// Omit attribute values from boolean attributes
|
||||
collapseBooleanAttributes?: boolean | undefined;
|
||||
|
||||
// Don't leave any spaces between display:inline; elements when collapsing. Must be used in conjunction with collapseWhitespace=true
|
||||
collapseInlineTagWhitespace?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Collapse white space that contributes to text nodes in a document tree
|
||||
* @see http://perfectionkills.com/experimenting-with-html-minifier/#collapse_whitespace
|
||||
*/
|
||||
collapseWhitespace?: boolean | undefined;
|
||||
|
||||
// Always collapse to 1 space (never remove it entirely). Must be used in conjunction with collapseWhitespace=true
|
||||
conservativeCollapse?: boolean | undefined;
|
||||
/**
|
||||
* Handle parse errors instead of aborting
|
||||
* @default false
|
||||
*/
|
||||
continueOnParseError?: boolean | undefined;
|
||||
|
||||
// Arrays of regex'es that allow to support custom attribute assign expressions (e.g. '<div flex?="{{mode != cover}}"></div>')
|
||||
customAttrAssign?: RegExp[] | undefined;
|
||||
|
||||
// Regex that specifies custom attribute to strip newlines from (e.g. /ng-class/)
|
||||
customAttrCollapse?: RegExp | undefined;
|
||||
|
||||
// Arrays of regex'es that allow to support custom attribute surround expressions (e.g. <input {{#if value}}checked="checked"{{/if}}>)
|
||||
customAttrSurround?: RegExp[] | undefined;
|
||||
|
||||
// Arrays of regex'es that allow to support custom event attributes for minifyJS (e.g. ng-click)
|
||||
customEventAttributes?: RegExp[] | undefined;
|
||||
|
||||
// Use direct Unicode characters whenever possible
|
||||
decodeEntities?: boolean | undefined;
|
||||
|
||||
// Parse input according to HTML5 specifications
|
||||
html5?: boolean | undefined;
|
||||
|
||||
// Array of regex'es that allow to ignore certain comments, when matched
|
||||
ignoreCustomComments?: RegExp[] | undefined;
|
||||
|
||||
// Array of regex'es that allow to ignore certain fragments, when matched (e.g. <?php ... ?>, {{ ... }}, etc.)
|
||||
ignoreCustomFragments?: RegExp[] | undefined;
|
||||
|
||||
// Insert tags generated by HTML parser
|
||||
includeAutoGeneratedTags?: boolean | undefined;
|
||||
|
||||
// Keep the trailing slash on singleton elements
|
||||
keepClosingSlash?: boolean | undefined;
|
||||
|
||||
// Specify a maximum line length. Compressed output will be split by newlines at valid HTML split-points
|
||||
maxLineLength?: number | undefined;
|
||||
|
||||
// Minify CSS in style elements and style attributes (uses clean-css or function specified)
|
||||
minifyCSS?: boolean | CleanCSS.Options | ((text: string) => string) | undefined;
|
||||
|
||||
// Minify JavaScript in script elements and event attributes (uses UglifyJS or function specified)
|
||||
minifyJS?: boolean | UglifyJS.MinifyOptions | ((text: string, inline: boolean) => string) | undefined;
|
||||
|
||||
// Minify URLs in various attributes (uses relateurl or function specified)
|
||||
minifyURLs?: boolean | RelateUrl.Options | ((text: string) => string) | undefined;
|
||||
|
||||
// Always collapse to 1 line break (never remove it entirely) when whitespace between tags include a line break. Must be used in conjunction with collapseWhitespace=true
|
||||
preserveLineBreaks?: boolean | undefined;
|
||||
|
||||
// Prevents the escaping of the values of attributes
|
||||
preventAttributesEscaping?: boolean | undefined;
|
||||
|
||||
// Process contents of conditional comments through minifier
|
||||
processConditionalComments?: boolean | undefined;
|
||||
|
||||
// Array of strings corresponding to types of script elements to process through minifier (e.g. text/ng-template, text/x-handlebars-template, etc.)
|
||||
processScripts?: string[] | undefined;
|
||||
|
||||
// Type of quote to use for attribute values (' or ")
|
||||
quoteCharacter?: string | undefined;
|
||||
|
||||
/**
|
||||
* Remove quotes around attributes when possible
|
||||
* @see http://perfectionkills.com/experimenting-with-html-minifier/#remove_attribute_quotes
|
||||
*/
|
||||
removeAttributeQuotes?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Strip HTML comments
|
||||
* @see http://perfectionkills.com/experimenting-with-html-minifier/#remove_comments
|
||||
*/
|
||||
removeComments?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Remove all attributes with whitespace-only values
|
||||
* @see http://perfectionkills.com/experimenting-with-html-minifier/#remove_empty_or_blank_attributes
|
||||
*/
|
||||
removeEmptyAttributes?: boolean | ((attrName: string, tag: string) => boolean) | undefined;
|
||||
|
||||
/**
|
||||
* Remove all elements with empty contents
|
||||
* @see http://perfectionkills.com/experimenting-with-html-minifier/#remove_empty_elements
|
||||
*/
|
||||
removeEmptyElements?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Remove optional tags
|
||||
* @see http://perfectionkills.com/experimenting-with-html-minifier/#remove_optional_tags
|
||||
*/
|
||||
removeOptionalTags?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Remove attributes when value matches default.
|
||||
* @see http://perfectionkills.com/experimenting-with-html-minifier/#remove_redundant_attributes
|
||||
*/
|
||||
removeRedundantAttributes?: boolean | undefined;
|
||||
|
||||
// Remove type="text/javascript" from script tags. Other type attribute values are left intact
|
||||
removeScriptTypeAttributes?: boolean | undefined;
|
||||
|
||||
// Remove type="text/css" from style and link tags. Other type attribute values are left intact
|
||||
removeStyleLinkTypeAttributes?: boolean | undefined;
|
||||
|
||||
// Remove space between attributes whenever possible. Note that this will result in invalid HTML!
|
||||
removeTagWhitespace?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Sort attributes by frequency
|
||||
*
|
||||
* Minifier options like sortAttributes and sortClassName won't impact the plain-text size
|
||||
* of the output. However, they form long repetitive chains of characters that should improve
|
||||
* compression ratio of gzip used in HTTP compression.
|
||||
*
|
||||
* @see https://github.com/kangax/html-minifier#sorting-attributes--style-classes
|
||||
*/
|
||||
sortAttributes?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Sort style classes by frequency
|
||||
*
|
||||
* Minifier options like sortAttributes and sortClassName won't impact the plain-text size
|
||||
* of the output. However, they form long repetitive chains of characters that should improve
|
||||
* compression ratio of gzip used in HTTP compression.
|
||||
*
|
||||
* @see https://github.com/kangax/html-minifier#sorting-attributes--style-classes
|
||||
*/
|
||||
sortClassName?: boolean | undefined;
|
||||
|
||||
// Trim white space around ignoreCustomFragments
|
||||
trimCustomFragments?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Replaces the doctype with the short (HTML5) doctype
|
||||
* @see http://perfectionkills.com/experimenting-with-html-minifier/#use_short_doctype
|
||||
*/
|
||||
useShortDoctype?: boolean | undefined;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
var Token = require('../../tokenizer/token');
|
||||
|
||||
var serializeAll = require('../../writer/one-time').all;
|
||||
var serializeRules = require('../../writer/one-time').rules;
|
||||
|
||||
function removeDuplicateMediaQueries(tokens) {
|
||||
var candidates = {};
|
||||
var candidate;
|
||||
var token;
|
||||
var key;
|
||||
var i, l;
|
||||
|
||||
for (i = 0, l = tokens.length; i < l; i++) {
|
||||
token = tokens[i];
|
||||
if (token[0] != Token.NESTED_BLOCK) {
|
||||
continue;
|
||||
}
|
||||
|
||||
key = serializeRules(token[1]) + '%' + serializeAll(token[2]);
|
||||
candidate = candidates[key];
|
||||
|
||||
if (candidate) {
|
||||
candidate[2] = [];
|
||||
}
|
||||
|
||||
candidates[key] = token;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = removeDuplicateMediaQueries;
|
||||
@@ -0,0 +1,22 @@
|
||||
Copyright (c) 2013 Dominic Tarr
|
||||
|
||||
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.
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "@babel/highlight",
|
||||
"version": "7.18.6",
|
||||
"description": "Syntax highlight JavaScript strings for output in terminals.",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-highlight",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-highlight"
|
||||
},
|
||||
"main": "./lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/helper-validator-identifier": "^7.18.6",
|
||||
"chalk": "^2.0.0",
|
||||
"js-tokens": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chalk": "^2.0.0",
|
||||
"strip-ansi": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"type": "commonjs"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
var baseIteratee = require('./_baseIteratee'),
|
||||
isArrayLike = require('./isArrayLike'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* Creates a `_.find` or `_.findLast` function.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} findIndexFunc The function to find the collection index.
|
||||
* @returns {Function} Returns the new find function.
|
||||
*/
|
||||
function createFind(findIndexFunc) {
|
||||
return function(collection, predicate, fromIndex) {
|
||||
var iterable = Object(collection);
|
||||
if (!isArrayLike(collection)) {
|
||||
var iteratee = baseIteratee(predicate, 3);
|
||||
collection = keys(collection);
|
||||
predicate = function(key) { return iteratee(iterable[key], key, iterable); };
|
||||
}
|
||||
var index = findIndexFunc(collection, predicate, fromIndex);
|
||||
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = createFind;
|
||||
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./async').omitSeries;
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { TimerHandle } from './timerHandle';
|
||||
declare type SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;
|
||||
declare type ClearTimeoutFunction = (handle: TimerHandle) => void;
|
||||
interface TimeoutProvider {
|
||||
setTimeout: SetTimeoutFunction;
|
||||
clearTimeout: ClearTimeoutFunction;
|
||||
delegate: {
|
||||
setTimeout: SetTimeoutFunction;
|
||||
clearTimeout: ClearTimeoutFunction;
|
||||
} | undefined;
|
||||
}
|
||||
export declare const timeoutProvider: TimeoutProvider;
|
||||
export {};
|
||||
//# sourceMappingURL=timeoutProvider.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"supports-color","version":"7.2.0","files":{"license":{"checkedAt":1678883669272,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"index.js":{"checkedAt":1678883669468,"integrity":"sha512-Q5qQYTYMwYeF01W7GPB+GGxV0RQ1iw0TuSrUeegmsGZAId+hMoYT3+l0PKUox5gS5A1PhZSybAmgTn3DfVV9FA==","mode":420,"size":2748},"browser.js":{"checkedAt":1678883669468,"integrity":"sha512-X6Ea15rSJ8d9H1fH7J9zYHPykZuKz90j7HQ7UAvbM1+XwcH/5yHw7/EWUCRV8x+ZpDRKDZypfFu1x+Lr1UEIuw==","mode":420,"size":67},"package.json":{"checkedAt":1678883669468,"integrity":"sha512-8pys+qFXRPyWaQoQHkIk2V/oXhGf2T/uVooECzz4AGK5h26TNeX85glQzpWn+M1PFA49ydw0kZGSuMMmZ3yEvA==","mode":420,"size":817},"readme.md":{"checkedAt":1678883669469,"integrity":"sha512-zG7ziKk8XEu7VweK2END33czZocaUjlGjsHBdXttzqXhTVcSYc0BepNbxJPe9dX8YQCd/mgNsBxVWVof8rm8QA==","mode":420,"size":2294}}}
|
||||
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.registerDefaultDecorators = registerDefaultDecorators;
|
||||
// istanbul ignore next
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
var _decoratorsInline = require('./decorators/inline');
|
||||
|
||||
var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);
|
||||
|
||||
function registerDefaultDecorators(instance) {
|
||||
_decoratorsInline2['default'](instance);
|
||||
}
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG4iXX0=
|
||||
@@ -0,0 +1,110 @@
|
||||
# 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).
|
||||
|
||||
## [v1.2.0](https://github.com/ljharb/get-intrinsic/compare/v1.1.3...v1.2.0) - 2023-01-19
|
||||
|
||||
### Commits
|
||||
|
||||
- [actions] update checkout action [`ca6b12f`](https://github.com/ljharb/get-intrinsic/commit/ca6b12f31eaacea4ea3b055e744cd61623385ffb)
|
||||
- [Dev Deps] update `@ljharb/eslint-config`, `es-abstract`, `object-inspect`, `tape` [`41a3727`](https://github.com/ljharb/get-intrinsic/commit/41a3727d0026fa04273ae216a5f8e12eefd72da8)
|
||||
- [Fix] ensure `Error.prototype` is undeniable [`c511e97`](https://github.com/ljharb/get-intrinsic/commit/c511e97ae99c764c4524b540dee7a70757af8da3)
|
||||
- [Dev Deps] update `aud`, `es-abstract`, `tape` [`1bef8a8`](https://github.com/ljharb/get-intrinsic/commit/1bef8a8fd439ebb80863199b6189199e0851ac67)
|
||||
- [Dev Deps] update `aud`, `es-abstract` [`0d41f16`](https://github.com/ljharb/get-intrinsic/commit/0d41f16bcd500bc28b7bfc98043ebf61ea081c26)
|
||||
- [New] add `BigInt64Array` and `BigUint64Array` [`a6cca25`](https://github.com/ljharb/get-intrinsic/commit/a6cca25f29635889b7e9bd669baf9e04be90e48c)
|
||||
- [Tests] use `gopd` [`ecf7722`](https://github.com/ljharb/get-intrinsic/commit/ecf7722240d15cfd16edda06acf63359c10fb9bd)
|
||||
|
||||
## [v1.1.3](https://github.com/ljharb/get-intrinsic/compare/v1.1.2...v1.1.3) - 2022-09-12
|
||||
|
||||
### Commits
|
||||
|
||||
- [Dev Deps] update `es-abstract`, `es-value-fixtures`, `tape` [`07ff291`](https://github.com/ljharb/get-intrinsic/commit/07ff291816406ebe5a12d7f16965bde0942dd688)
|
||||
- [Fix] properly check for % signs [`50ac176`](https://github.com/ljharb/get-intrinsic/commit/50ac1760fe99c227e64eabde76e9c0e44cd881b5)
|
||||
|
||||
## [v1.1.2](https://github.com/ljharb/get-intrinsic/compare/v1.1.1...v1.1.2) - 2022-06-08
|
||||
|
||||
### Fixed
|
||||
|
||||
- [Fix] properly validate against extra % signs [`#16`](https://github.com/ljharb/get-intrinsic/issues/16)
|
||||
|
||||
### Commits
|
||||
|
||||
- [actions] reuse common workflows [`0972547`](https://github.com/ljharb/get-intrinsic/commit/0972547efd0abc863fe4c445a6ca7eb4f8c6901d)
|
||||
- [meta] use `npmignore` to autogenerate an npmignore file [`5ba0b51`](https://github.com/ljharb/get-intrinsic/commit/5ba0b51d8d8d4f1c31d426d74abc0770fd106bad)
|
||||
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`c364492`](https://github.com/ljharb/get-intrinsic/commit/c364492af4af51333e6f81c0bf21fd3d602c3661)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `es-abstract`, `object-inspect`, `tape` [`dc04dad`](https://github.com/ljharb/get-intrinsic/commit/dc04dad86f6e5608775a2640cb0db5927ae29ed9)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `es-abstract`, `object-inspect`, `safe-publish-latest`, `tape` [`1c14059`](https://github.com/ljharb/get-intrinsic/commit/1c1405984e86dd2dc9366c15d8a0294a96a146a5)
|
||||
- [Tests] use `mock-property` [`b396ef0`](https://github.com/ljharb/get-intrinsic/commit/b396ef05bb73b1d699811abd64b0d9b97997fdda)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `object-inspect`, `tape` [`c2c758d`](https://github.com/ljharb/get-intrinsic/commit/c2c758d3b90af4fef0a76910d8d3c292ec8d1d3e)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `es-abstract`, `es-value-fixtures`, `object-inspect`, `tape` [`29e3c09`](https://github.com/ljharb/get-intrinsic/commit/29e3c091c2bf3e17099969847e8729d0e46896de)
|
||||
- [actions] update codecov uploader [`8cbc141`](https://github.com/ljharb/get-intrinsic/commit/8cbc1418940d7a8941f3a7985cbc4ac095c5e13d)
|
||||
- [Dev Deps] update `@ljharb/eslint-config`, `es-abstract`, `es-value-fixtures`, `object-inspect`, `tape` [`10b6f5c`](https://github.com/ljharb/get-intrinsic/commit/10b6f5c02593fb3680c581d696ac124e30652932)
|
||||
- [readme] add github actions/codecov badges [`4e25400`](https://github.com/ljharb/get-intrinsic/commit/4e25400d9f51ae9eb059cbe22d9144e70ea214e8)
|
||||
- [Tests] use `for-each` instead of `foreach` [`c05b957`](https://github.com/ljharb/get-intrinsic/commit/c05b957ad9a7bc7721af7cc9e9be1edbfe057496)
|
||||
- [Dev Deps] update `es-abstract` [`29b05ae`](https://github.com/ljharb/get-intrinsic/commit/29b05aec3e7330e9ad0b8e0f685a9112c20cdd97)
|
||||
- [meta] use `prepublishOnly` script for npm 7+ [`95c285d`](https://github.com/ljharb/get-intrinsic/commit/95c285da810516057d3bbfa871176031af38f05d)
|
||||
- [Deps] update `has-symbols` [`593cb4f`](https://github.com/ljharb/get-intrinsic/commit/593cb4fb38e7922e40e42c183f45274b636424cd)
|
||||
- [readme] fix repo URLs [`1c8305b`](https://github.com/ljharb/get-intrinsic/commit/1c8305b5365827c9b6fc785434aac0e1328ff2f5)
|
||||
- [Deps] update `has-symbols` [`c7138b6`](https://github.com/ljharb/get-intrinsic/commit/c7138b6c6d73132d859471fb8c13304e1e7c8b20)
|
||||
- [Dev Deps] remove unused `has-bigints` [`bd63aff`](https://github.com/ljharb/get-intrinsic/commit/bd63aff6ad8f3a986c557fcda2914187bdaab359)
|
||||
|
||||
## [v1.1.1](https://github.com/ljharb/get-intrinsic/compare/v1.1.0...v1.1.1) - 2021-02-03
|
||||
|
||||
### Fixed
|
||||
|
||||
- [meta] export `./package.json` [`#9`](https://github.com/ljharb/get-intrinsic/issues/9)
|
||||
|
||||
### Commits
|
||||
|
||||
- [readme] flesh out the readme; use `evalmd` [`d12f12c`](https://github.com/ljharb/get-intrinsic/commit/d12f12c15345a0a0772cc65a7c64369529abd614)
|
||||
- [eslint] set up proper globals config [`5a8c098`](https://github.com/ljharb/get-intrinsic/commit/5a8c0984e3319d1ac0e64b102f8ec18b64e79f36)
|
||||
- [Dev Deps] update `eslint` [`7b9a5c0`](https://github.com/ljharb/get-intrinsic/commit/7b9a5c0d31a90ca1a1234181c74988fb046701cd)
|
||||
|
||||
## [v1.1.0](https://github.com/ljharb/get-intrinsic/compare/v1.0.2...v1.1.0) - 2021-01-25
|
||||
|
||||
### Fixed
|
||||
|
||||
- [Refactor] delay `Function` eval until syntax-derived values are requested [`#3`](https://github.com/ljharb/get-intrinsic/issues/3)
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] migrate tests to Github Actions [`2ab762b`](https://github.com/ljharb/get-intrinsic/commit/2ab762b48164aea8af37a40ba105bbc8246ab8c4)
|
||||
- [meta] do not publish github action workflow files [`5e7108e`](https://github.com/ljharb/get-intrinsic/commit/5e7108e4768b244d48d9567ba4f8a6cab9c65b8e)
|
||||
- [Tests] add some coverage [`01ac7a8`](https://github.com/ljharb/get-intrinsic/commit/01ac7a87ac29738567e8524cd8c9e026b1fa8cb3)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `call-bind`, `es-abstract`, `tape`; add `call-bind` [`911b672`](https://github.com/ljharb/get-intrinsic/commit/911b672fbffae433a96924c6ce013585e425f4b7)
|
||||
- [Refactor] rearrange evalled constructors a bit [`7e7e4bf`](https://github.com/ljharb/get-intrinsic/commit/7e7e4bf583f3799c8ac1c6c5e10d2cb553957347)
|
||||
- [meta] add Automatic Rebase and Require Allow Edits workflows [`0199968`](https://github.com/ljharb/get-intrinsic/commit/01999687a263ffce0a3cb011dfbcb761754aedbc)
|
||||
|
||||
## [v1.0.2](https://github.com/ljharb/get-intrinsic/compare/v1.0.1...v1.0.2) - 2020-12-17
|
||||
|
||||
### Commits
|
||||
|
||||
- [Fix] Throw for non‑existent intrinsics [`68f873b`](https://github.com/ljharb/get-intrinsic/commit/68f873b013c732a05ad6f5fc54f697e55515461b)
|
||||
- [Fix] Throw for non‑existent segments in the intrinsic path [`8325dee`](https://github.com/ljharb/get-intrinsic/commit/8325deee43128f3654d3399aa9591741ebe17b21)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-bigints`, `object-inspect` [`0c227a7`](https://github.com/ljharb/get-intrinsic/commit/0c227a7d8b629166f25715fd242553892e458525)
|
||||
- [meta] do not lint coverage output [`70d2419`](https://github.com/ljharb/get-intrinsic/commit/70d24199b620043cd9110fc5f426d214ebe21dc9)
|
||||
|
||||
## [v1.0.1](https://github.com/ljharb/get-intrinsic/compare/v1.0.0...v1.0.1) - 2020-10-30
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] gather coverage data on every job [`d1d280d`](https://github.com/ljharb/get-intrinsic/commit/d1d280dec714e3f0519cc877dbcb193057d9cac6)
|
||||
- [Fix] add missing dependencies [`5031771`](https://github.com/ljharb/get-intrinsic/commit/5031771bb1095b38be88ce7c41d5de88718e432e)
|
||||
- [Tests] use `es-value-fixtures` [`af48765`](https://github.com/ljharb/get-intrinsic/commit/af48765a23c5323fb0b6b38dbf00eb5099c7bebc)
|
||||
|
||||
## v1.0.0 - 2020-10-29
|
||||
|
||||
### Commits
|
||||
|
||||
- Implementation [`bbce57c`](https://github.com/ljharb/get-intrinsic/commit/bbce57c6f33d05b2d8d3efa273ceeb3ee01127bb)
|
||||
- Tests [`17b4f0d`](https://github.com/ljharb/get-intrinsic/commit/17b4f0d56dea6b4059b56fc30ef3ee4d9500ebc2)
|
||||
- Initial commit [`3153294`](https://github.com/ljharb/get-intrinsic/commit/31532948de363b0a27dd9fd4649e7b7028ec4b44)
|
||||
- npm init [`fb326c4`](https://github.com/ljharb/get-intrinsic/commit/fb326c4d2817c8419ec31de1295f06bb268a7902)
|
||||
- [meta] add Automatic Rebase and Require Allow Edits workflows [`48862fb`](https://github.com/ljharb/get-intrinsic/commit/48862fb2508c8f6a57968e6d08b7c883afc9d550)
|
||||
- [meta] add `auto-changelog` [`5f28ad0`](https://github.com/ljharb/get-intrinsic/commit/5f28ad019e060a353d8028f9f2591a9cc93074a1)
|
||||
- [meta] add "funding"; create `FUNDING.yml` [`c2bbdde`](https://github.com/ljharb/get-intrinsic/commit/c2bbddeba73a875be61484ee4680b129a6d4e0a1)
|
||||
- [Tests] add `npm run lint` [`0a84b98`](https://github.com/ljharb/get-intrinsic/commit/0a84b98b22b7cf7a748666f705b0003a493c35fd)
|
||||
- Only apps should have lockfiles [`9586c75`](https://github.com/ljharb/get-intrinsic/commit/9586c75866c1ee678e4d5d4dbbdef6997e511b05)
|
||||
@@ -0,0 +1,4 @@
|
||||
export type DonorReceiptAddressNeededError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
var isObject = require("../object/is")
|
||||
, isPrototype = require("../prototype/is");
|
||||
|
||||
var getPrototypeOf;
|
||||
if (typeof Object.getPrototypeOf === "function") {
|
||||
getPrototypeOf = Object.getPrototypeOf;
|
||||
} else if ({}.__proto__ === Object.prototype) {
|
||||
getPrototypeOf = function (object) { return object.__proto__; };
|
||||
}
|
||||
|
||||
module.exports = function (value) {
|
||||
if (!isObject(value)) return false;
|
||||
var prototype;
|
||||
if (getPrototypeOf) {
|
||||
prototype = getPrototypeOf(value);
|
||||
} else {
|
||||
try {
|
||||
var valueConstructor = value.constructor;
|
||||
if (valueConstructor) prototype = valueConstructor.prototype;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (prototype && !hasOwnProperty.call(prototype, "propertyIsEnumerable")) return false;
|
||||
return !isPrototype(value);
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.00265,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0.0053,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0.0053,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0.00265,"94":0,"95":0,"96":0.00265,"97":0,"98":0,"99":0,"100":0.00265,"101":0,"102":0.01324,"103":0.00265,"104":0.00265,"105":0.00265,"106":0.00265,"107":0.00794,"108":0.01854,"109":0.20919,"110":0.14299,"111":0.0053,"112":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0.00265,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0.00265,"36":0,"37":0,"38":0.00265,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0.00265,"45":0,"46":0,"47":0.00265,"48":0,"49":0,"50":0.00265,"51":0,"52":0,"53":0,"54":0,"55":0.00265,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0.02118,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0.01324,"71":0.00265,"72":0,"73":0,"74":0.05296,"75":0.00265,"76":0.00265,"77":0.00794,"78":0.02118,"79":0.00265,"80":0.01059,"81":0.01324,"83":0,"84":0.0053,"85":0.00265,"86":0.01324,"87":0.01324,"88":0.01324,"89":0.0053,"90":0.00265,"91":0.0053,"92":0.00265,"93":0.00265,"94":0.01324,"95":0.01324,"96":0.0053,"97":0.00265,"98":0.02648,"99":0.02383,"100":0.00794,"101":0.0053,"102":0.00794,"103":0.01854,"104":0.02118,"105":0.01854,"106":0.01854,"107":0.03707,"108":0.09003,"109":2.0575,"110":1.10422,"111":0.01059,"112":0.02648,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0.00265,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0.00265,"34":0,"35":0,"36":0,"37":0.0053,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0.01059,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0.00265,"56":0,"57":0.0053,"58":0.00265,"60":0.02913,"62":0,"63":0.16418,"64":0.01059,"65":0.0053,"66":0.04237,"67":0.1324,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0.00265,"75":0,"76":0,"77":0,"78":0,"79":0.0053,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0.01589,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0.00265,"92":0,"93":0,"94":0.06885,"95":0.08209,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0.0053},B:{"12":0.00265,"13":0,"14":0,"15":0.04766,"16":0,"17":0,"18":0.0053,"79":0,"80":0,"81":0,"83":0,"84":0.00265,"85":0.00265,"86":0,"87":0,"88":0,"89":0.00265,"90":0,"91":0,"92":0.00794,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0.00794,"100":0.00265,"101":0,"102":0,"103":0,"104":0.00265,"105":0.00265,"106":0.00265,"107":0.01059,"108":0.01589,"109":0.2039,"110":0.20125},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.0053,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0.0053,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0.00265,"14.1":0.00265,"15.1":0.00265,"15.2-15.3":0.0053,"15.4":0,"15.5":0.00794,"15.6":0.04766,"16.0":0.02118,"16.1":0.01589,"16.2":0.05561,"16.3":0.04502,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00594,"5.0-5.1":0.00297,"6.0-6.1":0,"7.0-7.1":0.00792,"8.1-8.4":0.00297,"9.0-9.2":0,"9.3":0.04853,"10.0-10.2":0,"10.3":0.12084,"11.0-11.2":0,"11.3-11.4":0.00198,"12.0-12.1":0.01486,"12.2-12.5":0.99249,"13.0-13.1":0.05151,"13.2":0.0109,"13.3":0.07825,"13.4-13.7":0.05646,"14.0-14.4":0.36649,"14.5-14.8":0.82212,"15.0-15.1":0.21197,"15.2-15.3":0.25951,"15.4":0.28824,"15.5":0.4596,"15.6":0.56063,"16.0":0.87858,"16.1":1.57689,"16.2":1.40949,"16.3":0.90235,"16.4":0.00693},P:{"4":0.06186,"20":0.05155,"5.0-5.4":0,"6.2-6.4":0.38146,"7.2-7.4":0.01031,"8.2":0,"9.2":0.02062,"10.1":0.01031,"11.1-11.2":0.01031,"12.0":0.01031,"13.0":0,"14.0":0,"15.0":0.07217,"16.0":0.01031,"17.0":0.03093,"18.0":0.03093,"19.0":0.19588},I:{"0":0,"3":0,"4":0.00092,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00092,"4.2-4.3":0.00828,"4.4":0,"4.4.3-4.4.4":0.11312},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.0053,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0.07352,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0.55875},H:{"0":4.94884},L:{"0":76.50999},R:{_:"0"},M:{"0":0.08822},Q:{"13.1":0.02206}};
|
||||
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var index = require('../');
|
||||
var callBind = require('call-bind');
|
||||
var test = require('tape');
|
||||
var runTests = require('./tests');
|
||||
|
||||
test('as a function', function (t) {
|
||||
t.test('bad array/this value', function (st) {
|
||||
st['throws'](callBind(index, null, undefined, function () {}), TypeError, 'undefined is not an object');
|
||||
st['throws'](callBind(index, null, null, function () {}), TypeError, 'null is not an object');
|
||||
st.end();
|
||||
});
|
||||
|
||||
runTests(index, t);
|
||||
|
||||
t.end();
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"2":"C K L G M N O","164":"P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U EC FC","66":"V W","2305":"Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2820":"X"},D:{"2":"I v J D E F A B C K L G M N O w g","164":"0 1 2 3 4 5 6 7 8 9 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2049":"GC"},E:{"1":"OC","2":"I v HC zB IC","132":"A B C K 0B qB rB 1B","164":"J D E F JC KC LC","1540":"L G MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B"},F:{"2":"F B C PC QC RC SC qB AC TC rB","164":"0 1 2 3 4 5 6 7 8 9 G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e"},G:{"2":"zB UC BC VC","132":"bC cC dC eC fC gC hC iC jC kC","164":"E WC XC YC ZC aC","1540":"lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"2":"oC"},I:{"2":"tB I pC qC rC sC BC","164":"f tC uC"},J:{"2":"D","164":"A"},K:{"2":"A B C qB AC rB","164":"h"},L:{"164":"H"},M:{"2305":"H"},N:{"2":"A B"},O:{"164":"vC"},P:{"164":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"164":"1B"},R:{"164":"9C"},S:{"2":"AD BD"}},B:5,C:"CSS image-set"};
|
||||
@@ -0,0 +1,9 @@
|
||||
export function assertNotStrictEqual(actual, expected, shim, message) {
|
||||
shim.assert.notStrictEqual(actual, expected, message);
|
||||
}
|
||||
export function assertSingleKey(actual, shim) {
|
||||
shim.assert.strictEqual(typeof actual, 'string');
|
||||
}
|
||||
export function objectKeys(object) {
|
||||
return Object.keys(object);
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
v0.3.5 -- 2017.03.15
|
||||
* Improve documentation
|
||||
* Update dependencies
|
||||
|
||||
v0.3.4 -- 2015.10.02
|
||||
* Add `emitError` extension
|
||||
|
||||
v0.3.3 -- 2015.01.30
|
||||
* Fix reference to module in benchmarks
|
||||
|
||||
v0.3.2 -- 2015.01.20
|
||||
* Improve documentation
|
||||
* Configure lint scripts
|
||||
* Fix spelling of LICENSE
|
||||
|
||||
v0.3.1 -- 2014.04.25
|
||||
* Fix redefinition of emit method in `pipe`
|
||||
* Allow custom emit method name in `pipe`
|
||||
|
||||
v0.3.0 -- 2014.04.24
|
||||
* Move out from lib folder
|
||||
* Do not expose all utilities on main module
|
||||
* Support objects which do not inherit from Object.prototype
|
||||
* Improve arguments validation
|
||||
* Improve internals
|
||||
* Remove Makefile
|
||||
* Improve documentation
|
||||
|
||||
v0.2.2 -- 2013.06.05
|
||||
* `unify` functionality
|
||||
|
||||
v0.2.1 -- 2012.09.21
|
||||
* hasListeners module
|
||||
* Simplified internal id (improves performance a little), now it starts with
|
||||
underscore (hint it's private). Abstracted it to external module to have it
|
||||
one place
|
||||
* Documentation cleanup
|
||||
|
||||
v0.2.0 -- 2012.09.19
|
||||
* Trashed poor implementation of v0.1 and came up with something solid
|
||||
|
||||
Changes:
|
||||
* Improved performance
|
||||
* Fixed bugs event-emitter is now cross-prototype safe and not affected by
|
||||
unexpected methods attached to Object.prototype
|
||||
* Removed support for optional "emitter" argument in `emit` method, it was
|
||||
cumbersome to use, and should be solved just with event objects
|
||||
|
||||
v0.1.5 -- 2012.08.06
|
||||
* (maintanance) Do not use descriptors for internal objects, it exposes V8 bugs
|
||||
(only Node v0.6 branch)
|
||||
|
||||
v0.1.4 -- 2012.06.13
|
||||
* Fix detachment of listeners added with 'once'
|
||||
|
||||
v0.1.3 -- 2012.05.28
|
||||
* Updated es5-ext to latest version (v0.8)
|
||||
* Cleared package.json so it's in npm friendly format
|
||||
|
||||
v0.1.2 -- 2012.01.22
|
||||
* Support for emitter argument in emit function, this allows some listeners not
|
||||
to be notified about event
|
||||
* allOff - removes all listeners from object
|
||||
* All methods returns self object
|
||||
* Internal fixes
|
||||
* Travis CI integration
|
||||
|
||||
v0.1.1 -- 2011.08.08
|
||||
* Added TAD test suite to devDependencies, configured test commands.
|
||||
Tests can be run with 'make test' or 'npm test'
|
||||
|
||||
v0.1.0 -- 2011.08.08
|
||||
Initial version
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('mergeAllWith', require('../mergeWith'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"ansi-regex","version":"5.0.1","files":{"license":{"checkedAt":1678883669272,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"index.js":{"checkedAt":1678883669286,"integrity":"sha512-0b2XezNgP50G2Ue/4QjBlFzCzUV1zTnrhKIPFYdqff/FnDtSySrztkg8G7QmmDv8wMAPr/4yghpb2wvX04oEhA==","mode":420,"size":350},"readme.md":{"checkedAt":1678883669286,"integrity":"sha512-Wsx45vcJXjNBGkoYT74QME8dG1dxl3B9jYaclt/Vy1GR8At7VieqzzrewRtf9JTsaAJwMU1uktAqrbIGuXWlhw==","mode":420,"size":2565},"package.json":{"checkedAt":1678883669286,"integrity":"sha512-tTzY2RZMdXZdEA1m7Ou3ohvlFcheZmMKsHLBR6XaoI8qIFugMSft1HmcSIZ7nb+Zsq5zwmG7Frk3RHV06KoJCw==","mode":420,"size":841},"index.d.ts":{"checkedAt":1678883669286,"integrity":"sha512-g7n/sNxH+4lmkt3OrAIepMsgKu0bgx0IgnrkMbYvwHGahf9oHOylqO4wERWHceJwkjSAAucjr7O3r2g7Fqeqxg==","mode":420,"size":744}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/operators/concat.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAuC;AACvC,yCAAwC;AACxC,qCAA4C;AAC5C,2CAA0C;AAY1C,SAAgB,MAAM;IAAO,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACzC,IAAM,SAAS,GAAG,mBAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,qBAAS,EAAE,CAAC,WAAI,gBAAE,MAAM,UAAK,IAAI,IAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC;AALD,wBAKC"}
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"cli-spinners","version":"2.7.0","files":{"license":{"checkedAt":1678883669302,"integrity":"sha512-0fM2/ycrxrltyaBKfQ748Ck23VlPUUBgNAR47ldf4B1V/HoXTfWBSk+vcshGKwEpmOynu4mOP5o+hyBfuRNa8g==","mode":420,"size":1117},"index.js":{"checkedAt":1678883671304,"integrity":"sha512-0Jx/H9iX7nNEpLZM211tf3pCoy1CU9t0M7OCCtSIV2Mt2uA325x3DFEGff36exTLB5Jgw7jwcX9xpzIdSdzgXA==","mode":420,"size":406},"package.json":{"checkedAt":1678883671304,"integrity":"sha512-2ra2Pw4hInNWAeNXvZkH21C7dsG6CrA7XZmxEWKA08V3B5JWFMzVgYPIN4QwVRDToUtmdeIr1UFCO/RENQUsZg==","mode":420,"size":910},"spinners.json":{"checkedAt":1678883671304,"integrity":"sha512-ObpB2BLdwq81Aa5NJl0xemo4kkNbyXa9egpzQ8UAUlpfj1l/34HQiQFxozV2DstMRyRnY3ImIoiHVMth8IjNKw==","mode":420,"size":22348},"readme.md":{"checkedAt":1678883671304,"integrity":"sha512-hz5btLYEqmaE3Nl+Yeddos4ljk/TlM3/S2zID1BU3LIGt3Mtqmz8aBbtdbtwdGoDD7mbhwv0oRxmdoxdQVwsRg==","mode":420,"size":1302},"index.d.ts":{"checkedAt":1678883671305,"integrity":"sha512-Jgnotl5Gg0srLcsgbJOjRRchGPlyORyoCeYEVIa4WabbFazHysT5DAzcOyro56LaOiJdv2AhgUpcwKs3mueJZQ==","mode":420,"size":1971}}}
|
||||
@@ -0,0 +1,65 @@
|
||||
# Iterable
|
||||
|
||||
Value which implements _iterable_ protocol
|
||||
|
||||
## `iterable/is`
|
||||
|
||||
Confirms if given object is an _iterable_ and is not a _string_ (unless `allowString` option is passed)
|
||||
|
||||
```javascript
|
||||
const isIterable = require("type/iterable/is");
|
||||
|
||||
isIterable([]); // true
|
||||
isIterable({}); // false
|
||||
isIterable("foo"); // false
|
||||
isIterable("foo", { allowString: true }); // true
|
||||
```
|
||||
|
||||
Supports also `denyEmpty` option
|
||||
|
||||
```javascript
|
||||
isIterable([], { denyEmpty: true }); // false
|
||||
isIterable(["foo"], { denyEmpty: true }); // true
|
||||
```
|
||||
|
||||
## `iterable/ensure`
|
||||
|
||||
If given argument is an _iterable_, it is returned back. Otherwise `TypeError` is thrown.
|
||||
By default _string_ primitives are rejected unless `allowString` option is passed.
|
||||
|
||||
```javascript
|
||||
const ensureIterable = require("type/iterable/ensure");
|
||||
|
||||
ensureIterable([]); // []
|
||||
ensureIterable("foo", { allowString: true }); // "foo"
|
||||
ensureIterable({}); // Thrown TypeError: null is not expected iterable
|
||||
```
|
||||
|
||||
### Denying empty iterables
|
||||
|
||||
Pass `denyEmpty` option to require non empty iterables
|
||||
|
||||
```javascript
|
||||
ensureIterable([], { denyEmpty: true }); // Thrown TypeError: [] is not expected iterable
|
||||
```
|
||||
|
||||
### Confirming on items
|
||||
|
||||
Items can be validated by passing `ensureItem` option. Note that in this case:
|
||||
|
||||
- A newly created instance of array with coerced values is returned
|
||||
- Error message lists up to three invalid items
|
||||
|
||||
```javascript
|
||||
const ensureString = require("type/string/ensure");
|
||||
|
||||
ensureIterable(new Set(["foo", 12]), { ensureItem: ensureString }); // ["foo", "12"]
|
||||
|
||||
/*
|
||||
Below invocation with crash with:
|
||||
TypeError: [object Set] is not expected iterable value.
|
||||
Following items are invalid:
|
||||
- [object Object]
|
||||
*/
|
||||
ensureIterable(new Set(["foo", {}]), { ensureItem: ensureString });
|
||||
```
|
||||
@@ -0,0 +1,29 @@
|
||||
declare const stringWidth: {
|
||||
/**
|
||||
Get the visual width of a string - the number of columns required to display it.
|
||||
|
||||
Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
|
||||
|
||||
@example
|
||||
```
|
||||
import stringWidth = require('string-width');
|
||||
|
||||
stringWidth('a');
|
||||
//=> 1
|
||||
|
||||
stringWidth('古');
|
||||
//=> 2
|
||||
|
||||
stringWidth('\u001B[1m古\u001B[22m');
|
||||
//=> 2
|
||||
```
|
||||
*/
|
||||
(string: string): number;
|
||||
|
||||
// TODO: remove this in the next major version, refactor the whole definition to:
|
||||
// declare function stringWidth(string: string): number;
|
||||
// export = stringWidth;
|
||||
default: typeof stringWidth;
|
||||
}
|
||||
|
||||
export = stringWidth;
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"svelte-i18n","version":"3.6.0","files":{"LICENSE":{"checkedAt":1678883668414,"integrity":"sha512-OpTwmeL85QpqfLNhGUD9NwIK2lHwSc2ETUyqW7jFhSPLIxO6GNSR6CpiK/DN00ngLNKPP84n5Ah2N0pS1ycvuQ==","mode":420,"size":1086},"dist/cli.js":{"checkedAt":1678883668414,"integrity":"sha512-tY9Wx7WQRW09VIAsaXS/1xeftgzFUx35Jhwp9JgTUpWwKa/VTxUnCXXqJlFugXEjfsPFlk7xtFILPQ1E8+3T9A==","mode":493,"size":11241},"dist/runtime.cjs.js":{"checkedAt":1678883668421,"integrity":"sha512-5dNElHcrrypZPASZQXQIjRHeKuvoTTjpHVe/RUxnKkFjNIYihlIAhIDi/+uyFwPlZE2ACfXCZ/jO8VTJ8rTK6w==","mode":420,"size":7190},"dist/runtime.esm.js":{"checkedAt":1678883668421,"integrity":"sha512-HG71V2udmybfXGfzG8NNGxHG6vLeh6F1sN/bA/NsUTy51yCTBq/A+hBPHl/tiz8LRfney/02Efa93XFXqQSwyw==","mode":420,"size":7054},"package.json":{"checkedAt":1678883668430,"integrity":"sha512-cxTYgXosFw4YM8QeLzW1sg6ZrsYXRmqeVYcllqf3YyLFBTlvCdYGhs3yASr89upRM8ekkl3Ueh4NuHVroRNDUA==","mode":420,"size":2726},"README.md":{"checkedAt":1678883668430,"integrity":"sha512-7AYJ4q4arkXvtU5+2JPlmYwd2itiicKxWqZ0LBfMEsTCu5jmzinbPzU5/qRjTSMxRvhOLCjtU0YzyKBfZ4RJuw==","mode":420,"size":1531},"dist/runtime.d.ts":{"checkedAt":1678883668430,"integrity":"sha512-HXQZMkvvPl6IIl1ai+FynOG5SzDY4qJQkfulGJg6uMtevv+Qeedya0+SDyZyJrXy1WqcarXlkM26r8KTOxYhKQ==","mode":420,"size":6134}}}
|
||||
Reference in New Issue
Block a user