new license file version [CI SKIP]

This commit is contained in:
2023-03-15 12:34:41 +00:00
parent 0a6d92a1f3
commit 61328d20ed
13115 changed files with 1892314 additions and 1 deletions

View File

@@ -0,0 +1,62 @@
concat-map
==========
Concatenative mapdashery.
[![browser support](http://ci.testling.com/substack/node-concat-map.png)](http://ci.testling.com/substack/node-concat-map)
[![build status](https://secure.travis-ci.org/substack/node-concat-map.png)](http://travis-ci.org/substack/node-concat-map)
example
=======
``` js
var concatMap = require('concat-map');
var xs = [ 1, 2, 3, 4, 5, 6 ];
var ys = concatMap(xs, function (x) {
return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
});
console.dir(ys);
```
***
```
[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]
```
methods
=======
``` js
var concatMap = require('concat-map')
```
concatMap(xs, fn)
-----------------
Return an array of concatenated elements by calling `fn(x, i)` for each element
`x` and each index `i` in the array `xs`.
When `fn(x, i)` returns an array, its result will be concatenated with the
result array. If `fn(x, i)` returns anything else, that value will be pushed
onto the end of the result array.
install
=======
With [npm](http://npmjs.org) do:
```
npm install concat-map
```
license
=======
MIT
notes
=====
This module was written while sitting high above the ground in a tree.

View File

@@ -0,0 +1,26 @@
/**
* Parse a path string into an array of path segments.
*
* Square bracket notation `a[b]` may be used to "escape" dots that would otherwise be interpreted as path separators.
*
* Example:
* a -> ['a']
* a.b.c -> ['a', 'b', 'c']
* a[b].c -> ['a', 'b', 'c']
* a[b.c].e.f -> ['a', 'b.c', 'e', 'f']
* a[b][c][d] -> ['a', 'b', 'c', 'd']
*
* @param {string|string[]} path
**/
export function toPath(path) {
if (Array.isArray(path)) return path
let openBrackets = path.split('[').length - 1
let closedBrackets = path.split(']').length - 1
if (openBrackets !== closedBrackets) {
throw new Error(`Path is invalid. Has unbalanced brackets: ${path}`)
}
return path.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)
}

View File

@@ -0,0 +1,69 @@
# 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.0.4](https://github.com/inspect-js/typed-array-length/compare/v1.0.3...v1.0.4) - 2022-05-23
### Commits
- [actions] reuse common workflows [`dfd4a37`](https://github.com/inspect-js/typed-array-length/commit/dfd4a37d851a28e3d74d892a69874e02f2e58c37)
- [meta] use `npmignore` to autogenerate an npmignore file [`a837e80`](https://github.com/inspect-js/typed-array-length/commit/a837e80d4029f26785ab9f3aa571ca782ac8e851)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `is-callable`, `object-inspect`, `tape` [`7b05a87`](https://github.com/inspect-js/typed-array-length/commit/7b05a8772af399e52bb448618a246cd34d3e3273)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `object-inspect`, `tape` [`c495f6e`](https://github.com/inspect-js/typed-array-length/commit/c495f6e050a4a7463a82c9195f31f44cf2760945)
- [meta] simplify "exports" [`e42a6b6`](https://github.com/inspect-js/typed-array-length/commit/e42a6b6b0dc243fce32df20a75a7962782ef2a83)
- [Fix] ensure `for-each` dependency is properly listed [`8ec761c`](https://github.com/inspect-js/typed-array-length/commit/8ec761ca56c13927281d626958a2f55211e14f45)
- [Deps] update `call-bind`, `is-typed-array` [`2cc173a`](https://github.com/inspect-js/typed-array-length/commit/2cc173a4216e167db896bea7b8e03edf8b2d3833)
- [meta] add `safe-publish-latest` [`e8e3afa`](https://github.com/inspect-js/typed-array-length/commit/e8e3afa431ce98bbdbb68c9f8e3c029cc5128c6c)
- [Deps] update `is-typed-array` [`cd8084d`](https://github.com/inspect-js/typed-array-length/commit/cd8084db59b734ac4519b6d47f96233b6f73b1a6)
## [v1.0.3](https://github.com/inspect-js/typed-array-length/compare/v1.0.2...v1.0.3) - 2020-12-05
### Commits
- [Tests] migrate tests to Github Actions [`a578b83`](https://github.com/inspect-js/typed-array-length/commit/a578b83e68055c1e7c7120bc4583e1d6926fc268)
- [meta] avoid publishing github workflows [`f064a4b`](https://github.com/inspect-js/typed-array-length/commit/f064a4bf9090202154249d969be0799c34804ad4)
- [Tests] run `nyc` on all tests [`69b841e`](https://github.com/inspect-js/typed-array-length/commit/69b841e43042358c71c3290342514b6d107f08d1)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `object-inspect`, `tape` [`4594e83`](https://github.com/inspect-js/typed-array-length/commit/4594e83250579cdbff870aa951e7af56ca169489)
- [actions] add "Allow Edits" workflow [`81e953b`](https://github.com/inspect-js/typed-array-length/commit/81e953ba6b3f59c5657e0d17fa1e7619b94891f5)
- [Deps] update `is-typed-array`; use `call-bind` instead of `es-abstract` [`e7da56b`](https://github.com/inspect-js/typed-array-length/commit/e7da56b3c03b7f0db9bb110444ec1ccf19d7e9f9)
- [readme] remove travis badge [`6d610d8`](https://github.com/inspect-js/typed-array-length/commit/6d610d83cb78ac5286c5ca273f4b3c7289f7686e)
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`2d0ad64`](https://github.com/inspect-js/typed-array-length/commit/2d0ad644a11f754e61b49d327fdf891605abbe58)
## [v1.0.2](https://github.com/inspect-js/typed-array-length/compare/v1.0.1...v1.0.2) - 2020-04-22
### Commits
- [Dev Deps] update `make-arrow-function`, `make-generator-function` [`4facf69`](https://github.com/inspect-js/typed-array-length/commit/4facf697cafb36b9c1057dc4ca1a21d8550c564e)
- [Deps] update `is-typed-array`, `es-abstract` [`aaf3585`](https://github.com/inspect-js/typed-array-length/commit/aaf3585429896b9520dedd886c07aa4a96b50615)
- [Dev Deps] update `aud`, `auto-changelog` [`f10e298`](https://github.com/inspect-js/typed-array-length/commit/f10e298c7733b8de59231c1581c9b000c205edbd)
- [meta] allow `package.json` to be required/imported [`104f4c6`](https://github.com/inspect-js/typed-array-length/commit/104f4c6a6363e600d54aeb7abd90e37d99693aaf)
- [Tests] only audit prod deps [`c748ab5`](https://github.com/inspect-js/typed-array-length/commit/c748ab596de505483df14ca7eeda7f27aeb20383)
- [Deps] update `es-abstract` [`6cd213e`](https://github.com/inspect-js/typed-array-length/commit/6cd213ec654da3325abc8190f8c07c860474d944)
- [Dev Deps] update `tape` [`2b0b2ea`](https://github.com/inspect-js/typed-array-length/commit/2b0b2ea9be106e8a068597c3f499ef703cce1edb)
- [Dev Deps] update `@ljharb/eslint-config` [`cf462f3`](https://github.com/inspect-js/typed-array-length/commit/cf462f3352cf2fd592e624746371e3de800a265d)
- [Deps] update `is-typed-array` [`ff46995`](https://github.com/inspect-js/typed-array-length/commit/ff469955b5d92942ba066c77eac7467e0c4de1ec)
## [v1.0.1](https://github.com/inspect-js/typed-array-length/compare/v1.0.0...v1.0.1) - 2020-01-19
### Commits
- readme [`d3643fd`](https://github.com/inspect-js/typed-array-length/commit/d3643fd11919844b1f42041ef980a1f33215b515)
- [meta] fix "exports" field [`006e28b`](https://github.com/inspect-js/typed-array-length/commit/006e28b30b11f8948e607d13ef0e96c3d7d7f61f)
## v1.0.0 - 2020-01-18
### Commits
- Initial commit [`5f9e2ec`](https://github.com/inspect-js/typed-array-length/commit/5f9e2ec6650f80dc894e354e9e98181b09006346)
- Tests [`6b9cadb`](https://github.com/inspect-js/typed-array-length/commit/6b9cadb0c274933bc7ee5e3fc6a5a380163cbe76)
- Implementation [`6a3cb50`](https://github.com/inspect-js/typed-array-length/commit/6a3cb50429f40fc4ac9020bbf9539560c1b70213)
- npm init [`41d42cd`](https://github.com/inspect-js/typed-array-length/commit/41d42cddfd3d47df6c9d480cf77787eae1109432)
- [meta] add `auto-changelog` [`4fd159b`](https://github.com/inspect-js/typed-array-length/commit/4fd159bc6535e86c370a2186d60a68656f0d8917)
- [meta] add `funding` field; create FUNDING.yml [`6a9fca7`](https://github.com/inspect-js/typed-array-length/commit/6a9fca7e0fdf3ff3fd4b0f18596471ca3d050a39)
- [actions] add automatic rebasing / merge commit blocking [`8303296`](https://github.com/inspect-js/typed-array-length/commit/83032967b14afd37c382d4bf2c1fc5c95e3764bd)
- [Tests] add `npm run lint` [`47a9c21`](https://github.com/inspect-js/typed-array-length/commit/47a9c211f474dbe8528f6b28f50080eacd5bf7eb)
- [Tests] use shared travis-ci configs [`d0c8915`](https://github.com/inspect-js/typed-array-length/commit/d0c89153e1c50f1eadd0b42521bcdcf3366b8af5)
- Only apps should have lockfiles [`3eaef9c`](https://github.com/inspect-js/typed-array-length/commit/3eaef9cd192b1a25d1930739e7c0044e39ad3c0d)

View File

@@ -0,0 +1 @@
{"version":3,"file":"race.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/race.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGjE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAChH,wBAAgB,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AA+CnH;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,gBACnC,WAAW,CAAC,CAAC,UAyBlC"}

View File

@@ -0,0 +1,12 @@
'use strict'
const u = require('universalify').fromCallback
const jsonFile = require('jsonfile')
module.exports = {
// jsonfile exports
readJson: u(jsonFile.readFile),
readJsonSync: jsonFile.readFileSync,
writeJson: u(jsonFile.writeFile),
writeJsonSync: jsonFile.writeFileSync
}

View File

@@ -0,0 +1,30 @@
'use strict';
var isString = require('is-string');
var isNumber = require('is-number-object');
var isBoolean = require('is-boolean-object');
var isSymbol = require('is-symbol');
var isBigInt = require('is-bigint');
// eslint-disable-next-line consistent-return
module.exports = function whichBoxedPrimitive(value) {
// eslint-disable-next-line eqeqeq
if (value == null || (typeof value !== 'object' && typeof value !== 'function')) {
return null;
}
if (isString(value)) {
return 'String';
}
if (isNumber(value)) {
return 'Number';
}
if (isBoolean(value)) {
return 'Boolean';
}
if (isSymbol(value)) {
return 'Symbol';
}
if (isBigInt(value)) {
return 'BigInt';
}
};

View File

@@ -0,0 +1,10 @@
/// <reference types="node" />
import { Socket } from 'net';
import { TLSSocket } from 'tls';
interface Listeners {
connect?: () => void;
secureConnect?: () => void;
close?: (hadError: boolean) => void;
}
declare const deferToConnect: (socket: TLSSocket | Socket, fn: Listeners | (() => void)) => void;
export default deferToConnect;

View File

@@ -0,0 +1 @@
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQrE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AACtE,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"}

View File

@@ -0,0 +1,207 @@
'use strict';
/* eslint global-require: 0 */
// https://262.ecma-international.org/13.0/#sec-abstract-operations
var ES2022 = {
abs: require('./2022/abs'),
AddEntriesFromIterable: require('./2022/AddEntriesFromIterable'),
AddToKeptObjects: require('./2022/AddToKeptObjects'),
AdvanceStringIndex: require('./2022/AdvanceStringIndex'),
ApplyStringOrNumericBinaryOperator: require('./2022/ApplyStringOrNumericBinaryOperator'),
ArrayCreate: require('./2022/ArrayCreate'),
ArraySetLength: require('./2022/ArraySetLength'),
ArraySpeciesCreate: require('./2022/ArraySpeciesCreate'),
AsyncFromSyncIteratorContinuation: require('./2022/AsyncFromSyncIteratorContinuation'),
AsyncIteratorClose: require('./2022/AsyncIteratorClose'),
BigInt: require('./2022/BigInt'),
BigIntBitwiseOp: require('./2022/BigIntBitwiseOp'),
BinaryAnd: require('./2022/BinaryAnd'),
BinaryOr: require('./2022/BinaryOr'),
BinaryXor: require('./2022/BinaryXor'),
ByteListBitwiseOp: require('./2022/ByteListBitwiseOp'),
ByteListEqual: require('./2022/ByteListEqual'),
Call: require('./2022/Call'),
CanonicalNumericIndexString: require('./2022/CanonicalNumericIndexString'),
CharacterRange: require('./2022/CharacterRange'),
clamp: require('./2022/clamp'),
ClearKeptObjects: require('./2022/ClearKeptObjects'),
CodePointAt: require('./2022/CodePointAt'),
CodePointsToString: require('./2022/CodePointsToString'),
CompletePropertyDescriptor: require('./2022/CompletePropertyDescriptor'),
CompletionRecord: require('./2022/CompletionRecord'),
CopyDataProperties: require('./2022/CopyDataProperties'),
CreateAsyncFromSyncIterator: require('./2022/CreateAsyncFromSyncIterator'),
CreateDataProperty: require('./2022/CreateDataProperty'),
CreateDataPropertyOrThrow: require('./2022/CreateDataPropertyOrThrow'),
CreateHTML: require('./2022/CreateHTML'),
CreateIterResultObject: require('./2022/CreateIterResultObject'),
CreateListFromArrayLike: require('./2022/CreateListFromArrayLike'),
CreateMethodProperty: require('./2022/CreateMethodProperty'),
CreateNonEnumerableDataPropertyOrThrow: require('./2022/CreateNonEnumerableDataPropertyOrThrow'),
CreateRegExpStringIterator: require('./2022/CreateRegExpStringIterator'),
DateFromTime: require('./2022/DateFromTime'),
DateString: require('./2022/DateString'),
Day: require('./2022/Day'),
DayFromYear: require('./2022/DayFromYear'),
DaysInYear: require('./2022/DaysInYear'),
DayWithinYear: require('./2022/DayWithinYear'),
DefinePropertyOrThrow: require('./2022/DefinePropertyOrThrow'),
DeletePropertyOrThrow: require('./2022/DeletePropertyOrThrow'),
DetachArrayBuffer: require('./2022/DetachArrayBuffer'),
EnumerableOwnPropertyNames: require('./2022/EnumerableOwnPropertyNames'),
FlattenIntoArray: require('./2022/FlattenIntoArray'),
floor: require('./2022/floor'),
FromPropertyDescriptor: require('./2022/FromPropertyDescriptor'),
Get: require('./2022/Get'),
GetGlobalObject: require('./2022/GetGlobalObject'),
GetIterator: require('./2022/GetIterator'),
GetMatchIndexPair: require('./2022/GetMatchIndexPair'),
GetMatchString: require('./2022/GetMatchString'),
GetMethod: require('./2022/GetMethod'),
GetOwnPropertyKeys: require('./2022/GetOwnPropertyKeys'),
GetPromiseResolve: require('./2022/GetPromiseResolve'),
GetPrototypeFromConstructor: require('./2022/GetPrototypeFromConstructor'),
GetStringIndex: require('./2022/GetStringIndex'),
GetSubstitution: require('./2022/GetSubstitution'),
GetV: require('./2022/GetV'),
HasOwnProperty: require('./2022/HasOwnProperty'),
HasProperty: require('./2022/HasProperty'),
HourFromTime: require('./2022/HourFromTime'),
InLeapYear: require('./2022/InLeapYear'),
InstallErrorCause: require('./2022/InstallErrorCause'),
InstanceofOperator: require('./2022/InstanceofOperator'),
Invoke: require('./2022/Invoke'),
IsAccessorDescriptor: require('./2022/IsAccessorDescriptor'),
IsArray: require('./2022/IsArray'),
IsBigIntElementType: require('./2022/IsBigIntElementType'),
IsCallable: require('./2022/IsCallable'),
IsCompatiblePropertyDescriptor: require('./2022/IsCompatiblePropertyDescriptor'),
IsConcatSpreadable: require('./2022/IsConcatSpreadable'),
IsConstructor: require('./2022/IsConstructor'),
IsDataDescriptor: require('./2022/IsDataDescriptor'),
IsDetachedBuffer: require('./2022/IsDetachedBuffer'),
IsExtensible: require('./2022/IsExtensible'),
IsGenericDescriptor: require('./2022/IsGenericDescriptor'),
IsIntegralNumber: require('./2022/IsIntegralNumber'),
IsLessThan: require('./2022/IsLessThan'),
IsLooselyEqual: require('./2022/IsLooselyEqual'),
IsNoTearConfiguration: require('./2022/IsNoTearConfiguration'),
IsPromise: require('./2022/IsPromise'),
IsPropertyKey: require('./2022/IsPropertyKey'),
IsRegExp: require('./2022/IsRegExp'),
IsSharedArrayBuffer: require('./2022/IsSharedArrayBuffer'),
IsStrictlyEqual: require('./2022/IsStrictlyEqual'),
IsStringPrefix: require('./2022/IsStringPrefix'),
IsStringWellFormedUnicode: require('./2022/IsStringWellFormedUnicode'),
IsUnclampedIntegerElementType: require('./2022/IsUnclampedIntegerElementType'),
IsUnsignedElementType: require('./2022/IsUnsignedElementType'),
IterableToList: require('./2022/IterableToList'),
IteratorClose: require('./2022/IteratorClose'),
IteratorComplete: require('./2022/IteratorComplete'),
IteratorNext: require('./2022/IteratorNext'),
IteratorStep: require('./2022/IteratorStep'),
IteratorValue: require('./2022/IteratorValue'),
LengthOfArrayLike: require('./2022/LengthOfArrayLike'),
MakeDate: require('./2022/MakeDate'),
MakeDay: require('./2022/MakeDay'),
MakeMatchIndicesIndexPairArray: require('./2022/MakeMatchIndicesIndexPairArray'),
MakeTime: require('./2022/MakeTime'),
max: require('./2022/max'),
min: require('./2022/min'),
MinFromTime: require('./2022/MinFromTime'),
modulo: require('./2022/modulo'),
MonthFromTime: require('./2022/MonthFromTime'),
msFromTime: require('./2022/msFromTime'),
NormalCompletion: require('./2022/NormalCompletion'),
Number: require('./2022/Number'),
NumberBitwiseOp: require('./2022/NumberBitwiseOp'),
NumberToBigInt: require('./2022/NumberToBigInt'),
NumericToRawBytes: require('./2022/NumericToRawBytes'),
ObjectDefineProperties: require('./2022/ObjectDefineProperties'),
OrdinaryCreateFromConstructor: require('./2022/OrdinaryCreateFromConstructor'),
OrdinaryDefineOwnProperty: require('./2022/OrdinaryDefineOwnProperty'),
OrdinaryGetOwnProperty: require('./2022/OrdinaryGetOwnProperty'),
OrdinaryGetPrototypeOf: require('./2022/OrdinaryGetPrototypeOf'),
OrdinaryHasInstance: require('./2022/OrdinaryHasInstance'),
OrdinaryHasProperty: require('./2022/OrdinaryHasProperty'),
OrdinaryObjectCreate: require('./2022/OrdinaryObjectCreate'),
OrdinarySetPrototypeOf: require('./2022/OrdinarySetPrototypeOf'),
OrdinaryToPrimitive: require('./2022/OrdinaryToPrimitive'),
PromiseResolve: require('./2022/PromiseResolve'),
QuoteJSONString: require('./2022/QuoteJSONString'),
RawBytesToNumeric: require('./2022/RawBytesToNumeric'),
RegExpCreate: require('./2022/RegExpCreate'),
RegExpExec: require('./2022/RegExpExec'),
RegExpHasFlag: require('./2022/RegExpHasFlag'),
RequireObjectCoercible: require('./2022/RequireObjectCoercible'),
SameValue: require('./2022/SameValue'),
SameValueNonNumeric: require('./2022/SameValueNonNumeric'),
SameValueZero: require('./2022/SameValueZero'),
SecFromTime: require('./2022/SecFromTime'),
Set: require('./2022/Set'),
SetFunctionLength: require('./2022/SetFunctionLength'),
SetFunctionName: require('./2022/SetFunctionName'),
SetIntegrityLevel: require('./2022/SetIntegrityLevel'),
SortIndexedProperties: require('./2022/SortIndexedProperties'),
SpeciesConstructor: require('./2022/SpeciesConstructor'),
StringCreate: require('./2022/StringCreate'),
StringGetOwnProperty: require('./2022/StringGetOwnProperty'),
StringIndexOf: require('./2022/StringIndexOf'),
StringPad: require('./2022/StringPad'),
StringToBigInt: require('./2022/StringToBigInt'),
StringToCodePoints: require('./2022/StringToCodePoints'),
StringToNumber: require('./2022/StringToNumber'),
substring: require('./2022/substring'),
SymbolDescriptiveString: require('./2022/SymbolDescriptiveString'),
TestIntegrityLevel: require('./2022/TestIntegrityLevel'),
thisBigIntValue: require('./2022/thisBigIntValue'),
thisBooleanValue: require('./2022/thisBooleanValue'),
thisNumberValue: require('./2022/thisNumberValue'),
thisStringValue: require('./2022/thisStringValue'),
thisSymbolValue: require('./2022/thisSymbolValue'),
thisTimeValue: require('./2022/thisTimeValue'),
ThrowCompletion: require('./2022/ThrowCompletion'),
TimeClip: require('./2022/TimeClip'),
TimeFromYear: require('./2022/TimeFromYear'),
TimeString: require('./2022/TimeString'),
TimeWithinDay: require('./2022/TimeWithinDay'),
ToBigInt: require('./2022/ToBigInt'),
ToBigInt64: require('./2022/ToBigInt64'),
ToBigUint64: require('./2022/ToBigUint64'),
ToBoolean: require('./2022/ToBoolean'),
ToDateString: require('./2022/ToDateString'),
ToIndex: require('./2022/ToIndex'),
ToInt16: require('./2022/ToInt16'),
ToInt32: require('./2022/ToInt32'),
ToInt8: require('./2022/ToInt8'),
ToIntegerOrInfinity: require('./2022/ToIntegerOrInfinity'),
ToLength: require('./2022/ToLength'),
ToNumber: require('./2022/ToNumber'),
ToNumeric: require('./2022/ToNumeric'),
ToObject: require('./2022/ToObject'),
ToPrimitive: require('./2022/ToPrimitive'),
ToPropertyDescriptor: require('./2022/ToPropertyDescriptor'),
ToPropertyKey: require('./2022/ToPropertyKey'),
ToString: require('./2022/ToString'),
ToUint16: require('./2022/ToUint16'),
ToUint32: require('./2022/ToUint32'),
ToUint8: require('./2022/ToUint8'),
ToUint8Clamp: require('./2022/ToUint8Clamp'),
ToZeroPaddedDecimalString: require('./2022/ToZeroPaddedDecimalString'),
TrimString: require('./2022/TrimString'),
Type: require('./2022/Type'),
TypedArrayElementSize: require('./2022/TypedArrayElementSize'),
TypedArrayElementType: require('./2022/TypedArrayElementType'),
UnicodeEscape: require('./2022/UnicodeEscape'),
UTF16EncodeCodePoint: require('./2022/UTF16EncodeCodePoint'),
UTF16SurrogatePairToCodePoint: require('./2022/UTF16SurrogatePairToCodePoint'),
ValidateAndApplyPropertyDescriptor: require('./2022/ValidateAndApplyPropertyDescriptor'),
ValidateAtomicAccess: require('./2022/ValidateAtomicAccess'),
ValidateIntegerTypedArray: require('./2022/ValidateIntegerTypedArray'),
ValidateTypedArray: require('./2022/ValidateTypedArray'),
WeakRefDeref: require('./2022/WeakRefDeref'),
WeekDay: require('./2022/WeekDay'),
YearFromTime: require('./2022/YearFromTime')
};
module.exports = ES2022;

View File

@@ -0,0 +1,42 @@
{
"name": "is-fullwidth-code-point",
"version": "3.0.0",
"description": "Check if the character represented by a given Unicode code point is fullwidth",
"license": "MIT",
"repository": "sindresorhus/is-fullwidth-code-point",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd-check"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"fullwidth",
"full-width",
"full",
"width",
"unicode",
"character",
"string",
"codepoint",
"code",
"point",
"is",
"detect",
"check"
],
"devDependencies": {
"ava": "^1.3.1",
"tsd-check": "^0.5.0",
"xo": "^0.24.0"
}
}

View File

@@ -0,0 +1 @@
{"name":"json-parse-even-better-errors","version":"2.3.1","files":{"index.js":{"checkedAt":1678883670637,"integrity":"sha512-wXK01QoSnX8K1MAXnaJR+furrHTJsjaM0kHfa6/4F4+kfKioA4dmguNwW+bMK/vae9XC8Avp1VCAdd1uY1kjzg==","mode":420,"size":3899},"package.json":{"checkedAt":1678883670637,"integrity":"sha512-Xs8Hnc3bs+ns+yfhPRPeddZVbtav9o0CW8xJfZiLRhBUrA1x/z+RTk6GiaYijomUxSOcLnxnesmXvPu/M8Xibw==","mode":420,"size":684},"CHANGELOG.md":{"checkedAt":1678883670637,"integrity":"sha512-kRYamaFn4rt8vLTHLFTN1oJPz8sYsoMYHd8ifOWeXp/HXEN16ASKdP8GaDQErYtJ3p9Ggu4nS15kTVzZzwDUTQ==","mode":420,"size":1246},"LICENSE.md":{"checkedAt":1678883670637,"integrity":"sha512-blIYupAjPyGuKjylZJzIjQa2TPuD0MvBxTaEVc+0Yj7jMdngsxL9YBsELqIQ+89ba9j5Ge70nymMrMWQEqxFmA==","mode":420,"size":1209},"README.md":{"checkedAt":1678883670637,"integrity":"sha512-FcpJM3PtvPs6IXE1KTRGtDlH7dhDG3/Ao+p54BbaWJjlzZxBJ41MdoJi992nsW0OBZh8wOBBaV/T6v8ZOAsdDw==","mode":420,"size":3388}}}

View File

@@ -0,0 +1,121 @@
/// <reference types="node" />
export var types: {
access: (string | null)[];
'allow-same-version': BooleanConstructor;
'always-auth': BooleanConstructor;
also: (string | null)[];
audit: BooleanConstructor;
'auth-type': string[];
'bin-links': BooleanConstructor;
browser: (StringConstructor | null)[];
ca: (StringConstructor | ArrayConstructor | null)[];
cafile: import("path").PlatformPath;
cache: import("path").PlatformPath;
'cache-lock-stale': NumberConstructor;
'cache-lock-retries': NumberConstructor;
'cache-lock-wait': NumberConstructor;
'cache-max': NumberConstructor;
'cache-min': NumberConstructor;
cert: (StringConstructor | null)[];
cidr: (StringConstructor | ArrayConstructor | null)[];
color: (string | BooleanConstructor)[];
depth: NumberConstructor;
description: BooleanConstructor;
dev: BooleanConstructor;
'dry-run': BooleanConstructor;
editor: StringConstructor;
'engine-strict': BooleanConstructor;
force: BooleanConstructor;
'fetch-retries': NumberConstructor;
'fetch-retry-factor': NumberConstructor;
'fetch-retry-mintimeout': NumberConstructor;
'fetch-retry-maxtimeout': NumberConstructor;
git: StringConstructor;
'git-tag-version': BooleanConstructor;
'commit-hooks': BooleanConstructor;
global: BooleanConstructor;
globalconfig: import("path").PlatformPath;
'global-style': BooleanConstructor;
group: (StringConstructor | NumberConstructor)[];
'https-proxy': (typeof import("url") | null)[];
'user-agent': StringConstructor;
'ham-it-up': BooleanConstructor;
heading: StringConstructor;
'if-present': BooleanConstructor;
'ignore-prepublish': BooleanConstructor;
'ignore-scripts': BooleanConstructor;
'init-module': import("path").PlatformPath;
'init-author-name': StringConstructor;
'init-author-email': StringConstructor;
'init-author-url': (string | typeof import("url"))[];
'init-license': StringConstructor;
'init-version': () => void;
json: BooleanConstructor;
key: (StringConstructor | null)[];
'legacy-bundling': BooleanConstructor;
link: BooleanConstructor;
'local-address': never[];
loglevel: string[];
logstream: typeof import("stream").Stream;
'logs-max': NumberConstructor;
long: BooleanConstructor;
maxsockets: NumberConstructor;
message: StringConstructor;
'metrics-registry': (StringConstructor | null)[];
'node-options': (StringConstructor | null)[];
'node-version': ((() => void) | null)[];
'no-proxy': (StringConstructor | ArrayConstructor | null)[];
offline: BooleanConstructor;
'onload-script': (StringConstructor | null)[];
only: (string | null)[];
optional: BooleanConstructor;
'package-lock': BooleanConstructor;
otp: (StringConstructor | null)[];
'package-lock-only': BooleanConstructor;
parseable: BooleanConstructor;
'prefer-offline': BooleanConstructor;
'prefer-online': BooleanConstructor;
prefix: import("path").PlatformPath;
production: BooleanConstructor;
progress: BooleanConstructor;
proxy: (boolean | typeof import("url") | null)[];
'read-only': BooleanConstructor;
'rebuild-bundle': BooleanConstructor;
registry: (typeof import("url") | null)[];
rollback: BooleanConstructor;
save: BooleanConstructor;
'save-bundle': BooleanConstructor;
'save-dev': BooleanConstructor;
'save-exact': BooleanConstructor;
'save-optional': BooleanConstructor;
'save-prefix': StringConstructor;
'save-prod': BooleanConstructor;
scope: StringConstructor;
'script-shell': (StringConstructor | null)[];
'scripts-prepend-node-path': (string | boolean)[];
searchopts: StringConstructor;
searchexclude: (StringConstructor | null)[];
searchlimit: NumberConstructor;
searchstaleness: NumberConstructor;
'send-metrics': BooleanConstructor;
shell: StringConstructor;
shrinkwrap: BooleanConstructor;
'sign-git-tag': BooleanConstructor;
'sso-poll-frequency': NumberConstructor;
'sso-type': (string | null)[];
'strict-ssl': BooleanConstructor;
tag: StringConstructor;
timing: BooleanConstructor;
tmp: import("path").PlatformPath;
unicode: BooleanConstructor;
'unsafe-perm': BooleanConstructor;
usage: BooleanConstructor;
user: (StringConstructor | NumberConstructor)[];
userconfig: import("path").PlatformPath;
umask: () => void;
version: BooleanConstructor;
'tag-version-prefix': StringConstructor;
versions: BooleanConstructor;
viewer: StringConstructor;
_exit: BooleanConstructor;
};

View File

@@ -0,0 +1 @@
{"version":3,"file":"race.js","sourceRoot":"","sources":["../../../../src/internal/operators/race.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAetC,MAAM,UAAU,IAAI;IAAI,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACpC,OAAO,QAAQ,wCAAI,cAAc,CAAC,IAAI,CAAC,IAAE;AAC3C,CAAC"}

View File

@@ -0,0 +1,14 @@
'use strict';
var floor = require('./floor');
var modulo = require('./modulo');
var timeConstants = require('../helpers/timeConstants');
var msPerMinute = timeConstants.msPerMinute;
var MinutesPerHour = timeConstants.MinutesPerHour;
// https://262.ecma-international.org/5.1/#sec-15.9.1.10
module.exports = function MinFromTime(t) {
return modulo(floor(t / msPerMinute), MinutesPerHour);
};

View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.switchMap = void 0;
var innerFrom_1 = require("../observable/innerFrom");
var lift_1 = require("../util/lift");
var OperatorSubscriber_1 = require("./OperatorSubscriber");
function switchMap(project, resultSelector) {
return lift_1.operate(function (source, subscriber) {
var innerSubscriber = null;
var index = 0;
var isComplete = false;
var checkComplete = function () { return isComplete && !innerSubscriber && subscriber.complete(); };
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
var innerIndex = 0;
var outerIndex = index++;
innerFrom_1.innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (innerValue) { return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); }, function () {
innerSubscriber = null;
checkComplete();
})));
}, function () {
isComplete = true;
checkComplete();
}));
});
}
exports.switchMap = switchMap;
//# sourceMappingURL=switchMap.js.map

View File

@@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.crypto = void 0;
const nodeCrypto = require("crypto");
exports.crypto = {
node: nodeCrypto,
web: undefined,
};
//# sourceMappingURL=crypto.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"dnsDomainLevels.js","sourceRoot":"","sources":["../src/dnsDomainLevels.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;GAeG;AACH,SAAwB,eAAe,CAAC,IAAY;IACnD,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,KAAK,EAAE;QACV,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;KACtB;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAPD,kCAOC"}

View File

@@ -0,0 +1,12 @@
"use strict";
var coerceToInteger = require("../integer/coerce");
var abs = Math.abs;
module.exports = function (value) {
value = coerceToInteger(value);
if (!value) return value;
if (abs(value) > 8.64e15) return null;
return value;
};

View File

@@ -0,0 +1,7 @@
import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure';
declare function ensureString(value: any, options?: EnsureBaseOptions): string;
declare function ensureString(value: any, options?: EnsureBaseOptions & EnsureIsOptional): string | null;
declare function ensureString(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault<string>): string;
export default ensureString;

View File

@@ -0,0 +1,25 @@
let Declaration = require('../declaration')
class PrintColorAdjust extends Declaration {
/**
* Change property name for WebKit-based browsers
*/
prefixed(prop, prefix) {
if (prefix === '-moz-') {
return 'color-adjust'
} else {
return prefix + 'print-color-adjust'
}
}
/**
* Return property name by spec
*/
normalize() {
return 'print-color-adjust'
}
}
PrintColorAdjust.names = ['print-color-adjust', 'color-adjust']
module.exports = PrintColorAdjust

View File

@@ -0,0 +1,234 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: ()=>_default
});
const _dlv = /*#__PURE__*/ _interopRequireDefault(require("dlv"));
const _didyoumean = /*#__PURE__*/ _interopRequireDefault(require("didyoumean"));
const _transformThemeValue = /*#__PURE__*/ _interopRequireDefault(require("../util/transformThemeValue"));
const _postcssValueParser = /*#__PURE__*/ _interopRequireDefault(require("postcss-value-parser"));
const _normalizeScreens = require("../util/normalizeScreens");
const _buildMediaQuery = /*#__PURE__*/ _interopRequireDefault(require("../util/buildMediaQuery"));
const _toPath = require("../util/toPath");
const _withAlphaVariable = require("../util/withAlphaVariable");
const _pluginUtils = require("../util/pluginUtils");
const _log = /*#__PURE__*/ _interopRequireDefault(require("../util/log"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function isObject(input) {
return typeof input === "object" && input !== null;
}
function findClosestExistingPath(theme, path) {
let parts = (0, _toPath.toPath)(path);
do {
parts.pop();
if ((0, _dlv.default)(theme, parts) !== undefined) break;
}while (parts.length);
return parts.length ? parts : undefined;
}
function pathToString(path) {
if (typeof path === "string") return path;
return path.reduce((acc, cur, i)=>{
if (cur.includes(".")) return `${acc}[${cur}]`;
return i === 0 ? cur : `${acc}.${cur}`;
}, "");
}
function list(items) {
return items.map((key)=>`'${key}'`).join(", ");
}
function listKeys(obj) {
return list(Object.keys(obj));
}
function validatePath(config, path, defaultValue, themeOpts = {}) {
const pathString = Array.isArray(path) ? pathToString(path) : path.replace(/^['"]+|['"]+$/g, "");
const pathSegments = Array.isArray(path) ? path : (0, _toPath.toPath)(pathString);
const value = (0, _dlv.default)(config.theme, pathSegments, defaultValue);
if (value === undefined) {
let error = `'${pathString}' does not exist in your theme config.`;
const parentSegments = pathSegments.slice(0, -1);
const parentValue = (0, _dlv.default)(config.theme, parentSegments);
if (isObject(parentValue)) {
const validKeys = Object.keys(parentValue).filter((key)=>validatePath(config, [
...parentSegments,
key
]).isValid);
const suggestion = (0, _didyoumean.default)(pathSegments[pathSegments.length - 1], validKeys);
if (suggestion) {
error += ` Did you mean '${pathToString([
...parentSegments,
suggestion
])}'?`;
} else if (validKeys.length > 0) {
error += ` '${pathToString(parentSegments)}' has the following valid keys: ${list(validKeys)}`;
}
} else {
const closestPath = findClosestExistingPath(config.theme, pathString);
if (closestPath) {
const closestValue = (0, _dlv.default)(config.theme, closestPath);
if (isObject(closestValue)) {
error += ` '${pathToString(closestPath)}' has the following keys: ${listKeys(closestValue)}`;
} else {
error += ` '${pathToString(closestPath)}' is not an object.`;
}
} else {
error += ` Your theme has the following top-level keys: ${listKeys(config.theme)}`;
}
}
return {
isValid: false,
error
};
}
if (!(typeof value === "string" || typeof value === "number" || typeof value === "function" || value instanceof String || value instanceof Number || Array.isArray(value))) {
let error1 = `'${pathString}' was found but does not resolve to a string.`;
if (isObject(value)) {
let validKeys1 = Object.keys(value).filter((key)=>validatePath(config, [
...pathSegments,
key
]).isValid);
if (validKeys1.length) {
error1 += ` Did you mean something like '${pathToString([
...pathSegments,
validKeys1[0]
])}'?`;
}
}
return {
isValid: false,
error: error1
};
}
const [themeSection] = pathSegments;
return {
isValid: true,
value: (0, _transformThemeValue.default)(themeSection)(value, themeOpts)
};
}
function extractArgs(node, vNodes, functions) {
vNodes = vNodes.map((vNode)=>resolveVNode(node, vNode, functions));
let args = [
""
];
for (let vNode of vNodes){
if (vNode.type === "div" && vNode.value === ",") {
args.push("");
} else {
args[args.length - 1] += _postcssValueParser.default.stringify(vNode);
}
}
return args;
}
function resolveVNode(node, vNode, functions) {
if (vNode.type === "function" && functions[vNode.value] !== undefined) {
let args = extractArgs(node, vNode.nodes, functions);
vNode.type = "word";
vNode.value = functions[vNode.value](node, ...args);
}
return vNode;
}
function resolveFunctions(node, input, functions) {
return (0, _postcssValueParser.default)(input).walk((vNode)=>{
resolveVNode(node, vNode, functions);
}).toString();
}
let nodeTypePropertyMap = {
atrule: "params",
decl: "value"
};
/**
* @param {string} path
* @returns {Iterable<[path: string, alpha: string|undefined]>}
*/ function* toPaths(path) {
// Strip quotes from beginning and end of string
// This allows the alpha value to be present inside of quotes
path = path.replace(/^['"]+|['"]+$/g, "");
let matches = path.match(/^([^\s]+)(?![^\[]*\])(?:\s*\/\s*([^\/\s]+))$/);
let alpha = undefined;
yield [
path,
undefined
];
if (matches) {
path = matches[1];
alpha = matches[2];
yield [
path,
alpha
];
}
}
/**
*
* @param {any} config
* @param {string} path
* @param {any} defaultValue
*/ function resolvePath(config, path, defaultValue) {
const results = Array.from(toPaths(path)).map(([path, alpha])=>{
return Object.assign(validatePath(config, path, defaultValue, {
opacityValue: alpha
}), {
resolvedPath: path,
alpha
});
});
var _results_find;
return (_results_find = results.find((result)=>result.isValid)) !== null && _results_find !== void 0 ? _results_find : results[0];
}
function _default(context) {
let config = context.tailwindConfig;
let functions = {
theme: (node, path, ...defaultValue)=>{
let { isValid , value , error , alpha } = resolvePath(config, path, defaultValue.length ? defaultValue : undefined);
if (!isValid) {
var _parentNode_raws_tailwind;
let parentNode = node.parent;
let candidate = (_parentNode_raws_tailwind = parentNode === null || parentNode === void 0 ? void 0 : parentNode.raws.tailwind) === null || _parentNode_raws_tailwind === void 0 ? void 0 : _parentNode_raws_tailwind.candidate;
if (parentNode && candidate !== undefined) {
// Remove this utility from any caches
context.markInvalidUtilityNode(parentNode);
// Remove the CSS node from the markup
parentNode.remove();
// Show a warning
_log.default.warn("invalid-theme-key-in-class", [
`The utility \`${candidate}\` contains an invalid theme value and was not generated.`
]);
return;
}
throw node.error(error);
}
let maybeColor = (0, _pluginUtils.parseColorFormat)(value);
let isColorFunction = maybeColor !== undefined && typeof maybeColor === "function";
if (alpha !== undefined || isColorFunction) {
if (alpha === undefined) {
alpha = 1.0;
}
value = (0, _withAlphaVariable.withAlphaValue)(maybeColor, alpha, maybeColor);
}
return value;
},
screen: (node, screen)=>{
screen = screen.replace(/^['"]+/g, "").replace(/['"]+$/g, "");
let screens = (0, _normalizeScreens.normalizeScreens)(config.theme.screens);
let screenDefinition = screens.find(({ name })=>name === screen);
if (!screenDefinition) {
throw node.error(`The '${screen}' screen does not exist in your theme.`);
}
return (0, _buildMediaQuery.default)(screenDefinition);
}
};
return (root)=>{
root.walk((node)=>{
let property = nodeTypePropertyMap[node.type];
if (property === undefined) {
return;
}
node[property] = resolveFunctions(node, node[property], functions);
});
};
}

View File

@@ -0,0 +1,20 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var Get = require('./Get');
var ToLength = require('./ToLength');
var Type = require('./Type');
// https://262.ecma-international.org/11.0/#sec-lengthofarraylike
module.exports = function LengthOfArrayLike(obj) {
if (Type(obj) !== 'Object') {
throw new $TypeError('Assertion failed: `obj` must be an Object');
}
return ToLength(Get(obj, 'length'));
};
// TODO: use this all over

View File

@@ -0,0 +1,111 @@
.ds q \N'34'
.TH marked 1
.SH NAME
marked \- a javascript markdown parser
.SH SYNOPSIS
.B marked
[\-o \fI<output>\fP] [\-i \fI<input>\fP] [\-\-help]
[\-\-tokens] [\-\-pedantic] [\-\-gfm]
[\-\-breaks] [\-\-sanitize]
[\-\-smart\-lists] [\-\-lang\-prefix \fI<prefix>\fP]
[\-\-no\-etc...] [\-\-silent] [\fIfilename\fP]
.SH DESCRIPTION
.B marked
is a full-featured javascript markdown parser, built for speed.
It also includes multiple GFM features.
.SH EXAMPLES
.TP
cat in.md | marked > out.html
.TP
echo "hello *world*" | marked
.TP
marked \-o out.html \-i in.md \-\-gfm
.TP
marked \-\-output="hello world.html" \-i in.md \-\-no-breaks
.SH OPTIONS
.TP
.BI \-o,\ \-\-output\ [\fIoutput\fP]
Specify file output. If none is specified, write to stdout.
.TP
.BI \-i,\ \-\-input\ [\fIinput\fP]
Specify file input, otherwise use last argument as input file.
If no input file is specified, read from stdin.
.TP
.BI \-\-test
Makes sure the test(s) pass.
.RS
.PP
.B \-\-glob [\fIfile\fP]
Specify which test to use.
.PP
.B \-\-fix
Fixes tests.
.PP
.B \-\-bench
Benchmarks the test(s).
.PP
.B \-\-time
Times The test(s).
.PP
.B \-\-minified
Runs test file(s) as minified.
.PP
.B \-\-stop
Stop process if a test fails.
.RE
.TP
.BI \-t,\ \-\-tokens
Output a token stream instead of html.
.TP
.BI \-\-pedantic
Conform to obscure parts of markdown.pl as much as possible.
Don't fix original markdown bugs.
.TP
.BI \-\-gfm
Enable github flavored markdown.
.TP
.BI \-\-breaks
Enable GFM line breaks. Only works with the gfm option.
.TP
.BI \-\-sanitize
Sanitize output. Ignore any HTML input.
.TP
.BI \-\-smart\-lists
Use smarter list behavior than the original markdown.
.TP
.BI \-\-lang\-prefix\ [\fIprefix\fP]
Set the prefix for code block classes.
.TP
.BI \-\-mangle
Mangle email addresses.
.TP
.BI \-\-no\-sanitize,\ \-no-etc...
The inverse of any of the marked options above.
.TP
.BI \-\-silent
Silence error output.
.TP
.BI \-h,\ \-\-help
Display help information.
.SH CONFIGURATION
For configuring and running programmatically.
.B Example
require('marked')('*foo*', { gfm: true });
.SH BUGS
Please report any bugs to https://github.com/markedjs/marked.
.SH LICENSE
Copyright (c) 2011-2014, Christopher Jeffrey (MIT License).
.SH "SEE ALSO"
.BR markdown(1),
.BR node.js(1)

View File

@@ -0,0 +1,78 @@
import {MergeExclusive} from 'type-fest';
export interface BaseOptions {
/**
The tag name of the release.
*/
readonly tag?: string;
/**
The branch name or commit SHA to point the release's tag at, if the tag doesn't already exist.
Default: The default branch.
*/
readonly target?: string;
/**
The title of the release.
GitHub shows the `tag` name when not specified.
*/
readonly title?: string;
/**
The description text of the release.
*/
readonly body?: string;
/**
Whether the release should be marked as a pre-release.
@default false
*/
readonly isPrerelease?: boolean;
}
export interface RepoUrlOptions extends BaseOptions {
/**
The full URL to the repo.
*/
readonly repoUrl: string;
}
export interface UserRepoOptions extends BaseOptions {
/**
GitHub username or organization.
*/
readonly user: string;
/**
GitHub repo.
*/
readonly repo: string;
}
export type Options = MergeExclusive<RepoUrlOptions, UserRepoOptions>;
/**
Generate a URL for opening a new GitHub release with prefilled tag, body, and other fields.
@returns A URL string.
@example
```
import newGithubReleaseUrl from 'new-github-release-url';
import open from 'open';
const url = newGithubReleaseUrl({
user: 'sindresorhus',
repo: 'new-github-release-url',
body: '\n\n\n---\nI\'m a human. Please be nice.'
});
//=> 'https://github.com/sindresorhus/new-github-release-url/releases/new?body=%0A%0A%0A---%0AI%27m+a+human.+Please+be+nice.'
// Then open it
await open(url);
```
*/
export default function newGithubReleaseUrl(options: Options): string;

View File

@@ -0,0 +1,45 @@
{
"name": "sade",
"version": "1.8.1",
"description": "Smooth (CLI) operator 🎶",
"repository": "lukeed/sade",
"module": "lib/index.mjs",
"main": "lib/index.js",
"types": "index.d.ts",
"license": "MIT",
"files": [
"*.d.ts",
"lib"
],
"author": {
"name": "Luke Edwards",
"email": "luke.edwards05@gmail.com",
"url": "https://lukeed.com"
},
"scripts": {
"build": "rollup -c",
"test": "tape -r esm test/*.js | tap-spec"
},
"dependencies": {
"mri": "^1.1.0"
},
"engines": {
"node": ">=6"
},
"keywords": [
"cli",
"cli-app",
"commander",
"arguments",
"parser",
"yargs",
"argv"
],
"devDependencies": {
"esm": "3.2.25",
"rollup": "1.32.1",
"tap-spec": "4.1.2",
"tape": "4.14.0",
"terser": "4.8.0"
}
}

View File

@@ -0,0 +1,131 @@
/**
* The `querystring` module provides utilities for parsing and formatting URL
* query strings. It can be accessed using:
*
* ```js
* const querystring = require('querystring');
* ```
*
* `querystring` is more performant than `URLSearchParams` but is not a
* standardized API. Use `URLSearchParams` when performance is not critical
* or when compatibility with browser code is desirable.
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/querystring.js)
*/
declare module 'querystring' {
interface StringifyOptions {
encodeURIComponent?: ((str: string) => string) | undefined;
}
interface ParseOptions {
maxKeys?: number | undefined;
decodeURIComponent?: ((str: string) => string) | undefined;
}
interface ParsedUrlQuery extends NodeJS.Dict<string | string[]> {}
interface ParsedUrlQueryInput extends NodeJS.Dict<string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number> | ReadonlyArray<boolean> | null> {}
/**
* The `querystring.stringify()` method produces a URL query string from a
* given `obj` by iterating through the object's "own properties".
*
* It serializes the following types of values passed in `obj`:[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) |
* [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) |
* [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) |
* [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) |
* [string\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) |
* [number\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) |
* [bigint\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) |
* [boolean\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) The numeric values must be finite. Any other input values will be coerced to
* empty strings.
*
* ```js
* querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' });
* // Returns 'foo=bar&#x26;baz=qux&#x26;baz=quux&#x26;corge='
*
* querystring.stringify({ foo: 'bar', baz: 'qux' }, ';', ':');
* // Returns 'foo:bar;baz:qux'
* ```
*
* By default, characters requiring percent-encoding within the query string will
* be encoded as UTF-8\. If an alternative encoding is required, then an alternative`encodeURIComponent` option will need to be specified:
*
* ```js
* // Assuming gbkEncodeURIComponent function already exists,
*
* querystring.stringify({ w: '中文', foo: 'bar' }, null, null,
* { encodeURIComponent: gbkEncodeURIComponent });
* ```
* @since v0.1.25
* @param obj The object to serialize into a URL query string
* @param [sep='&'] The substring used to delimit key and value pairs in the query string.
* @param [eq='='] . The substring used to delimit keys and values in the query string.
*/
function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
/**
* The `querystring.parse()` method parses a URL query string (`str`) into a
* collection of key and value pairs.
*
* For example, the query string `'foo=bar&#x26;abc=xyz&#x26;abc=123'` is parsed into:
*
* ```js
* {
* foo: 'bar',
* abc: ['xyz', '123']
* }
* ```
*
* The object returned by the `querystring.parse()` method _does not_prototypically inherit from the JavaScript `Object`. This means that typical`Object` methods such as `obj.toString()`,
* `obj.hasOwnProperty()`, and others
* are not defined and _will not work_.
*
* By default, percent-encoded characters within the query string will be assumed
* to use UTF-8 encoding. If an alternative character encoding is used, then an
* alternative `decodeURIComponent` option will need to be specified:
*
* ```js
* // Assuming gbkDecodeURIComponent function already exists...
*
* querystring.parse('w=%D6%D0%CE%C4&#x26;foo=bar', null, null,
* { decodeURIComponent: gbkDecodeURIComponent });
* ```
* @since v0.1.25
* @param str The URL query string to parse
* @param [sep='&'] The substring used to delimit key and value pairs in the query string.
* @param [eq='='] . The substring used to delimit keys and values in the query string.
*/
function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
/**
* The querystring.encode() function is an alias for querystring.stringify().
*/
const encode: typeof stringify;
/**
* The querystring.decode() function is an alias for querystring.parse().
*/
const decode: typeof parse;
/**
* The `querystring.escape()` method performs URL percent-encoding on the given`str` in a manner that is optimized for the specific requirements of URL
* query strings.
*
* The `querystring.escape()` method is used by `querystring.stringify()` and is
* generally not expected to be used directly. It is exported primarily to allow
* application code to provide a replacement percent-encoding implementation if
* necessary by assigning `querystring.escape` to an alternative function.
* @since v0.1.25
*/
function escape(str: string): string;
/**
* The `querystring.unescape()` method performs decoding of URL percent-encoded
* characters on the given `str`.
*
* The `querystring.unescape()` method is used by `querystring.parse()` and is
* generally not expected to be used directly. It is exported primarily to allow
* application code to provide a replacement decoding implementation if
* necessary by assigning `querystring.unescape` to an alternative function.
*
* By default, the `querystring.unescape()` method will attempt to use the
* JavaScript built-in `decodeURIComponent()` method to decode. If that fails,
* a safer equivalent that does not throw on malformed URLs will be used.
* @since v0.1.25
*/
function unescape(str: string): string;
}
declare module 'node:querystring' {
export * from 'querystring';
}

View File

@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "backgroundSize", {
enumerable: true,
get: ()=>backgroundSize
});
const _dataTypes = require("./dataTypes");
const _splitAtTopLevelOnly = require("./splitAtTopLevelOnly");
function backgroundSize(value) {
let keywordValues = [
"cover",
"contain"
];
// the <length-percentage> type will probably be a css function
// so we have to use `splitAtTopLevelOnly`
return (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part)=>{
let sizes = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(part, "_").filter(Boolean);
if (sizes.length === 1 && keywordValues.includes(sizes[0])) return true;
if (sizes.length !== 1 && sizes.length !== 2) return false;
return sizes.every((size)=>(0, _dataTypes.length)(size) || (0, _dataTypes.percentage)(size) || size === "auto");
});
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"FormatNumericToString.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/NumberFormat/FormatNumericToString.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,8BAA8B,EAE/B,MAAM,iBAAiB,CAAA;AAGxB;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,IAAI,CACd,8BAA8B,EAC5B,cAAc,GACd,0BAA0B,GAC1B,0BAA0B,GAC1B,sBAAsB,GACtB,uBAAuB,GACvB,uBAAuB,CAC1B,EACD,CAAC,EAAE,MAAM;;;EAgDV"}

View File

@@ -0,0 +1,3 @@
import Renderer, { RenderOptions } from '../Renderer';
import Element from '../../nodes/Element';
export default function (node: Element, renderer: Renderer, options: RenderOptions): void;

View File

@@ -0,0 +1,62 @@
import { asyncScheduler } from '../scheduler/async';
import { defaultThrottleConfig, throttle } from './throttle';
import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
import { timer } from '../observable/timer';
/**
* Emits a value from the source Observable, then ignores subsequent source
* values for `duration` milliseconds, then repeats this process.
*
* <span class="informal">Lets a value pass, then ignores source values for the
* next `duration` milliseconds.</span>
*
* ![](throttleTime.png)
*
* `throttleTime` emits the source Observable values on the output Observable
* when its internal timer is disabled, and ignores source values when the timer
* is enabled. Initially, the timer is disabled. As soon as the first source
* value arrives, it is forwarded to the output Observable, and then the timer
* is enabled. After `duration` milliseconds (or the time unit determined
* internally by the optional `scheduler`) has passed, the timer is disabled,
* and this process repeats for the next source value. Optionally takes a
* {@link SchedulerLike} for managing timers.
*
* ## Examples
*
* ### Limit click rate
*
* Emit clicks at a rate of at most one click per second
*
* ```ts
* import { fromEvent, throttleTime } from 'rxjs';
*
* const clicks = fromEvent(document, 'click');
* const result = clicks.pipe(throttleTime(1000));
*
* result.subscribe(x => console.log(x));
* ```
*
* @see {@link auditTime}
* @see {@link debounceTime}
* @see {@link delay}
* @see {@link sampleTime}
* @see {@link throttle}
*
* @param duration Time to wait before emitting another value after
* emitting the last value, measured in milliseconds or the time unit determined
* internally by the optional `scheduler`.
* @param scheduler The {@link SchedulerLike} to use for
* managing the timers that handle the throttling. Defaults to {@link asyncScheduler}.
* @param config a configuration object to define `leading` and
* `trailing` behavior. Defaults to `{ leading: true, trailing: false }`.
* @return A function that returns an Observable that performs the throttle
* operation to limit the rate of emissions from the source.
*/
export function throttleTime<T>(
duration: number,
scheduler: SchedulerLike = asyncScheduler,
config = defaultThrottleConfig
): MonoTypeOperatorFunction<T> {
const duration$ = timer(duration, scheduler);
return throttle(() => duration$, config);
}

View File

@@ -0,0 +1,50 @@
import Wrapper from './shared/Wrapper';
import Renderer from '../Renderer';
import Block from '../Block';
import EachBlock from '../../nodes/EachBlock';
import IfBlock from '../../nodes/IfBlock';
import ElseBlock from '../../nodes/ElseBlock';
import FragmentWrapper from './Fragment';
import { Identifier, Node } from 'estree';
declare type DetachingOrNull = 'detaching' | null;
declare class IfBlockBranch extends Wrapper {
block: Block;
fragment: FragmentWrapper;
dependencies?: string[];
condition?: any;
snippet?: Node;
is_dynamic: boolean;
node: IfBlock | ElseBlock;
var: any;
get_ctx_name: Node | undefined;
constructor(renderer: Renderer, block: Block, parent: IfBlockWrapper, node: IfBlock | ElseBlock, strip_whitespace: boolean, next_sibling: Wrapper);
}
export default class IfBlockWrapper extends Wrapper {
node: IfBlock;
branches: IfBlockBranch[];
needs_update: boolean;
var: Identifier;
constructor(renderer: Renderer, block: Block, parent: Wrapper, node: EachBlock, strip_whitespace: boolean, next_sibling: Wrapper);
render(block: Block, parent_node: Identifier, parent_nodes: Identifier): void;
render_compound(block: Block, parent_node: Identifier, _parent_nodes: Identifier, dynamic: boolean, { name, anchor, has_else, if_exists_condition, has_transitions }: {
name: any;
anchor: any;
has_else: any;
if_exists_condition: any;
has_transitions: any;
}, detaching: DetachingOrNull): void;
render_compound_with_outros(block: Block, parent_node: Identifier, _parent_nodes: Identifier, dynamic: boolean, { name, anchor, has_else, has_transitions, if_exists_condition }: {
name: any;
anchor: any;
has_else: any;
has_transitions: any;
if_exists_condition: any;
}, detaching: DetachingOrNull): void;
render_simple(block: Block, parent_node: Identifier, _parent_nodes: Identifier, dynamic: boolean, { name, anchor, if_exists_condition, has_transitions }: {
name: any;
anchor: any;
if_exists_condition: any;
has_transitions: any;
}, detaching: DetachingOrNull): void;
}
export {};

View File

@@ -0,0 +1 @@
{"version":3,"file":"takeUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeUntil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAyCpC,MAAM,UAAU,SAAS,CAAI,QAA8B;IACzD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QACvG,CAAC,UAAU,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC"}

View File

@@ -0,0 +1,56 @@
import { Observable } from '../Observable';
import { MonoTypeOperatorFunction, OperatorFunction, TimestampProvider, ObservableInput, ObservedValueOf } from '../types';
/**
* Creates a {@link ConnectableObservable} that uses a {@link ReplaySubject}
* internally.
*
* @param bufferSize The buffer size for the underlying {@link ReplaySubject}.
* @param windowTime The window time for the underlying {@link ReplaySubject}.
* @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}.
* @deprecated Will be removed in v8. To create a connectable observable that uses a
* {@link ReplaySubject} under the hood, use {@link connectable}.
* `source.pipe(publishReplay(size, time, scheduler))` is equivalent to
* `connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })`.
* If you're using {@link refCount} after `publishReplay`, use the {@link share} operator instead.
* `publishReplay(size, time, scheduler), refCount()` is equivalent to
* `share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`.
* Details: https://rxjs.dev/deprecations/multicasting
*/
export declare function publishReplay<T>(bufferSize?: number, windowTime?: number, timestampProvider?: TimestampProvider): MonoTypeOperatorFunction<T>;
/**
* Creates an observable, that when subscribed to, will create a {@link ReplaySubject},
* and pass an observable from it (using [asObservable](api/index/class/Subject#asObservable)) to
* the `selector` function, which then returns an observable that is subscribed to before
* "connecting" the source to the internal `ReplaySubject`.
*
* Since this is deprecated, for additional details see the documentation for {@link connect}.
*
* @param bufferSize The buffer size for the underlying {@link ReplaySubject}.
* @param windowTime The window time for the underlying {@link ReplaySubject}.
* @param selector A function used to setup the multicast.
* @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}.
* @deprecated Will be removed in v8. Use the {@link connect} operator instead.
* `source.pipe(publishReplay(size, window, selector, scheduler))` is equivalent to
* `source.pipe(connect(selector, { connector: () => new ReplaySubject(size, window, scheduler) }))`.
* Details: https://rxjs.dev/deprecations/multicasting
*/
export declare function publishReplay<T, O extends ObservableInput<any>>(bufferSize: number | undefined, windowTime: number | undefined, selector: (shared: Observable<T>) => O, timestampProvider?: TimestampProvider): OperatorFunction<T, ObservedValueOf<O>>;
/**
* Creates a {@link ConnectableObservable} that uses a {@link ReplaySubject}
* internally.
*
* @param bufferSize The buffer size for the underlying {@link ReplaySubject}.
* @param windowTime The window time for the underlying {@link ReplaySubject}.
* @param selector Passing `undefined` here determines that this operator will return a {@link ConnectableObservable}.
* @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}.
* @deprecated Will be removed in v8. To create a connectable observable that uses a
* {@link ReplaySubject} under the hood, use {@link connectable}.
* `source.pipe(publishReplay(size, time, scheduler))` is equivalent to
* `connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })`.
* If you're using {@link refCount} after `publishReplay`, use the {@link share} operator instead.
* `publishReplay(size, time, scheduler), refCount()` is equivalent to
* `share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`.
* Details: https://rxjs.dev/deprecations/multicasting
*/
export declare function publishReplay<T, O extends ObservableInput<any>>(bufferSize: number | undefined, windowTime: number | undefined, selector: undefined, timestampProvider: TimestampProvider): OperatorFunction<T, ObservedValueOf<O>>;
//# sourceMappingURL=publishReplay.d.ts.map

View File

@@ -0,0 +1,22 @@
var baseSlice = require('./_baseSlice');
/**
* Gets all but the last element of `array`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {Array} Returns the slice of `array`.
* @example
*
* _.initial([1, 2, 3]);
* // => [1, 2]
*/
function initial(array) {
var length = array == null ? 0 : array.length;
return length ? baseSlice(array, 0, -1) : [];
}
module.exports = initial;

View File

@@ -0,0 +1,48 @@
{
"name": "lilconfig",
"version": "2.0.6",
"description": "A zero-dependency alternative to cosmiconfig",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prebuild": "npm run clean",
"build": "tsc --declaration",
"postbuild": "du -h ./dist/*",
"clean": "rm -rf ./dist",
"test": "jest --coverage",
"lint": "eslint ./src/*.ts"
},
"keywords": [
"cosmiconfig",
"config",
"configuration",
"search"
],
"files": [
"dist/*"
],
"repository": {
"type": "git",
"url": "https://github.com/antonk52/lilconfig"
},
"bugs": "https://github.com/antonk52/lilconfig/issues",
"author": "antonk52",
"license": "MIT",
"devDependencies": {
"@types/jest": "^27.0.2",
"@types/node": "^14.17.2",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"cosmiconfig": "^7.0.1",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.3.1",
"prettier": "^2.4.1",
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
},
"engines": {
"node": ">=10"
}
}

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"r s t u f H","2":"C K L G M N O 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"},C:{"1":"t u f H xB yB","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 EC FC"},D:{"1":"n o p q r s t u f H xB yB GC","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"},E:{"1":"3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B"},F:{"1":"W X Y Z a b c d e","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 PC QC RC SC qB AC TC rB"},G:{"1":"3B 4B 5B sB 6B 7B 8B 9B","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"},H:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"2":"vC"},P:{"1":"g 8C","2":"I wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C"},Q:{"2":"1B"},R:{"2":"9C"},S:{"2":"AD BD"}},B:5,C:"CSS font-palette"};

View File

@@ -0,0 +1,132 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for getEol.ts</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="prettify.css" />
<link rel="stylesheet" href="base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
<a href="index.html">All files</a> getEol.ts
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Statements</span>
<span class='fraction'>0/0</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Branches</span>
<span class='fraction'>3/3</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Functions</span>
<span class='fraction'>0/0</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Lines</span>
<span class='fraction'>0/0</span>
</div>
</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
</div>
<div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
<a name='L2'></a><a href='#L2'>2</a>
<a name='L3'></a><a href='#L3'>3</a>
<a name='L4'></a><a href='#L4'>4</a>
<a name='L5'></a><a href='#L5'>5</a>
<a name='L6'></a><a href='#L6'>6</a>
<a name='L7'></a><a href='#L7'>7</a>
<a name='L8'></a><a href='#L8'>8</a>
<a name='L9'></a><a href='#L9'>9</a>
<a name='L10'></a><a href='#L10'>10</a>
<a name='L11'></a><a href='#L11'>11</a>
<a name='L12'></a><a href='#L12'>12</a>
<a name='L13'></a><a href='#L13'>13</a>
<a name='L14'></a><a href='#L14'>14</a>
<a name='L15'></a><a href='#L15'>15</a>
<a name='L16'></a><a href='#L16'>16</a>
<a name='L17'></a><a href='#L17'>17</a>
<a name='L18'></a><a href='#L18'>18</a>
<a name='L19'></a><a href='#L19'>19</a>
<a name='L20'></a><a href='#L20'>20</a>
<a name='L21'></a><a href='#L21'>21</a>
<a name='L22'></a><a href='#L22'>22</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { ParseRuntime } from "./ParseRuntime";
//return first eol found from a data chunk.
export default function (data: string, param: ParseRuntime): string {
if (!param.eol &amp;&amp; data) {
for (var i = 0, len = data.length; i &lt; len; i++) {
if (data[i] === "\r") {
if (data[i + 1] === "\n") {
param.eol = "\r\n";
break;
} else if (data[i + 1]) {
param.eol = "\r";
break;
}
} else if (data[i] === "\n") {
param.eol = "\n";
break;
}
}
}
return param.eol || "\n";
};
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Thu May 17 2018 01:25:26 GMT+0100 (IST)
</div>
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="sorter.js"></script>
<script src="block-navigation.js"></script>
</body>
</html>

View File

@@ -0,0 +1,48 @@
# decompress-response [![Build Status](https://travis-ci.com/sindresorhus/decompress-response.svg?branch=master)](https://travis-ci.com/sindresorhus/decompress-response)
> Decompress a HTTP response if needed
Decompresses the [response](https://nodejs.org/api/http.html#http_class_http_incomingmessage) from [`http.request`](https://nodejs.org/api/http.html#http_http_request_options_callback) if it's gzipped, deflated or compressed with Brotli, otherwise just passes it through.
Used by [`got`](https://github.com/sindresorhus/got).
## Install
```
$ npm install decompress-response
```
## Usage
```js
const http = require('http');
const decompressResponse = require('decompress-response');
http.get('https://sindresorhus.com', response => {
response = decompressResponse(response);
});
```
## API
### decompressResponse(response)
Returns the decompressed HTTP response stream.
#### response
Type: [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
The HTTP incoming stream with compressed data.
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-decompress-response?utm_source=npm-decompress-response&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>

View File

@@ -0,0 +1,20 @@
import { __read, __spreadArray } from "tslib";
import { combineLatestInit } from '../observable/combineLatest';
import { operate } from '../util/lift';
import { argsOrArgArray } from '../util/argsOrArgArray';
import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';
import { pipe } from '../util/pipe';
import { popResultSelector } from '../util/args';
export function combineLatest() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
var resultSelector = popResultSelector(args);
return resultSelector
? pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs(resultSelector))
: operate(function (source, subscriber) {
combineLatestInit(__spreadArray([source], __read(argsOrArgArray(args))))(subscriber);
});
}
//# sourceMappingURL=combineLatest.js.map

View File

@@ -0,0 +1,22 @@
"use strict";
exports.__esModule = true;
exports.stripComments = exports.ensureObject = exports.getProp = exports.unesc = void 0;
var _unesc = _interopRequireDefault(require("./unesc"));
exports.unesc = _unesc["default"];
var _getProp = _interopRequireDefault(require("./getProp"));
exports.getProp = _getProp["default"];
var _ensureObject = _interopRequireDefault(require("./ensureObject"));
exports.ensureObject = _ensureObject["default"];
var _stripComments = _interopRequireDefault(require("./stripComments"));
exports.stripComments = _stripComments["default"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"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","2":"C K L G M N O"},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:{"1":"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","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","194":"YB uB ZB vB aB bB cB dB eB"},E:{"2":"I v J D E F A B 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:{"1":"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","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 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:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"2":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"2":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"2":"AD BD"}},B:4,C:"Orientation Sensor"};

View File

@@ -0,0 +1,23 @@
"use strict";
var Iterator = require("../../");
module.exports = function (t, a) {
var i1 = new Iterator(["raz", "dwa", "trzy"])
, i2 = new Iterator(["cztery", "pięć", "sześć"])
, i3 = new Iterator(["siedem", "osiem", "dziewięć"])
, iterator = t.call(i1, i2, i3);
a.deep(iterator.next(), { done: false, value: "raz" }, "#1");
a.deep(iterator.next(), { done: false, value: "dwa" }, "#2");
a.deep(iterator.next(), { done: false, value: "trzy" }, "#3");
a.deep(iterator.next(), { done: false, value: "cztery" }, "#4");
a.deep(iterator.next(), { done: false, value: "pięć" }, "#5");
a.deep(iterator.next(), { done: false, value: "sześć" }, "#6");
a.deep(iterator.next(), { done: false, value: "siedem" }, "#7");
a.deep(iterator.next(), { done: false, value: "osiem" }, "#8");
a.deep(iterator.next(), { done: false, value: "dziewięć" }, "#9");
a.deep(iterator.next(), { done: true, value: undefined }, "Done #1");
a.deep(iterator.next(), { done: true, value: undefined }, "Done #2");
};

View File

@@ -0,0 +1 @@
{"name":"is-ssh","version":"1.4.0","files":{"example/index.js":{"checkedAt":1678883670752,"integrity":"sha512-9qnO0GS13/bfNwW+fcRit1cvuoUGqjBbXpEIvwvxxvZTJ+aphc/nFqF/nECZko1P1G1iu1YmPJKskwrt26Xv6Q==","mode":420,"size":2018},"LICENSE":{"checkedAt":1678883670752,"integrity":"sha512-RN2+40XYyrC+9VOExtvM4hpuwGzO/gSfWyI3V2d5ECEFH86UpFxVCXZonuLxrB7UVuzW4dmz+Z6op5qj4soZyg==","mode":420,"size":1133},"lib/index.js":{"checkedAt":1678883670752,"integrity":"sha512-gBCKt0W4RFfSlQuMJlZowWN7EbPjnHbXTirwcAR9QbWKXNvJFnmbV9fJ6newZmPE4wWjIT9IGWes55pBMxndWA==","mode":420,"size":883},"test/index.js":{"checkedAt":1678883670752,"integrity":"sha512-VTD5zX6Zz9j7yoWVf9WQQ3PH+ozySxUoBekCGt5dmLLZhOKMhGcon+7uL2QofpNmL+inn69wivfVfClmzXnkjA==","mode":420,"size":1779},"package.json":{"checkedAt":1678883670752,"integrity":"sha512-O8E/2pE8XHc6knBqbPm/dJpC1SonH6peGQ0P5/kHnunc0PHNNqIQ/zK+JsjOwqi853an04Lq0TVmYhWBaolhtg==","mode":420,"size":756},"CONTRIBUTING.md":{"checkedAt":1678883670752,"integrity":"sha512-jWecBtzuT05JKitil+MfZQEwvUd1p0tDFm31o6jIBz5ksou1CWKvgIffG6RQgVBDzG8w9gZi0OU6fQus+pk0ig==","mode":420,"size":2612},"DOCUMENTATION.md":{"checkedAt":1678883670752,"integrity":"sha512-z79tObzzClzmdPI5ObZv1lDEklmAskzxUGI0MwSAqOBkl1f2Hroe8tLs92RCzB8+ldPTxZsMck44ZZ1RIkCkWg==","mode":420,"size":299},"README.md":{"checkedAt":1678883670753,"integrity":"sha512-FRphR7Mb54LYE0XeGE0dQcUg/rh1xEZ/bNw+ZjHJ/7e2OyU5cpvyi3H//Nz///SdXepowheaOM4Ki2sRnyCwIg==","mode":420,"size":7987}}}

View File

@@ -0,0 +1 @@
{"name":"crypto-random-string","version":"4.0.0","files":{"license":{"checkedAt":1678883669302,"integrity":"sha512-0fM2/ycrxrltyaBKfQ748Ck23VlPUUBgNAR47ldf4B1V/HoXTfWBSk+vcshGKwEpmOynu4mOP5o+hyBfuRNa8g==","mode":420,"size":1117},"index.js":{"checkedAt":1678883672490,"integrity":"sha512-heXh8PF6Va0ePrEmza8iqhpnoi9KY47MSQ24HIh79gk4P6mMuQPiFGeTAOMvDSKgnF9KtjZED9+fXiRBBFUNiQ==","mode":420,"size":5513},"readme.md":{"checkedAt":1678883672490,"integrity":"sha512-2ANZIW9s6IFU+sw324jSL28dVbxFxL/Fr+HDcp4KpqRv0zZRMOQ3A1CI1vE8Z37tmPGh+m7NpDZRyayPD222LQ==","mode":420,"size":4354},"package.json":{"checkedAt":1678883672490,"integrity":"sha512-k3f50cFggHpbbHqUzFI3US3RfYE6LyeW+hrViv0HfraNep9t59pqj35YNiitQ7ATeeylK9phca7sKCPx2Ik25Q==","mode":420,"size":848},"index.d.ts":{"checkedAt":1678883672493,"integrity":"sha512-lVOVc9yt0hwSmG5WtV1Bdppkho82Q5nrIEFCPM8xLbZHmp2AZByVZdGBaSvjBZ/DaPhoMm3vOwauZTK2L3eCKQ==","mode":420,"size":3537}}}

View File

@@ -0,0 +1,26 @@
"use strict";
var value = require("./valid-value")
, defineProperty = Object.defineProperty
, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
, getOwnPropertyNames = Object.getOwnPropertyNames
, getOwnPropertySymbols = Object.getOwnPropertySymbols;
module.exports = function (target, source) {
var error, sourceObject = Object(value(source));
target = Object(value(target));
getOwnPropertyNames(sourceObject).forEach(function (name) {
try {
defineProperty(target, name, getOwnPropertyDescriptor(source, name));
} catch (e) { error = e; }
});
if (typeof getOwnPropertySymbols === "function") {
getOwnPropertySymbols(sourceObject).forEach(function (symbol) {
try {
defineProperty(target, symbol, getOwnPropertyDescriptor(source, symbol));
} catch (e) { error = e; }
});
}
if (error !== undefined) throw error;
return target;
};

View File

@@ -0,0 +1,84 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
parseBoxShadowValue: ()=>parseBoxShadowValue,
formatBoxShadowValue: ()=>formatBoxShadowValue
});
const _splitAtTopLevelOnly = require("./splitAtTopLevelOnly");
let KEYWORDS = new Set([
"inset",
"inherit",
"initial",
"revert",
"unset"
]);
let SPACE = /\ +(?![^(]*\))/g // Similar to the one above, but with spaces instead.
;
let LENGTH = /^-?(\d+|\.\d+)(.*?)$/g;
function parseBoxShadowValue(input) {
let shadows = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(input, ",");
return shadows.map((shadow)=>{
let value = shadow.trim();
let result = {
raw: value
};
let parts = value.split(SPACE);
let seen = new Set();
for (let part of parts){
// Reset index, since the regex is stateful.
LENGTH.lastIndex = 0;
// Keyword
if (!seen.has("KEYWORD") && KEYWORDS.has(part)) {
result.keyword = part;
seen.add("KEYWORD");
} else if (LENGTH.test(part)) {
if (!seen.has("X")) {
result.x = part;
seen.add("X");
} else if (!seen.has("Y")) {
result.y = part;
seen.add("Y");
} else if (!seen.has("BLUR")) {
result.blur = part;
seen.add("BLUR");
} else if (!seen.has("SPREAD")) {
result.spread = part;
seen.add("SPREAD");
}
} else {
if (!result.color) {
result.color = part;
} else {
if (!result.unknown) result.unknown = [];
result.unknown.push(part);
}
}
}
// Check if valid
result.valid = result.x !== undefined && result.y !== undefined;
return result;
});
}
function formatBoxShadowValue(shadows) {
return shadows.map((shadow)=>{
if (!shadow.valid) {
return shadow.raw;
}
return [
shadow.keyword,
shadow.x,
shadow.y,
shadow.blur,
shadow.spread,
shadow.color
].filter(Boolean).join(" ");
}).join(", ");
}

View File

@@ -0,0 +1,48 @@
let Declaration = require('../declaration')
class ImageRendering extends Declaration {
/**
* Add hack only for crisp-edges
*/
check(decl) {
return decl.value === 'pixelated'
}
/**
* Change property name for IE
*/
prefixed(prop, prefix) {
if (prefix === '-ms-') {
return '-ms-interpolation-mode'
}
return super.prefixed(prop, prefix)
}
/**
* Change property and value for IE
*/
set(decl, prefix) {
if (prefix !== '-ms-') return super.set(decl, prefix)
decl.prop = '-ms-interpolation-mode'
decl.value = 'nearest-neighbor'
return decl
}
/**
* Return property name by spec
*/
normalize() {
return 'image-rendering'
}
/**
* Warn on old value
*/
process(node, result) {
return super.process(node, result)
}
}
ImageRendering.names = ['image-rendering', 'interpolation-mode']
module.exports = ImageRendering

View File

@@ -0,0 +1,43 @@
import { MonoTypeOperatorFunction, ObservableInput } from '../types';
/**
* Emits the most recently emitted value from the source Observable whenever
* another Observable, the `notifier`, emits.
*
* <span class="informal">It's like {@link sampleTime}, but samples whenever
* the `notifier` `ObservableInput` emits something.</span>
*
* ![](sample.png)
*
* Whenever the `notifier` `ObservableInput` emits a value, `sample`
* looks at the source Observable and emits whichever value it has most recently
* emitted since the previous sampling, unless the source has not emitted
* anything since the previous sampling. The `notifier` is subscribed to as soon
* as the output Observable is subscribed.
*
* ## Example
*
* On every click, sample the most recent `seconds` timer
*
* ```ts
* import { fromEvent, interval, sample } from 'rxjs';
*
* const seconds = interval(1000);
* const clicks = fromEvent(document, 'click');
* const result = seconds.pipe(sample(clicks));
*
* result.subscribe(x => console.log(x));
* ```
*
* @see {@link audit}
* @see {@link debounce}
* @see {@link sampleTime}
* @see {@link throttle}
*
* @param notifier The `ObservableInput` to use for sampling the
* source Observable.
* @return A function that returns an Observable that emits the results of
* sampling the values emitted by the source Observable whenever the notifier
* Observable emits value or completes.
*/
export declare function sample<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T>;
//# sourceMappingURL=sample.d.ts.map

View File

@@ -0,0 +1,52 @@
# is-weakref <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][11]][1]
Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
## Example
```js
var isWeakRef = require('is-weakref');
assert(!isWeakRef(function () {}));
assert(!isWeakRef(null));
assert(!isWeakRef(function* () { yield 42; return Infinity; });
assert(!isWeakRef(Symbol('foo')));
assert(!isWeakRef(1n));
assert(!isWeakRef(Object(1n)));
assert(!isWeakRef(new Set()));
assert(!isWeakRef(new WeakSet()));
assert(!isWeakRef(new Map()));
assert(!isWeakRef(new WeakMap()));
assert(isWeakRef(new WeakRef({})));
class MyWeakRef extends WeakRef {}
assert(isWeakRef(new MyWeakRef({})));
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.org/package/is-weakref
[npm-version-svg]: https://versionbadg.es/inspect-js/is-weakref.svg
[deps-svg]: https://david-dm.org/inspect-js/is-weakref.svg
[deps-url]: https://david-dm.org/inspect-js/is-weakref
[dev-deps-svg]: https://david-dm.org/inspect-js/is-weakref/dev-status.svg
[dev-deps-url]: https://david-dm.org/inspect-js/is-weakref#info=devDependencies
[license-image]: https://img.shields.io/npm/l/is-weakref.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/is-weakref.svg
[downloads-url]: https://npm-stat.com/charts.html?package=is-weakref
[codecov-image]: https://codecov.io/gh/inspect-js/is-weakref/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-weakref/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-weakref
[actions-url]: https://github.com/inspect-js/is-weakref/actions

View File

@@ -0,0 +1 @@
{"version":3,"file":"lastValueFrom.d.ts","sourceRoot":"","sources":["../../../src/internal/lastValueFrom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,YAAY,EAAE,CAAC,CAAC;CACjB;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3G,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC"}

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "tap", {
enumerable: true,
get: ()=>tap
});
function tap(value, mutator) {
mutator(value);
return value;
}

View File

@@ -0,0 +1,70 @@
function normalize (strArray) {
var resultArray = [];
if (strArray.length === 0) { return ''; }
if (typeof strArray[0] !== 'string') {
throw new TypeError('Url must be a string. Received ' + strArray[0]);
}
// If the first part is a plain protocol, we combine it with the next part.
if (strArray[0].match(/^[^/:]+:\/*$/) && strArray.length > 1) {
var first = strArray.shift();
strArray[0] = first + strArray[0];
}
// There must be two or three slashes in the file protocol, two slashes in anything else.
if (strArray[0].match(/^file:\/\/\//)) {
strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, '$1:///');
} else {
strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, '$1://');
}
for (var i = 0; i < strArray.length; i++) {
var component = strArray[i];
if (typeof component !== 'string') {
throw new TypeError('Url must be a string. Received ' + component);
}
if (component === '') { continue; }
if (i > 0) {
// Removing the starting slashes for each component but the first.
component = component.replace(/^[\/]+/, '');
}
if (i < strArray.length - 1) {
// Removing the ending slashes for each component but the last.
component = component.replace(/[\/]+$/, '');
} else {
// For the last component we will combine multiple slashes to a single one.
component = component.replace(/[\/]+$/, '/');
}
resultArray.push(component);
}
var str = resultArray.join('/');
// Each input component is now separated by a single slash except the possible first plain protocol part.
// remove trailing slash before parameters or hash
str = str.replace(/\/(\?|&|#[^!])/g, '$1');
// replace ? in parameters with &
var parts = str.split('?');
str = parts.shift() + (parts.length > 0 ? '?': '') + parts.join('&');
return str;
}
export default function urlJoin() {
var input;
if (typeof arguments[0] === 'object') {
input = arguments[0];
} else {
input = [].slice.call(arguments);
}
return normalize(input);
}

View File

@@ -0,0 +1,121 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.VirtualAction = exports.VirtualTimeScheduler = void 0;
var AsyncAction_1 = require("./AsyncAction");
var Subscription_1 = require("../Subscription");
var AsyncScheduler_1 = require("./AsyncScheduler");
var VirtualTimeScheduler = (function (_super) {
__extends(VirtualTimeScheduler, _super);
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
if (maxFrames === void 0) { maxFrames = Infinity; }
var _this = _super.call(this, schedulerActionCtor, function () { return _this.frame; }) || this;
_this.maxFrames = maxFrames;
_this.frame = 0;
_this.index = -1;
return _this;
}
VirtualTimeScheduler.prototype.flush = function () {
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
var error;
var action;
while ((action = actions[0]) && action.delay <= maxFrames) {
actions.shift();
this.frame = action.delay;
if ((error = action.execute(action.state, action.delay))) {
break;
}
}
if (error) {
while ((action = actions.shift())) {
action.unsubscribe();
}
throw error;
}
};
VirtualTimeScheduler.frameTimeFactor = 10;
return VirtualTimeScheduler;
}(AsyncScheduler_1.AsyncScheduler));
exports.VirtualTimeScheduler = VirtualTimeScheduler;
var VirtualAction = (function (_super) {
__extends(VirtualAction, _super);
function VirtualAction(scheduler, work, index) {
if (index === void 0) { index = (scheduler.index += 1); }
var _this = _super.call(this, scheduler, work) || this;
_this.scheduler = scheduler;
_this.work = work;
_this.index = index;
_this.active = true;
_this.index = scheduler.index = index;
return _this;
}
VirtualAction.prototype.schedule = function (state, delay) {
if (delay === void 0) { delay = 0; }
if (Number.isFinite(delay)) {
if (!this.id) {
return _super.prototype.schedule.call(this, state, delay);
}
this.active = false;
var action = new VirtualAction(this.scheduler, this.work);
this.add(action);
return action.schedule(state, delay);
}
else {
return Subscription_1.Subscription.EMPTY;
}
};
VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {
if (delay === void 0) { delay = 0; }
this.delay = scheduler.frame + delay;
var actions = scheduler.actions;
actions.push(this);
actions.sort(VirtualAction.sortActions);
return 1;
};
VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
if (delay === void 0) { delay = 0; }
return undefined;
};
VirtualAction.prototype._execute = function (state, delay) {
if (this.active === true) {
return _super.prototype._execute.call(this, state, delay);
}
};
VirtualAction.sortActions = function (a, b) {
if (a.delay === b.delay) {
if (a.index === b.index) {
return 0;
}
else if (a.index > b.index) {
return 1;
}
else {
return -1;
}
}
else if (a.delay > b.delay) {
return 1;
}
else {
return -1;
}
};
return VirtualAction;
}(AsyncAction_1.AsyncAction));
exports.VirtualAction = VirtualAction;
//# sourceMappingURL=VirtualTimeScheduler.js.map

View File

@@ -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.00256,"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.00256,"67":0,"68":0.00256,"69":0,"70":0,"71":0,"72":0.00256,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00256,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0.00256,"86":0,"87":0.00512,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0.00256,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0.00256,"102":0.00512,"103":0.00256,"104":0.00256,"105":0.00512,"106":0.00256,"107":0.00256,"108":0.01535,"109":0.26102,"110":0.17657,"111":0.00768,"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,"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.00256,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0.00512,"47":0.00256,"48":0,"49":0.00256,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0.00256,"59":0,"60":0,"61":0,"62":0,"63":0.00256,"64":0.00256,"65":0,"66":0.00256,"67":0.00256,"68":0.00256,"69":0.00256,"70":0.00512,"71":0,"72":0.00256,"73":0.00256,"74":0.00768,"75":0.00256,"76":0.00512,"77":0.00512,"78":0.00256,"79":0.01024,"80":0.00512,"81":0.02303,"83":0.00256,"84":0,"85":0.00256,"86":0.00512,"87":0.00768,"88":0.00512,"89":0.00512,"90":0.00512,"91":0.00512,"92":0.00512,"93":0.00768,"94":0.00256,"95":0.01024,"96":0.00512,"97":0.00512,"98":0.00512,"99":0.00768,"100":0.00256,"101":0.00768,"102":0.00768,"103":0.03327,"104":0.00768,"105":0.01535,"106":0.01535,"107":0.02047,"108":0.09212,"109":2.01137,"110":1.12596,"111":0.00256,"112":0.00256,"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.00256,"25":0,"26":0.00256,"27":0.00256,"28":0.00512,"29":0,"30":0.00256,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0.00256,"43":0,"44":0,"45":0,"46":0.00256,"47":0,"48":0,"49":0,"50":0.00256,"51":0.00256,"52":0,"53":0,"54":0.00512,"55":0.00512,"56":0,"57":0.00256,"58":0.01535,"60":0.06398,"62":0,"63":0.09468,"64":0.03839,"65":0.02303,"66":0.53739,"67":0.6116,"68":0,"69":0,"70":0,"71":0,"72":0.00512,"73":0.01535,"74":0.00256,"75":0,"76":0,"77":0,"78":0,"79":0.00256,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0.00256,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00256,"93":0.00256,"94":0.12027,"95":0.17145,"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.00768},B:{"12":0.00512,"13":0.00256,"14":0.00256,"15":0.0128,"16":0.00256,"17":0.00512,"18":0.01791,"79":0,"80":0,"81":0,"83":0,"84":0.00512,"85":0,"86":0,"87":0,"88":0,"89":0.0128,"90":0.01024,"91":0,"92":0.02303,"93":0,"94":0,"95":0.00256,"96":0,"97":0,"98":0,"99":0,"100":0.00256,"101":0,"102":0,"103":0.00256,"104":0.00256,"105":0.00256,"106":0.00256,"107":0.0128,"108":0.03327,"109":0.32755,"110":0.39409},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.00256,"14":0.00768,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0.00512,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0.01535,"14.1":0.01535,"15.1":0.00512,"15.2-15.3":0.00256,"15.4":0.00768,"15.5":0.0128,"15.6":0.02815,"16.0":0.00512,"16.1":0.02047,"16.2":0.02559,"16.3":0.04094,"16.4":0},G:{"8":0.00754,"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.01005,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.08796,"10.0-10.2":0.00503,"10.3":0.24629,"11.0-11.2":0.02765,"11.3-11.4":0.01508,"12.0-12.1":0.16336,"12.2-12.5":1.87988,"13.0-13.1":0.08796,"13.2":0.03267,"13.3":0.12063,"13.4-13.7":0.23624,"14.0-14.4":1.89999,"14.5-14.8":1.62354,"15.0-15.1":1.02288,"15.2-15.3":1.23399,"15.4":0.65846,"15.5":1.14603,"15.6":1.17618,"16.0":2.58358,"16.1":2.27195,"16.2":2.62631,"16.3":2.74694,"16.4":0.01005},P:{"4":0.13338,"20":0.24625,"5.0-5.4":0.02052,"6.2-6.4":0,"7.2-7.4":0.14364,"8.2":0,"9.2":0.06156,"10.1":0,"11.1-11.2":0.0513,"12.0":0.04104,"13.0":0.02052,"14.0":0.03078,"15.0":0.03078,"16.0":0.1026,"17.0":0.0513,"18.0":0.08208,"19.0":0.63614},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00645,"4.2-4.3":0.0137,"4.4":0,"4.4.3-4.4.4":0.08057},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0.00256,"11":0.00768,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0.00744,_:"3.0-3.1"},J:{"7":0,"10":0.02976},O:{"0":1.22032},H:{"0":11.29259},L:{"0":53.28138},R:{_:"0"},M:{"0":0.23067},Q:{"13.1":0.00744}};

View File

@@ -0,0 +1,15 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [ "es5" ],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"baseUrl": ".",
"paths": { "cfb": ["."] },
"types": [],
"noEmit": true,
"strictFunctionTypes": true,
"forceConsistentCasingInFileNames": true
}
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"mergeAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA8D5C,MAAM,UAAU,QAAQ,CAAiC,UAA6B;IAA7B,2BAAA,EAAA,qBAA6B;IACpF,OAAO,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACxC,CAAC"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"createObject.js","sourceRoot":"","sources":["../../../../src/internal/util/createObject.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,MAAa;IACxD,OAAO,IAAI,CAAC,MAAM,CAAC,UAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAnC,CAAmC,EAAE,EAAS,CAAC,CAAC;AACzF,CAAC"}