new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"name":"core-util-is","version":"1.0.3","files":{"lib/util.js":{"checkedAt":1678883673441,"integrity":"sha512-iCpYOEcwZZnvpumt9iMqOyKNogSc7GKcv5T+UxUGPefa7Ltx1OdM4qT7F1aLfckCKxXBDhZ9TZJSEZ24zYGOXg==","mode":420,"size":3039},"LICENSE":{"checkedAt":1678883673441,"integrity":"sha512-F2nx5/GPS+f3WkNqGjhRfdUVQivBOjRWdWH0MZK1fjrtbnmXB8ENEHKyKN74MWebsRFcFON4dYPl7BJHq+wM3w==","mode":420,"size":1077},"package.json":{"checkedAt":1678883673441,"integrity":"sha512-prDGz3TwxGYZwm7I9s0XSn6giiqCY1Y7bm5SXPLKupRfjuc7t/+FuFi4s/38T9j9T+dwmZmGOB0TjxHTyxCVaw==","mode":420,"size":799},"README.md":{"checkedAt":1678883673441,"integrity":"sha512-Rfy4s8YR+FWRhTFt90bGa4QgrCDDGgw5p/V0/mH0sAQRrkXong8Ed4jLXNG30HxX3x4VPMsKlrssWE0UdVDWsg==","mode":420,"size":67}}}
|
||||
@@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
|
||||
var pathUtils = require("../util/path");
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Get a path relative to the site path.
|
||||
*/
|
||||
function relatePath(absolutePath, siteAbsolutePath)
|
||||
{
|
||||
var relativePath = [];
|
||||
|
||||
// At this point, it's related to the host/port
|
||||
var related = true;
|
||||
var parentIndex = -1;
|
||||
|
||||
// Find parents
|
||||
siteAbsolutePath.forEach( function(siteAbsoluteDir, i)
|
||||
{
|
||||
if (related)
|
||||
{
|
||||
if (absolutePath[i] !== siteAbsoluteDir)
|
||||
{
|
||||
related = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
parentIndex = i;
|
||||
}
|
||||
}
|
||||
|
||||
if (!related)
|
||||
{
|
||||
// Up one level
|
||||
relativePath.push("..");
|
||||
}
|
||||
});
|
||||
|
||||
// Form path
|
||||
absolutePath.forEach( function(dir, i)
|
||||
{
|
||||
if (i > parentIndex)
|
||||
{
|
||||
relativePath.push(dir);
|
||||
}
|
||||
});
|
||||
|
||||
return relativePath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function relativize(urlObj, siteUrlObj, options)
|
||||
{
|
||||
if (urlObj.extra.relation.minimumScheme)
|
||||
{
|
||||
var pathArray = relatePath(urlObj.path.absolute.array, siteUrlObj.path.absolute.array);
|
||||
|
||||
urlObj.path.relative.array = pathArray;
|
||||
urlObj.path.relative.string = pathUtils.join(pathArray);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports = relativize;
|
||||
@@ -0,0 +1,354 @@
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var fs = require('fs');
|
||||
var url = require('url');
|
||||
var http = require('http');
|
||||
var https = require('https');
|
||||
var assert = require('assert');
|
||||
var toBuffer = require('stream-to-buffer');
|
||||
var Proxy = require('proxy');
|
||||
var socks = require('socksv5');
|
||||
var ProxyAgent = require('../');
|
||||
|
||||
describe('ProxyAgent', function () {
|
||||
// target servers
|
||||
var httpServer, httpPort;
|
||||
var httpsServer, httpsPort;
|
||||
|
||||
// proxy servers
|
||||
var socksServer, socksPort;
|
||||
var proxyServer, proxyPort;
|
||||
var proxyHttpsServer, proxyHttpsPort;
|
||||
|
||||
before(function (done) {
|
||||
// setup target HTTP server
|
||||
httpServer = http.createServer();
|
||||
httpServer.listen(function () {
|
||||
httpPort = httpServer.address().port;
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
before(function (done) {
|
||||
// setup target SSL HTTPS server
|
||||
var options = {
|
||||
key: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.key'),
|
||||
cert: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.pem')
|
||||
};
|
||||
httpsServer = https.createServer(options);
|
||||
httpsServer.listen(function () {
|
||||
httpsPort = httpsServer.address().port;
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
before(function (done) {
|
||||
// setup SOCKS proxy server
|
||||
socksServer = socks.createServer(function(info, accept, deny) {
|
||||
accept();
|
||||
});
|
||||
socksServer.listen(function() {
|
||||
socksPort = socksServer.address().port;
|
||||
done();
|
||||
});
|
||||
socksServer.useAuth(socks.auth.None());
|
||||
});
|
||||
|
||||
before(function (done) {
|
||||
// setup HTTP proxy server
|
||||
proxyServer = Proxy();
|
||||
proxyServer.listen(function () {
|
||||
proxyPort = proxyServer.address().port;
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
before(function (done) {
|
||||
// setup SSL HTTPS proxy server
|
||||
var options = {
|
||||
key: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.key'),
|
||||
cert: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.pem')
|
||||
};
|
||||
proxyHttpsServer = Proxy(https.createServer(options));
|
||||
proxyHttpsServer.listen(function () {
|
||||
proxyHttpsPort = proxyHttpsServer.address().port;
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
after(function (done) {
|
||||
//socksServer.once('close', function () { done(); });
|
||||
socksServer.close();
|
||||
done();
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
//httpServer.once('close', function () { done(); });
|
||||
httpServer.close();
|
||||
done();
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
//httpsServer.once('close', function () { done(); });
|
||||
httpsServer.close();
|
||||
done();
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
//proxyServer.once('close', function () { done(); });
|
||||
proxyServer.close();
|
||||
done();
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
//proxyHttpsServer.once('close', function () { done(); });
|
||||
proxyHttpsServer.close();
|
||||
done();
|
||||
});
|
||||
|
||||
it('should export a "function"', function () {
|
||||
assert.equal('function', typeof ProxyAgent);
|
||||
});
|
||||
|
||||
describe('constructor', function () {
|
||||
it('should throw a TypeError if no "protocol" is given', function () {
|
||||
assert.throws(function () {
|
||||
ProxyAgent({ host: 'foo.com', port: 3128 });
|
||||
}, function (e) {
|
||||
return 'TypeError' === e.name &&
|
||||
/must specify a "protocol"/.test(e.message) &&
|
||||
/\bhttp\b/.test(e.message) &&
|
||||
/\bhttps\b/.test(e.message) &&
|
||||
/\bsocks\b/.test(e.message);
|
||||
});
|
||||
});
|
||||
|
||||
it('should throw a TypeError for unsupported proxy protocols', function () {
|
||||
assert.throws(function () {
|
||||
ProxyAgent('bad://foo.com:8888');
|
||||
}, function (e) {
|
||||
return 'TypeError' === e.name &&
|
||||
/unsupported proxy protocol/.test(e.message);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('"http" module', function () {
|
||||
describe('over "http" proxy', function () {
|
||||
it('should work', function (done) {
|
||||
httpServer.once('request', function (req, res) {
|
||||
res.end(JSON.stringify(req.headers));
|
||||
});
|
||||
|
||||
var uri = 'http://localhost:' + proxyPort;
|
||||
var agent = new ProxyAgent(uri);
|
||||
|
||||
var opts = url.parse('http://localhost:' + httpPort + '/test');
|
||||
opts.agent = agent;
|
||||
|
||||
var req = http.get(opts, function (res) {
|
||||
toBuffer(res, function (err, buf) {
|
||||
if (err) return done(err);
|
||||
var data = JSON.parse(buf.toString('utf8'));
|
||||
assert.equal('localhost:' + httpPort, data.host);
|
||||
assert('via' in data);
|
||||
done();
|
||||
});
|
||||
});
|
||||
req.once('error', done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('over "http" proxy from env', function () {
|
||||
it('should work', function (done) {
|
||||
httpServer.once('request', function (req, res) {
|
||||
res.end(JSON.stringify(req.headers));
|
||||
});
|
||||
|
||||
process.env.HTTP_PROXY = 'http://localhost:' + proxyPort;
|
||||
var agent = new ProxyAgent();
|
||||
|
||||
var opts = url.parse('http://localhost:' + httpPort + '/test');
|
||||
opts.agent = agent;
|
||||
|
||||
var req = http.get(opts, function (res) {
|
||||
toBuffer(res, function (err, buf) {
|
||||
if (err) return done(err);
|
||||
var data = JSON.parse(buf.toString('utf8'));
|
||||
assert.equal('localhost:' + httpPort, data.host);
|
||||
assert('via' in data);
|
||||
done();
|
||||
});
|
||||
});
|
||||
req.once('error', done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('with no proxy from env', function () {
|
||||
it('should work', function (done) {
|
||||
httpServer.once('request', function (req, res) {
|
||||
res.end(JSON.stringify(req.headers));
|
||||
});
|
||||
|
||||
process.env.NO_PROXY = '*';
|
||||
var agent = new ProxyAgent();
|
||||
|
||||
var opts = url.parse('http://localhost:' + httpPort + '/test');
|
||||
opts.agent = agent;
|
||||
|
||||
var req = http.get(opts, function (res) {
|
||||
toBuffer(res, function (err, buf) {
|
||||
if (err) return done(err);
|
||||
var data = JSON.parse(buf.toString('utf8'));
|
||||
assert.equal('localhost:' + httpPort, data.host);
|
||||
assert(!('via' in data));
|
||||
done();
|
||||
});
|
||||
});
|
||||
req.once('error', done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('over "https" proxy', function () {
|
||||
it('should work', function (done) {
|
||||
httpServer.once('request', function (req, res) {
|
||||
res.end(JSON.stringify(req.headers));
|
||||
});
|
||||
|
||||
var uri = 'https://localhost:' + proxyHttpsPort;
|
||||
var proxy = url.parse(uri);
|
||||
proxy.rejectUnauthorized = false;
|
||||
var agent = new ProxyAgent(proxy);
|
||||
|
||||
var opts = url.parse('http://localhost:' + httpPort + '/test');
|
||||
opts.agent = agent;
|
||||
|
||||
var req = http.get(opts, function (res) {
|
||||
toBuffer(res, function (err, buf) {
|
||||
if (err) return done(err);
|
||||
var data = JSON.parse(buf.toString('utf8'));
|
||||
assert.equal('localhost:' + httpPort, data.host);
|
||||
assert('via' in data);
|
||||
done();
|
||||
});
|
||||
});
|
||||
req.once('error', done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('over "socks" proxy', function () {
|
||||
it('should work', function (done) {
|
||||
httpServer.once('request', function (req, res) {
|
||||
res.end(JSON.stringify(req.headers));
|
||||
});
|
||||
|
||||
var uri = 'socks://localhost:' + socksPort;
|
||||
var agent = new ProxyAgent(uri);
|
||||
|
||||
var opts = url.parse('http://localhost:' + httpPort + '/test');
|
||||
opts.agent = agent;
|
||||
|
||||
var req = http.get(opts, function (res) {
|
||||
toBuffer(res, function (err, buf) {
|
||||
if (err) return done(err);
|
||||
var data = JSON.parse(buf.toString('utf8'));
|
||||
assert.equal('localhost:' + httpPort, data.host);
|
||||
done();
|
||||
});
|
||||
});
|
||||
req.once('error', done);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('"https" module', function () {
|
||||
describe('over "http" proxy', function () {
|
||||
it('should work', function (done) {
|
||||
httpsServer.once('request', function (req, res) {
|
||||
res.end(JSON.stringify(req.headers));
|
||||
});
|
||||
|
||||
var uri = 'http://localhost:' + proxyPort;
|
||||
var agent = new ProxyAgent(uri);
|
||||
|
||||
var opts = url.parse('https://localhost:' + httpsPort + '/test');
|
||||
opts.agent = agent;
|
||||
opts.rejectUnauthorized = false;
|
||||
|
||||
var req = https.get(opts, function (res) {
|
||||
toBuffer(res, function (err, buf) {
|
||||
if (err) return done(err);
|
||||
var data = JSON.parse(buf.toString('utf8'));
|
||||
assert.equal('localhost:' + httpsPort, data.host);
|
||||
done();
|
||||
});
|
||||
});
|
||||
req.once('error', done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('over "https" proxy', function () {
|
||||
it('should work', function (done) {
|
||||
var gotReq = false;
|
||||
httpsServer.once('request', function (req, res) {
|
||||
gotReq = true;
|
||||
res.end(JSON.stringify(req.headers));
|
||||
});
|
||||
|
||||
var agent = new ProxyAgent({
|
||||
protocol: 'https:',
|
||||
host: 'localhost',
|
||||
port: proxyHttpsPort,
|
||||
rejectUnauthorized: false
|
||||
});
|
||||
|
||||
var opts = url.parse('https://localhost:' + httpsPort + '/test');
|
||||
opts.agent = agent;
|
||||
opts.rejectUnauthorized = false;
|
||||
|
||||
var req = https.get(opts, function (res) {
|
||||
toBuffer(res, function (err, buf) {
|
||||
if (err) return done(err);
|
||||
var data = JSON.parse(buf.toString('utf8'));
|
||||
assert.equal('localhost:' + httpsPort, data.host);
|
||||
assert(gotReq);
|
||||
done();
|
||||
});
|
||||
});
|
||||
req.once('error', done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('over "socks" proxy', function () {
|
||||
it('should work', function (done) {
|
||||
var gotReq = false;
|
||||
httpsServer.once('request', function (req, res) {
|
||||
gotReq = true;
|
||||
res.end(JSON.stringify(req.headers));
|
||||
});
|
||||
|
||||
var uri = 'socks://localhost:' + socksPort;
|
||||
var agent = new ProxyAgent(uri);
|
||||
|
||||
var opts = url.parse('https://localhost:' + httpsPort + '/test');
|
||||
opts.agent = agent;
|
||||
opts.rejectUnauthorized = false;
|
||||
|
||||
var req = https.get(opts, function (res) {
|
||||
toBuffer(res, function (err, buf) {
|
||||
if (err) return done(err);
|
||||
var data = JSON.parse(buf.toString('utf8'));
|
||||
assert.equal('localhost:' + httpsPort, data.host);
|
||||
assert(gotReq);
|
||||
done();
|
||||
});
|
||||
});
|
||||
req.once('error', done);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,145 @@
|
||||
import { ParserError } from './error';
|
||||
import { MessageFormatElement } from './types';
|
||||
export interface Position {
|
||||
/** Offset in terms of UTF-16 *code unit*. */
|
||||
offset: number;
|
||||
line: number;
|
||||
/** Column offset in terms of unicode *code point*. */
|
||||
column: number;
|
||||
}
|
||||
export interface ParserOptions {
|
||||
/**
|
||||
* Whether to treat HTML/XML tags as string literal
|
||||
* instead of parsing them as tag token.
|
||||
* When this is false we only allow simple tags without
|
||||
* any attributes
|
||||
*/
|
||||
ignoreTag?: boolean;
|
||||
/**
|
||||
* Should `select`, `selectordinal`, and `plural` arguments always include
|
||||
* the `other` case clause.
|
||||
*/
|
||||
requiresOtherClause?: boolean;
|
||||
/**
|
||||
* Whether to parse number/datetime skeleton
|
||||
* into Intl.NumberFormatOptions and Intl.DateTimeFormatOptions, respectively.
|
||||
*/
|
||||
shouldParseSkeletons?: boolean;
|
||||
/**
|
||||
* Capture location info in AST
|
||||
* Default is false
|
||||
*/
|
||||
captureLocation?: boolean;
|
||||
locale?: Intl.Locale;
|
||||
}
|
||||
export declare type Result<T, E> = {
|
||||
val: T;
|
||||
err: null;
|
||||
} | {
|
||||
val: null;
|
||||
err: E;
|
||||
};
|
||||
export declare class Parser {
|
||||
private message;
|
||||
private position;
|
||||
private locale?;
|
||||
private ignoreTag;
|
||||
private requiresOtherClause;
|
||||
private shouldParseSkeletons?;
|
||||
constructor(message: string, options?: ParserOptions);
|
||||
parse(): Result<MessageFormatElement[], ParserError>;
|
||||
private parseMessage;
|
||||
/**
|
||||
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
||||
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
||||
* are accepted:
|
||||
*
|
||||
* ```
|
||||
* tag ::= "<" tagName (whitespace)* "/>" | "<" tagName (whitespace)* ">" message "</" tagName (whitespace)* ">"
|
||||
* tagName ::= [a-z] (PENChar)*
|
||||
* PENChar ::=
|
||||
* "-" | "." | [0-9] | "_" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |
|
||||
* [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |
|
||||
* [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
|
||||
* ```
|
||||
*
|
||||
* [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
|
||||
* NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
|
||||
* since other tag-based engines like React allow it
|
||||
*/
|
||||
private parseTag;
|
||||
/**
|
||||
* This method assumes that the caller has peeked ahead for the first tag character.
|
||||
*/
|
||||
private parseTagName;
|
||||
private parseLiteral;
|
||||
tryParseLeftAngleBracket(): string | null;
|
||||
/**
|
||||
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
||||
* a character that requires quoting (that is, "only where needed"), and works the same in
|
||||
* nested messages as on the top level of the pattern. The new behavior is otherwise compatible.
|
||||
*/
|
||||
private tryParseQuote;
|
||||
private tryParseUnquoted;
|
||||
private parseArgument;
|
||||
/**
|
||||
* Advance the parser until the end of the identifier, if it is currently on
|
||||
* an identifier character. Return an empty string otherwise.
|
||||
*/
|
||||
private parseIdentifierIfPossible;
|
||||
private parseArgumentOptions;
|
||||
private tryParseArgumentClose;
|
||||
/**
|
||||
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
||||
*/
|
||||
private parseSimpleArgStyleIfPossible;
|
||||
private parseNumberSkeletonFromString;
|
||||
/**
|
||||
* @param nesting_level The current nesting level of messages.
|
||||
* This can be positive when parsing message fragment in select or plural argument options.
|
||||
* @param parent_arg_type The parent argument's type.
|
||||
* @param parsed_first_identifier If provided, this is the first identifier-like selector of
|
||||
* the argument. It is a by-product of a previous parsing attempt.
|
||||
* @param expecting_close_tag If true, this message is directly or indirectly nested inside
|
||||
* between a pair of opening and closing tags. The nested message will not parse beyond
|
||||
* the closing tag boundary.
|
||||
*/
|
||||
private tryParsePluralOrSelectOptions;
|
||||
private tryParseDecimalInteger;
|
||||
private offset;
|
||||
private isEOF;
|
||||
private clonePosition;
|
||||
/**
|
||||
* Return the code point at the current position of the parser.
|
||||
* Throws if the index is out of bound.
|
||||
*/
|
||||
private char;
|
||||
private error;
|
||||
/** Bump the parser to the next UTF-16 code unit. */
|
||||
private bump;
|
||||
/**
|
||||
* If the substring starting at the current position of the parser has
|
||||
* the given prefix, then bump the parser to the character immediately
|
||||
* following the prefix and return true. Otherwise, don't bump the parser
|
||||
* and return false.
|
||||
*/
|
||||
private bumpIf;
|
||||
/**
|
||||
* Bump the parser until the pattern character is found and return `true`.
|
||||
* Otherwise bump to the end of the file and return `false`.
|
||||
*/
|
||||
private bumpUntil;
|
||||
/**
|
||||
* Bump the parser to the target offset.
|
||||
* If target offset is beyond the end of the input, bump the parser to the end of the input.
|
||||
*/
|
||||
private bumpTo;
|
||||
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
||||
private bumpSpace;
|
||||
/**
|
||||
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
||||
* If the input has been exhausted, then this returns null.
|
||||
*/
|
||||
private peek;
|
||||
}
|
||||
//# sourceMappingURL=parser.d.ts.map
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('isFinite', require('../isFinite'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,439 @@
|
||||
'use strict'
|
||||
|
||||
let { isClean, my } = require('./symbols')
|
||||
let Declaration = require('./declaration')
|
||||
let Comment = require('./comment')
|
||||
let Node = require('./node')
|
||||
|
||||
let parse, Rule, AtRule, Root
|
||||
|
||||
function cleanSource(nodes) {
|
||||
return nodes.map(i => {
|
||||
if (i.nodes) i.nodes = cleanSource(i.nodes)
|
||||
delete i.source
|
||||
return i
|
||||
})
|
||||
}
|
||||
|
||||
function markDirtyUp(node) {
|
||||
node[isClean] = false
|
||||
if (node.proxyOf.nodes) {
|
||||
for (let i of node.proxyOf.nodes) {
|
||||
markDirtyUp(i)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Container extends Node {
|
||||
push(child) {
|
||||
child.parent = this
|
||||
this.proxyOf.nodes.push(child)
|
||||
return this
|
||||
}
|
||||
|
||||
each(callback) {
|
||||
if (!this.proxyOf.nodes) return undefined
|
||||
let iterator = this.getIterator()
|
||||
|
||||
let index, result
|
||||
while (this.indexes[iterator] < this.proxyOf.nodes.length) {
|
||||
index = this.indexes[iterator]
|
||||
result = callback(this.proxyOf.nodes[index], index)
|
||||
if (result === false) break
|
||||
|
||||
this.indexes[iterator] += 1
|
||||
}
|
||||
|
||||
delete this.indexes[iterator]
|
||||
return result
|
||||
}
|
||||
|
||||
walk(callback) {
|
||||
return this.each((child, i) => {
|
||||
let result
|
||||
try {
|
||||
result = callback(child, i)
|
||||
} catch (e) {
|
||||
throw child.addToError(e)
|
||||
}
|
||||
if (result !== false && child.walk) {
|
||||
result = child.walk(callback)
|
||||
}
|
||||
|
||||
return result
|
||||
})
|
||||
}
|
||||
|
||||
walkDecls(prop, callback) {
|
||||
if (!callback) {
|
||||
callback = prop
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'decl') {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
if (prop instanceof RegExp) {
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'decl' && prop.test(child.prop)) {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'decl' && child.prop === prop) {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
walkRules(selector, callback) {
|
||||
if (!callback) {
|
||||
callback = selector
|
||||
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'rule') {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
if (selector instanceof RegExp) {
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'rule' && selector.test(child.selector)) {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'rule' && child.selector === selector) {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
walkAtRules(name, callback) {
|
||||
if (!callback) {
|
||||
callback = name
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'atrule') {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
if (name instanceof RegExp) {
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'atrule' && name.test(child.name)) {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'atrule' && child.name === name) {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
walkComments(callback) {
|
||||
return this.walk((child, i) => {
|
||||
if (child.type === 'comment') {
|
||||
return callback(child, i)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
append(...children) {
|
||||
for (let child of children) {
|
||||
let nodes = this.normalize(child, this.last)
|
||||
for (let node of nodes) this.proxyOf.nodes.push(node)
|
||||
}
|
||||
|
||||
this.markDirty()
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
prepend(...children) {
|
||||
children = children.reverse()
|
||||
for (let child of children) {
|
||||
let nodes = this.normalize(child, this.first, 'prepend').reverse()
|
||||
for (let node of nodes) this.proxyOf.nodes.unshift(node)
|
||||
for (let id in this.indexes) {
|
||||
this.indexes[id] = this.indexes[id] + nodes.length
|
||||
}
|
||||
}
|
||||
|
||||
this.markDirty()
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
cleanRaws(keepBetween) {
|
||||
super.cleanRaws(keepBetween)
|
||||
if (this.nodes) {
|
||||
for (let node of this.nodes) node.cleanRaws(keepBetween)
|
||||
}
|
||||
}
|
||||
|
||||
insertBefore(exist, add) {
|
||||
let existIndex = this.index(exist)
|
||||
let type = existIndex === 0 ? 'prepend' : false
|
||||
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse()
|
||||
existIndex = this.index(exist)
|
||||
for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node)
|
||||
|
||||
let index
|
||||
for (let id in this.indexes) {
|
||||
index = this.indexes[id]
|
||||
if (existIndex <= index) {
|
||||
this.indexes[id] = index + nodes.length
|
||||
}
|
||||
}
|
||||
|
||||
this.markDirty()
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
insertAfter(exist, add) {
|
||||
let existIndex = this.index(exist)
|
||||
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse()
|
||||
existIndex = this.index(exist)
|
||||
for (let node of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node)
|
||||
|
||||
let index
|
||||
for (let id in this.indexes) {
|
||||
index = this.indexes[id]
|
||||
if (existIndex < index) {
|
||||
this.indexes[id] = index + nodes.length
|
||||
}
|
||||
}
|
||||
|
||||
this.markDirty()
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
removeChild(child) {
|
||||
child = this.index(child)
|
||||
this.proxyOf.nodes[child].parent = undefined
|
||||
this.proxyOf.nodes.splice(child, 1)
|
||||
|
||||
let index
|
||||
for (let id in this.indexes) {
|
||||
index = this.indexes[id]
|
||||
if (index >= child) {
|
||||
this.indexes[id] = index - 1
|
||||
}
|
||||
}
|
||||
|
||||
this.markDirty()
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
removeAll() {
|
||||
for (let node of this.proxyOf.nodes) node.parent = undefined
|
||||
this.proxyOf.nodes = []
|
||||
|
||||
this.markDirty()
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
replaceValues(pattern, opts, callback) {
|
||||
if (!callback) {
|
||||
callback = opts
|
||||
opts = {}
|
||||
}
|
||||
|
||||
this.walkDecls(decl => {
|
||||
if (opts.props && !opts.props.includes(decl.prop)) return
|
||||
if (opts.fast && !decl.value.includes(opts.fast)) return
|
||||
|
||||
decl.value = decl.value.replace(pattern, callback)
|
||||
})
|
||||
|
||||
this.markDirty()
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
every(condition) {
|
||||
return this.nodes.every(condition)
|
||||
}
|
||||
|
||||
some(condition) {
|
||||
return this.nodes.some(condition)
|
||||
}
|
||||
|
||||
index(child) {
|
||||
if (typeof child === 'number') return child
|
||||
if (child.proxyOf) child = child.proxyOf
|
||||
return this.proxyOf.nodes.indexOf(child)
|
||||
}
|
||||
|
||||
get first() {
|
||||
if (!this.proxyOf.nodes) return undefined
|
||||
return this.proxyOf.nodes[0]
|
||||
}
|
||||
|
||||
get last() {
|
||||
if (!this.proxyOf.nodes) return undefined
|
||||
return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]
|
||||
}
|
||||
|
||||
normalize(nodes, sample) {
|
||||
if (typeof nodes === 'string') {
|
||||
nodes = cleanSource(parse(nodes).nodes)
|
||||
} else if (Array.isArray(nodes)) {
|
||||
nodes = nodes.slice(0)
|
||||
for (let i of nodes) {
|
||||
if (i.parent) i.parent.removeChild(i, 'ignore')
|
||||
}
|
||||
} else if (nodes.type === 'root' && this.type !== 'document') {
|
||||
nodes = nodes.nodes.slice(0)
|
||||
for (let i of nodes) {
|
||||
if (i.parent) i.parent.removeChild(i, 'ignore')
|
||||
}
|
||||
} else if (nodes.type) {
|
||||
nodes = [nodes]
|
||||
} else if (nodes.prop) {
|
||||
if (typeof nodes.value === 'undefined') {
|
||||
throw new Error('Value field is missed in node creation')
|
||||
} else if (typeof nodes.value !== 'string') {
|
||||
nodes.value = String(nodes.value)
|
||||
}
|
||||
nodes = [new Declaration(nodes)]
|
||||
} else if (nodes.selector) {
|
||||
nodes = [new Rule(nodes)]
|
||||
} else if (nodes.name) {
|
||||
nodes = [new AtRule(nodes)]
|
||||
} else if (nodes.text) {
|
||||
nodes = [new Comment(nodes)]
|
||||
} else {
|
||||
throw new Error('Unknown node type in node creation')
|
||||
}
|
||||
|
||||
let processed = nodes.map(i => {
|
||||
/* c8 ignore next */
|
||||
if (!i[my]) Container.rebuild(i)
|
||||
i = i.proxyOf
|
||||
if (i.parent) i.parent.removeChild(i)
|
||||
if (i[isClean]) markDirtyUp(i)
|
||||
if (typeof i.raws.before === 'undefined') {
|
||||
if (sample && typeof sample.raws.before !== 'undefined') {
|
||||
i.raws.before = sample.raws.before.replace(/\S/g, '')
|
||||
}
|
||||
}
|
||||
i.parent = this.proxyOf
|
||||
return i
|
||||
})
|
||||
|
||||
return processed
|
||||
}
|
||||
|
||||
getProxyProcessor() {
|
||||
return {
|
||||
set(node, prop, value) {
|
||||
if (node[prop] === value) return true
|
||||
node[prop] = value
|
||||
if (prop === 'name' || prop === 'params' || prop === 'selector') {
|
||||
node.markDirty()
|
||||
}
|
||||
return true
|
||||
},
|
||||
|
||||
get(node, prop) {
|
||||
if (prop === 'proxyOf') {
|
||||
return node
|
||||
} else if (!node[prop]) {
|
||||
return node[prop]
|
||||
} else if (
|
||||
prop === 'each' ||
|
||||
(typeof prop === 'string' && prop.startsWith('walk'))
|
||||
) {
|
||||
return (...args) => {
|
||||
return node[prop](
|
||||
...args.map(i => {
|
||||
if (typeof i === 'function') {
|
||||
return (child, index) => i(child.toProxy(), index)
|
||||
} else {
|
||||
return i
|
||||
}
|
||||
})
|
||||
)
|
||||
}
|
||||
} else if (prop === 'every' || prop === 'some') {
|
||||
return cb => {
|
||||
return node[prop]((child, ...other) =>
|
||||
cb(child.toProxy(), ...other)
|
||||
)
|
||||
}
|
||||
} else if (prop === 'root') {
|
||||
return () => node.root().toProxy()
|
||||
} else if (prop === 'nodes') {
|
||||
return node.nodes.map(i => i.toProxy())
|
||||
} else if (prop === 'first' || prop === 'last') {
|
||||
return node[prop].toProxy()
|
||||
} else {
|
||||
return node[prop]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
getIterator() {
|
||||
if (!this.lastEach) this.lastEach = 0
|
||||
if (!this.indexes) this.indexes = {}
|
||||
|
||||
this.lastEach += 1
|
||||
let iterator = this.lastEach
|
||||
this.indexes[iterator] = 0
|
||||
|
||||
return iterator
|
||||
}
|
||||
}
|
||||
|
||||
Container.registerParse = dependant => {
|
||||
parse = dependant
|
||||
}
|
||||
|
||||
Container.registerRule = dependant => {
|
||||
Rule = dependant
|
||||
}
|
||||
|
||||
Container.registerAtRule = dependant => {
|
||||
AtRule = dependant
|
||||
}
|
||||
|
||||
Container.registerRoot = dependant => {
|
||||
Root = dependant
|
||||
}
|
||||
|
||||
module.exports = Container
|
||||
Container.default = Container
|
||||
|
||||
/* c8 ignore start */
|
||||
Container.rebuild = node => {
|
||||
if (node.type === 'atrule') {
|
||||
Object.setPrototypeOf(node, AtRule.prototype)
|
||||
} else if (node.type === 'rule') {
|
||||
Object.setPrototypeOf(node, Rule.prototype)
|
||||
} else if (node.type === 'decl') {
|
||||
Object.setPrototypeOf(node, Declaration.prototype)
|
||||
} else if (node.type === 'comment') {
|
||||
Object.setPrototypeOf(node, Comment.prototype)
|
||||
} else if (node.type === 'root') {
|
||||
Object.setPrototypeOf(node, Root.prototype)
|
||||
}
|
||||
|
||||
node[my] = true
|
||||
|
||||
if (node.nodes) {
|
||||
node.nodes.forEach(child => {
|
||||
Container.rebuild(child)
|
||||
})
|
||||
}
|
||||
}
|
||||
/* c8 ignore stop */
|
||||
@@ -0,0 +1,278 @@
|
||||
# 2.2.5
|
||||
|
||||
* Docs: Updated benchmark results. Add fast-toml to result list. Improved benchmark layout.
|
||||
* Update @sgarciac/bombadil and @ltd/j-toml in benchmarks and compliance tests.
|
||||
* Dev: Some dev dep updates that shouldn't have any impact.
|
||||
|
||||
# 2.2.4
|
||||
|
||||
* Bug fix: Plain date literals (not datetime) immediately followed by another statement (no whitespace or blank line) would crash. Fixes [#19](https://github.com/iarna/iarna-toml/issues/19) and [#23](https://github.com/iarna/iarna-toml/issues/23), thank you [@arnau](https://github.com/arnau) and [@jschaf](https://github.com/jschaf) for reporting this!
|
||||
* Bug fix: Hex literals with lowercase Es would throw errors. (Thank you [@DaeCatt](https://github.com/DaeCatt) for this fix!) Fixed [#20](https://github.com/iarna/iarna-toml/issues/20)
|
||||
* Some minor doc tweaks
|
||||
* Added Node 12 and 13 to Travis. (Node 6 is failing there now, mysteriously. It works on my machine™, shipping anyway. 🙃)
|
||||
|
||||
# 2.2.3
|
||||
|
||||
This release just updates the spec compliance tests and benchmark data to
|
||||
better represent @ltd/j-toml.
|
||||
|
||||
# 2.2.2
|
||||
|
||||
## Fixes
|
||||
|
||||
* Support parsing and stringifying objects with `__proto__` properties. ([@LongTengDao](https://github.com/LongTengDao))
|
||||
|
||||
## Misc
|
||||
|
||||
* Updates for spec compliance and benchmarking:
|
||||
* @sgarciac/bombadil -> 2.1.0
|
||||
* toml -> 3.0.0
|
||||
* Added spec compliance and benchmarking for:
|
||||
* @ltd/j-toml
|
||||
|
||||
# 2.2.1
|
||||
|
||||
## Fixes
|
||||
|
||||
* Fix bug where keys with names matching javascript Object methods would
|
||||
error. Thanks [@LongTengDao](https://github.com/LongTengDao) for finding this!
|
||||
* Fix bug where a bundled version would fail if `util.inspect` wasn't
|
||||
provided. This was supposed to be guarded against, but there was a bug in
|
||||
the guard. Thanks [@agriffis](https://github.com/agriffis) for finding and fixing this!
|
||||
|
||||
## Misc
|
||||
|
||||
* Update the version of bombadil for spec compliance and benchmarking purposes to 2.0.0
|
||||
|
||||
## Did you know?
|
||||
|
||||
Node 6 and 8 are measurably slower than Node 6, 10 and 11, at least when it comes to parsing TOML!
|
||||
|
||||

|
||||
|
||||
# 2.2.0
|
||||
|
||||
## Features
|
||||
|
||||
* Typescript: Lots of improvements to our type definitions, many many to
|
||||
[@jorgegonzalez](https://github.com/jorgegonzalez) and [@momocow](https://github.com/momocow) for working through these.
|
||||
|
||||
## Fixes
|
||||
|
||||
* Very large integers (>52bit) are stored as BigInts on runtimes that
|
||||
support them. BigInts are 128bits, but the TOML spec limits its integers
|
||||
to 64bits. We now limit our integers to 64bits
|
||||
as well.
|
||||
* Fix a bug in stringify where control characters were being emitted as unicode chars and not escape sequences.
|
||||
|
||||
## Misc
|
||||
|
||||
* Moved our spec tests out to an external repo
|
||||
* Improved the styling of the spec compliance comparison
|
||||
|
||||
# 2.1.1
|
||||
|
||||
## Fixes
|
||||
|
||||
* Oops, type defs didn't end up in the tarball, ty [@jorgegonzalez](https://github.com/jorgegonzalez)‼
|
||||
|
||||
# 2.1.0
|
||||
|
||||
## Features
|
||||
|
||||
* Types for typescript support, thank you [@momocow](https://github.com/momocow)!
|
||||
|
||||
## Fixes
|
||||
|
||||
* stringify: always strip invalid dates. This fixes a bug where an
|
||||
invalid date in an inline array would not be removed and would instead
|
||||
result in an error.
|
||||
* stringify: if an invalid type is found make sure it's thrown as an
|
||||
error object. Previously the type name was, unhelpfully, being thrown.
|
||||
* stringify: Multiline strings ending in a quote would generate invalid TOML.
|
||||
* parse: Error if a signed integer has a leading zero, eg, `-01` or `+01`.
|
||||
* parse: Error if \_ appears at the end of the integer part of a float, eg `1_.0`. \_ is only valid between _digits_.
|
||||
|
||||
## Fun
|
||||
|
||||
* BurntSushi's comprehensive TOML 0.4.0 test suite is now used in addition to our existing test suite.
|
||||
* You can see exactly how the other JS TOML libraries stack up in testing
|
||||
against both BurntSushi's tests and my own in the new
|
||||
[TOML-SPEC-SUPPORT](TOML-SPEC-SUPPORT.md) doc.
|
||||
|
||||
# 2.0.0
|
||||
|
||||
With 2.0.0, @iarna/toml supports the TOML v0.5.0 specification. TOML 0.5.0
|
||||
brings some changes:
|
||||
|
||||
* Delete characters (U+007F) are not allowed in plain strings. You can include them with
|
||||
escaped unicode characters, eg `\u007f`.
|
||||
* Integers are specified as being 64bit unsigned values. These are
|
||||
supported using `BigInt`s if you are using Node 10 or later.
|
||||
* Keys may be literal strings, that is, you can use single quoted strings to
|
||||
quote key names, so the following is now valid:
|
||||
'a"b"c' = 123
|
||||
* The floating point values `nan`, `inf` and `-inf` are supported. The stringifier will no
|
||||
longer strip NaN, Infinity and -Infinity, instead serializing them as these new values..
|
||||
* Datetimes can separate the date and time with a space instead of a T, so
|
||||
`2017-12-01T00:00:00Z` can be written as `2017-12-01 00:00:00Z`.
|
||||
* Datetimes can be floating, that is, they can be represented without a timezone.
|
||||
These are represented in javascript as Date objects whose `isFloating` property is true and
|
||||
whose `toISOString` method will return a representation without a timezone.
|
||||
* Dates without times are now supported. Dates do not have timezones. Dates
|
||||
are represented in javascript as a Date object whose `isDate` property is true and
|
||||
whose `toISOString` method returns just the date.
|
||||
* Times without dates are now supported. Times do not have timezones. Times
|
||||
are represented in javascript as a Date object whose `isTime` property is true and
|
||||
whose `toISOString` method returns just the time.
|
||||
* Keys can now include dots to directly address deeper structures, so `a.b = 23` is
|
||||
the equivalent of `a = {b = 23}` or ```[a]
|
||||
b = 23```. These can be used both as keys to regular tables and inline tables.
|
||||
* Integers can now be specified in binary, octal and hexadecimal by prefixing the
|
||||
number with `0b`, `0o` and `0x` respectively. It is now illegal to left
|
||||
pad a decimal value with zeros.
|
||||
|
||||
Some parser details were also fixed:
|
||||
|
||||
* Negative zero (`-0.0`) and positive zero (`0.0`) are distinct floating point values.
|
||||
* Negative integer zero (`-0`) is not distinguished from positive zero (`0`).
|
||||
|
||||
# 1.7.1
|
||||
|
||||
Another 18% speed boost on our overall benchmarks! This time it came from
|
||||
switching from string comparisons to integer by converting each character to
|
||||
its respective code point. This also necessitated rewriting the boolean
|
||||
parser to actually parse character-by-character as it should. End-of-stream
|
||||
is now marked with a numeric value outside of the Unicode range, rather than
|
||||
a Symbol, meaning that the parser's char property is now monomorphic.
|
||||
|
||||
Bug fix, previously, `'abc''def'''` was accepted (as the value: `abcdef`).
|
||||
Now it will correctly raise an error.
|
||||
|
||||
Spec tests now run against bombadil as well (it fails some, which is unsurprising
|
||||
given its incomplete state).
|
||||
|
||||
# 1.7.0
|
||||
|
||||
This release features an overall 15% speed boost on our benchmarks. This
|
||||
came from a few things:
|
||||
|
||||
* Date parsing was rewritten to not use regexps, resulting in a huge speed increase.
|
||||
* Strings of all kinds and bare keywords now use tight loops to collect characters when this will help.
|
||||
* Regexps in general were mostly removed. This didn't result in a speed
|
||||
change, but it did allow refactoring the parser to be a lot easier to
|
||||
follow.
|
||||
* The internal state tracking now uses a class and is constructed with a
|
||||
fixed set of properties, allowing v8's optimizer to be more effective.
|
||||
|
||||
In the land of new features:
|
||||
|
||||
* Errors in the syntax of your TOML will now have the `fromTOML` property
|
||||
set to true. This is in addition to the `line`, `col` and `pos`
|
||||
properties they already have.
|
||||
|
||||
The main use of this is to make it possible to distinguish between errors
|
||||
in the TOML and errors in the parser code itself. This is of particular utility
|
||||
when testing parse errors.
|
||||
|
||||
# 1.6.0
|
||||
|
||||
**FIXES**
|
||||
|
||||
* TOML.stringify: Allow toJSON properties that aren't functions, to align with JSON.stringify's behavior.
|
||||
* TOML.stringify: Don't use ever render keys as literal strings.
|
||||
* TOML.stringify: Don't try to escape control characters in literal strings.
|
||||
|
||||
**FEATURES**
|
||||
|
||||
* New Export: TOML.stringify.value, for encoding a stand alone inline value as TOML would. This produces
|
||||
a TOML fragment, not a complete valid document.
|
||||
|
||||
# 1.5.6
|
||||
|
||||
* String literals are NOT supported as key names.
|
||||
* Accessing a shallower table after accessing it more deeply is ok and no longer crashes, eg:
|
||||
```toml
|
||||
[a.b]
|
||||
[a]
|
||||
```
|
||||
* Unicode characters in the reserved range now crash.
|
||||
* Empty bare keys, eg `[.abc]` or `[]` now crash.
|
||||
* Multiline backslash trimming supports CRs.
|
||||
* Multiline post quote trimming supports CRs.
|
||||
* Strings may not contain bare control chars (0x00-0x1f), except for \n, \r and \t.
|
||||
|
||||
# 1.5.5
|
||||
|
||||
* Yet MORE README fixes. 🙃
|
||||
|
||||
# 1.5.4
|
||||
|
||||
* README fix
|
||||
|
||||
# 1.5.3
|
||||
|
||||
* Benchmarks!
|
||||
* More tests!
|
||||
* More complete LICENSE information (some dev files are from other, MIT
|
||||
licensed, projects, this is now more explicitly documented.)
|
||||
|
||||
# 1.5.2
|
||||
|
||||
* parse: Arrays with mixed types now throw errors, per the spec.
|
||||
* parse: Fix a parser bug that would result in errors when trying to parse arrays of numbers or dates
|
||||
that were not separated by a space from the closing ].
|
||||
* parse: Fix a bug in the error pretty printer that resulted in errors on
|
||||
the first line not getting the pretty print treatment.
|
||||
* stringify: Fix long standing bug where an array of Numbers, some of which required
|
||||
decimals, would be emitted in a way that parsers would treat as mixed
|
||||
Integer and Float values. Now if any Numbers in an array must be
|
||||
represented with a decimal then all will be emitted such that parsers will
|
||||
understand them to be Float.
|
||||
|
||||
# 1.5.1
|
||||
|
||||
* README fix
|
||||
|
||||
# 1.5.0
|
||||
|
||||
* A brand new TOML parser, from scratch, that performs like `toml-j0.4`
|
||||
without the crashes and with vastly better error messages.
|
||||
* 100% test coverage for both the new parser and the existing stringifier. Some subtle bugs squashed!
|
||||
|
||||
# v1.4.2
|
||||
|
||||
* Revert fallback due to its having issues with the same files. (New plan
|
||||
will be to write my own.)
|
||||
|
||||
# v1.4.1
|
||||
|
||||
* Depend on both `toml` and `toml-j0.4` with fallback from the latter to the
|
||||
former when the latter crashes.
|
||||
|
||||
# v1.4.0
|
||||
|
||||
* Ducktype dates to make them compatible with `moment` and other `Date` replacements.
|
||||
|
||||
# v1.3.1
|
||||
|
||||
* Update docs with new toml module.
|
||||
|
||||
# v1.3.0
|
||||
|
||||
* Switch from `toml` to `toml-j0.4`, which is between 20x and 200x faster.
|
||||
(The larger the input, the faster it is compared to `toml`).
|
||||
|
||||
# v1.2.0
|
||||
|
||||
* Return null when passed in null as the top level object.
|
||||
* Detect and skip invalid dates and numbers
|
||||
|
||||
# v1.1.0
|
||||
|
||||
* toJSON transformations are now honored (for everything except Date objects, as JSON represents them as strings).
|
||||
* Undefined/null values no longer result in exceptions, they now just result in the associated key being elided.
|
||||
|
||||
# v1.0.1
|
||||
|
||||
* Initial release
|
||||
@@ -0,0 +1,12 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AsapScheduler } from './AsapScheduler';
|
||||
import { SchedulerAction } from '../types';
|
||||
import { TimerHandle } from './timerHandle';
|
||||
export declare class AsapAction<T> extends AsyncAction<T> {
|
||||
protected scheduler: AsapScheduler;
|
||||
protected work: (this: SchedulerAction<T>, state?: T) => void;
|
||||
constructor(scheduler: AsapScheduler, work: (this: SchedulerAction<T>, state?: T) => void);
|
||||
protected requestAsyncId(scheduler: AsapScheduler, id?: TimerHandle, delay?: number): TimerHandle;
|
||||
protected recycleAsyncId(scheduler: AsapScheduler, id?: TimerHandle, delay?: number): TimerHandle | undefined;
|
||||
}
|
||||
//# sourceMappingURL=AsapAction.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports=require("./v2");
|
||||
@@ -0,0 +1,10 @@
|
||||
import { __read, __spreadArray } from "tslib";
|
||||
import { combineLatest } from './combineLatest';
|
||||
export function combineLatestWith() {
|
||||
var otherSources = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
otherSources[_i] = arguments[_i];
|
||||
}
|
||||
return combineLatest.apply(void 0, __spreadArray([], __read(otherSources)));
|
||||
}
|
||||
//# sourceMappingURL=combineLatestWith.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dematerialize.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/dematerialize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI3F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,sBAAsB,CAAC,GAAG,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAIpH"}
|
||||
@@ -0,0 +1,26 @@
|
||||
import assertString from './util/assertString';
|
||||
import { alpha } from './alpha';
|
||||
export default function isAlpha(_str) {
|
||||
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';
|
||||
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||
assertString(_str);
|
||||
var str = _str;
|
||||
var ignore = options.ignore;
|
||||
|
||||
if (ignore) {
|
||||
if (ignore instanceof RegExp) {
|
||||
str = str.replace(ignore, '');
|
||||
} else if (typeof ignore === 'string') {
|
||||
str = str.replace(new RegExp("[".concat(ignore.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g, '\\$&'), "]"), 'g'), ''); // escape regex for ignore
|
||||
} else {
|
||||
throw new Error('ignore should be instance of a String or RegExp');
|
||||
}
|
||||
}
|
||||
|
||||
if (locale in alpha) {
|
||||
return alpha[locale].test(str);
|
||||
}
|
||||
|
||||
throw new Error("Invalid locale '".concat(locale, "'"));
|
||||
}
|
||||
export var locales = Object.keys(alpha);
|
||||
@@ -0,0 +1,17 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||
|
||||
## v1.0.0 - 2023-01-12
|
||||
|
||||
### Commits
|
||||
|
||||
- Initial implementation, tests, readme [`43e8109`](https://github.com/ljharb/stop-iteration-iterator/commit/43e81099d2f2b63ff3a8a253ad13dd8279c9e2dc)
|
||||
- Initial commit [`23929ce`](https://github.com/ljharb/stop-iteration-iterator/commit/23929ce525165bfe54f053284fd066dce8598486)
|
||||
- npm init [`a9847ab`](https://github.com/ljharb/stop-iteration-iterator/commit/a9847ab637a7c223fb7478d47caf04e89ba283ff)
|
||||
- Only apps should have lockfiles [`4e41f3f`](https://github.com/ljharb/stop-iteration-iterator/commit/4e41f3fbbaf8a1d32b12514d7296961e5df73e4b)
|
||||
@@ -0,0 +1,35 @@
|
||||
import type {Except} from './except';
|
||||
import type {Simplify} from './simplify';
|
||||
|
||||
/**
|
||||
Create a type that makes the given keys required. The remaining keys are kept as is. The sister of the `SetOptional` type.
|
||||
|
||||
Use-case: You want to define a single model where the only thing that changes is whether or not some of the keys are required.
|
||||
|
||||
@example
|
||||
```
|
||||
import type {SetRequired} from 'type-fest';
|
||||
|
||||
type Foo = {
|
||||
a?: number;
|
||||
b: string;
|
||||
c?: boolean;
|
||||
}
|
||||
|
||||
type SomeRequired = SetRequired<Foo, 'b' | 'c'>;
|
||||
// type SomeRequired = {
|
||||
// a?: number;
|
||||
// b: string; // Was already required and still is.
|
||||
// c: boolean; // Is now required.
|
||||
// }
|
||||
```
|
||||
|
||||
@category Object
|
||||
*/
|
||||
export type SetRequired<BaseType, Keys extends keyof BaseType> =
|
||||
Simplify<
|
||||
// Pick just the keys that are optional from the base type.
|
||||
Except<BaseType, Keys> &
|
||||
// Pick the keys that should be required from the base type and make them required.
|
||||
Required<Pick<BaseType, Keys>>
|
||||
>;
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"@pnpm/config.env-replace","version":"1.0.0","files":{"dist/env-replace.spec.d.ts":{"checkedAt":1678883669320,"integrity":"sha512-TuHIj4w/TkzTTLbAAzm/nW0Db/St469J6HHMiWa4THKdi3VJKsxkE8mmZKwApXlYIjrBPEIp2oxi6+alPk94Pw==","mode":420,"size":11},"dist/env-replace.js":{"checkedAt":1678883672657,"integrity":"sha512-WeVtytyRX3IIpqjG20DGIj9TLd2HfFBzlvN+lOHZIa5jMjRuaIZbOq3JjR7lRlqRFJWUACSVSZlH8IQLUiiMNg==","mode":420,"size":690},"dist/env-replace.spec.js":{"checkedAt":1678883672657,"integrity":"sha512-m5kSQhQZPnUOZEwXtvhkVsODzV5Ft0fzF3loQiShrfqICFsbE8eeHEbQyzxYYK0JUooGJC78XfHvhu99LL1nEw==","mode":420,"size":721},"dist/index.js":{"checkedAt":1678883672657,"integrity":"sha512-vrqaEOQB6xwergsqoCEqGMtIvMHeFCg4JBQ044zFGfHfhI5sAgAtFgN3nTArtsL0/nyWtP8nABX+HsAmCtuKxw==","mode":420,"size":308},"package.json":{"checkedAt":1678883672657,"integrity":"sha512-nnvQfcpWqoo1YRhW0ng6dE6ksHIhL2mX+CyXT9EXQw5P21yxMdsMqf+u3Yso7bmh8TAT0dkw9b7fe9MLhvNiIg==","mode":420,"size":623},"dist/tsconfig.json":{"checkedAt":1678883672657,"integrity":"sha512-jBiZ+HrKu1kG+OXAAXCRwpy0HpDztpXDa/Xuua5H93BNwM0ke3ZHVNEE4ahbQYEZ8xqloqPNAzFcPiPeygwlHA==","mode":420,"size":686},"preview-1668198121918.js":{"checkedAt":1678883672657,"integrity":"sha512-FE+2ShSRi7qmfMDsuPqrQHMuRh7BjSg7Gd7GkurL4AdP0VN+dunCZYRZdAIpQOsbxEjAUfGSM0+cJ/np8Wri6A==","mode":420,"size":299},"tsconfig.json":{"checkedAt":1678883672657,"integrity":"sha512-IWrE8RIkVFQkHv0JPHljPbH+a89GysfaXx0IV2mGr+89WN7U50g15m88jBifFX1rR6WsYWk/Wf15/NfaKoC5KA==","mode":420,"size":569},"dist/env-replace.js.map":{"checkedAt":1678883672657,"integrity":"sha512-V54UCgQoEX2VRDZ2Dls6635MV0b1k+eG6JDqX6De3FVElIq6w6MIaHVxMDgoraI1QDNiRUZK714kfURcHN/FBA==","mode":420,"size":726},"dist/env-replace.spec.js.map":{"checkedAt":1678883672657,"integrity":"sha512-kchH1aaWSnhTi0CbKXg3g1FdjvaiL15gXGOOLG9DXELsFhp+7c7P8t2hH5b4qD9TjJAsXQi2fDUophf6TvJoOw==","mode":420,"size":717},"dist/index.js.map":{"checkedAt":1678883672657,"integrity":"sha512-pZ/aywPy4T3GN4HsvTKF8CyhLTpRVCyZgA3LxtdgSAEB0Lv+EleuGFnvWvZudY8w7WqFy6Ena3fGn4UnHIsC5A==","mode":420,"size":134},"dist/env-replace.docs.mdx":{"checkedAt":1678883672657,"integrity":"sha512-kXAIvttE+cse4ut2WbguRQL/EcaF2O+NHswN/Sv2jtwGxuXmZmDZ/tFcfsJeVyke2JrsT/zFKuv6RX+UIwnaCg==","mode":420,"size":313},"env-replace.docs.mdx":{"checkedAt":1678883672657,"integrity":"sha512-kXAIvttE+cse4ut2WbguRQL/EcaF2O+NHswN/Sv2jtwGxuXmZmDZ/tFcfsJeVyke2JrsT/zFKuv6RX+UIwnaCg==","mode":420,"size":313},"types/asset.d.ts":{"checkedAt":1678883672658,"integrity":"sha512-h4xmQDaVPP+3pc/ZqSO0mYXFEhoXMaX04ywl2jvLsjbpbSjW8uxpRd4ZG01Db4xCpd7RSynv8pJgjdjToMWBdw==","mode":420,"size":569},"dist/env-replace.d.ts":{"checkedAt":1678883672658,"integrity":"sha512-eplslYUvXhAgXMqkJWyELgN406xKla+3H7Gl7bUFIjK9lIKuCsHGNd+Uyi6hrVhBUNPI/24BMAS/n5HzcHYzGA==","mode":420,"size":121},"package-tar/pnpm-config.env-replace-1.0.0.tgz":{"checkedAt":1678883672658,"integrity":"sha512-TIImRfJS1Gq83hjxGyWk2TiQXKUGVWnp4neRb5GTF9vZyjJVDQDicQBDyoRUVOivKcsgnTCkeDnhznIY0PyM3A==","mode":420,"size":3055},"env-replace.spec.ts":{"checkedAt":1678883672658,"integrity":"sha512-i478Do33Gxp39g9diS5UtvobIX86Gw3UCeGV3w1y0E5npl6dL6Xs+5BecUAPb4P1ORWX1eZqVkROq3yAv5hJHQ==","mode":420,"size":541},"env-replace.ts":{"checkedAt":1678883672658,"integrity":"sha512-O7mBZzFVLDRJtpni8yYfCLobwRqxT9mq0kVKWAkTJJJxhhLwCBh/JN5ldIhOqnqrcHKebDUzbVsyAKUhVOmqaQ==","mode":420,"size":580},"dist/index.d.ts":{"checkedAt":1678883672658,"integrity":"sha512-zEog2LMjqaDfn/oVsleXo1UhHKTceJM9LdwEUvDqnOyjB17qTWAKA5Gh61crLtV40dtKTgvAOC8fsF+dRpqxKw==","mode":420,"size":44},"index.ts":{"checkedAt":1678883672658,"integrity":"sha512-zEog2LMjqaDfn/oVsleXo1UhHKTceJM9LdwEUvDqnOyjB17qTWAKA5Gh61crLtV40dtKTgvAOC8fsF+dRpqxKw==","mode":420,"size":44},"types/style.d.ts":{"checkedAt":1678883672658,"integrity":"sha512-2Gk3OutwockHf21mXKgmnwbiL83Xjq1CGID81rk47CPbmWUNYcGE+s6Gq4MOKm7fbum44rd810+sFEafbwTobg==","mode":420,"size":967}}}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"name": "cacheable-request",
|
||||
"version": "10.2.8",
|
||||
"description": "Wrap native HTTP requests with RFC compliant cache support",
|
||||
"license": "MIT",
|
||||
"repository": "jaredwray/cacheable-request",
|
||||
"author": "Jared Wray <me@jaredwray.com> (http://jaredwray.com)",
|
||||
"type": "module",
|
||||
"exports": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": ">=14.16"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && NODE_OPTIONS=--experimental-vm-modules jest --coverage ",
|
||||
"prepare": "npm run build",
|
||||
"build": "tsc --project tsconfig.build.json",
|
||||
"clean": "rm -rf node_modules && rm -rf ./coverage && rm -rf ./package-lock.json && rm -rf ./test/testdb.sqlite && rm -rf ./dist"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"keywords": [
|
||||
"HTTP",
|
||||
"HTTPS",
|
||||
"cache",
|
||||
"caching",
|
||||
"layer",
|
||||
"cacheable",
|
||||
"RFC 7234",
|
||||
"RFC",
|
||||
"7234",
|
||||
"compliant"
|
||||
],
|
||||
"dependenciesComments": {
|
||||
"@types/http-cache-semantics": "It needs to be in the dependencies list and not devDependencies because otherwise projects that use this one will be getting `Could not find a declaration file for module 'http-cache-semantics'` error when running `tsc`, see https://github.com/jaredwray/cacheable-request/issues/194 for details"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/http-cache-semantics": "^4.0.1",
|
||||
"get-stream": "^6.0.1",
|
||||
"http-cache-semantics": "^4.1.1",
|
||||
"keyv": "^4.5.2",
|
||||
"mimic-response": "^4.0.0",
|
||||
"normalize-url": "^8.0.0",
|
||||
"responselike": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@keyv/sqlite": "^3.6.4",
|
||||
"@types/delay": "^3.1.0",
|
||||
"@types/get-stream": "^3.0.2",
|
||||
"@types/jest": "^29.4.0",
|
||||
"@types/node": "^18.14.1",
|
||||
"@types/responselike": "^1.0.0",
|
||||
"@types/sqlite3": "^3.1.8",
|
||||
"body-parser": "^1.20.2",
|
||||
"delay": "^5.0.0",
|
||||
"eslint-plugin-jest": "^27.2.1",
|
||||
"express": "^4.18.2",
|
||||
"jest": "^29.4.3",
|
||||
"pify": "^6.1.0",
|
||||
"sqlite3": "^5.1.4",
|
||||
"ts-jest": "^29.0.5",
|
||||
"ts-jest-resolver": "^2.0.0",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.9.5",
|
||||
"xo": "^0.53.1"
|
||||
},
|
||||
"jest": {
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.{ts,js}"
|
||||
],
|
||||
"extensionsToTreatAsEsm": [
|
||||
".ts"
|
||||
],
|
||||
"resolver": "ts-jest-resolver",
|
||||
"moduleFileExtensions": [
|
||||
"ts",
|
||||
"js"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.(ts|tsx)$": [
|
||||
"ts-jest",
|
||||
{
|
||||
"tsconfig": "./tsconfig.build.json",
|
||||
"useESM": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"testMatch": [
|
||||
"**/test/*.test.(ts|js)"
|
||||
],
|
||||
"testEnvironment": "node"
|
||||
},
|
||||
"xo": {
|
||||
"plugins": [
|
||||
"jest"
|
||||
],
|
||||
"extends": [
|
||||
"plugin:jest/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/triple-slash-reference": 0,
|
||||
"@typescript-eslint/no-namespace": 0,
|
||||
"@typescript-eslint/no-unsafe-assignment": 0,
|
||||
"@typescript-eslint/no-unsafe-call": 0,
|
||||
"@typescript-eslint/ban-types": 0,
|
||||
"@typescript-eslint/restrict-template-expressions": 0,
|
||||
"@typescript-eslint/no-unsafe-return": 0,
|
||||
"new-cap": 0,
|
||||
"unicorn/no-abusive-eslint-disable": 0,
|
||||
"@typescript-eslint/restrict-plus-operands": 0,
|
||||
"@typescript-eslint/no-implicit-any-catch": 0,
|
||||
"@typescript-eslint/consistent-type-imports": 0,
|
||||
"@typescript-eslint/consistent-type-definitions": 0,
|
||||
"n/prefer-global/url": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
"use strict"
|
||||
|
||||
const readCache = require("read-cache")
|
||||
|
||||
module.exports = filename => readCache(filename, "utf-8")
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
// when this is loaded into the browser,
|
||||
// just use the defaults...
|
||||
|
||||
module.exports = function (name, defaults) {
|
||||
return defaults
|
||||
}
|
||||
@@ -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.00496,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.03469,"74":0,"75":0,"76":0,"77":0,"78":0.02478,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0.01982,"103":0.00496,"104":0.00496,"105":0.00991,"106":0.01487,"107":0.00991,"108":0.01982,"109":0.31223,"110":0.22798,"111":0.00496,"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.00496,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0.00496,"48":0,"49":0.00496,"50":0,"51":0,"52":0,"53":0.00496,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0.00496,"66":0,"67":0,"68":0.00496,"69":0.00496,"70":0.00496,"71":0,"72":0,"73":0.00496,"74":0.00496,"75":0.00496,"76":0.01982,"77":0.00496,"78":0.00496,"79":0.18833,"80":0.00496,"81":0.00496,"83":0.00496,"84":0.00991,"85":0.00991,"86":0.00991,"87":0.01982,"88":0.01982,"89":0.00496,"90":0.00496,"91":0.0446,"92":0.03469,"93":0.0446,"94":0.00496,"95":0.00496,"96":0.00991,"97":0.02974,"98":0.00991,"99":0.00991,"100":0.00991,"101":0.00991,"102":0.02478,"103":0.09416,"104":0.01982,"105":0.01982,"106":0.03965,"107":0.06938,"108":7.94942,"109":5.88773,"110":3.99454,"111":0.00496,"112":0,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0.02974,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.01487,"93":0.07434,"94":0.52038,"95":0.22798,"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},B:{"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.00496,"79":0,"80":0,"81":0,"83":0,"84":0.00496,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00991,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0.00496,"101":0,"102":0,"103":0.00496,"104":0.00496,"105":0.00496,"106":0.00496,"107":0.02478,"108":0.02478,"109":0.70375,"110":0.96146},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.00496,"15":0.00991,_:"0","3.1":0,"3.2":0,"5.1":0.01487,"6.1":0,"7.1":0,"9.1":0.00496,"10.1":0,"11.1":0,"12.1":0,"13.1":0.01982,"14.1":0.03469,"15.1":0.01982,"15.2-15.3":0.00496,"15.4":0.02478,"15.5":0.02478,"15.6":0.12886,"16.0":0.02478,"16.1":0.07434,"16.2":0.21311,"16.3":0.11399,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00171,"6.0-6.1":0.03588,"7.0-7.1":0.0188,"8.1-8.4":0.00171,"9.0-9.2":0,"9.3":0.07689,"10.0-10.2":0,"10.3":0.13158,"11.0-11.2":0.01367,"11.3-11.4":0.00684,"12.0-12.1":0.0188,"12.2-12.5":0.44428,"13.0-13.1":0.03588,"13.2":0.00513,"13.3":0.07519,"13.4-13.7":0.05639,"14.0-14.4":0.20505,"14.5-14.8":0.37422,"15.0-15.1":0.08373,"15.2-15.3":0.176,"15.4":0.19138,"15.5":0.40498,"15.6":1.13121,"16.0":1.98388,"16.1":3.22103,"16.2":4.15402,"16.3":2.55803,"16.4":0.01025},P:{"4":0.27809,"20":0.75187,"5.0-5.4":0.0206,"6.2-6.4":0,"7.2-7.4":0.14419,"8.2":0,"9.2":0.0103,"10.1":0,"11.1-11.2":0.0721,"12.0":0.0103,"13.0":0.0412,"14.0":0.0309,"15.0":0.0412,"16.0":0.0618,"17.0":0.0721,"18.0":0.0927,"19.0":1.31835},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.02664,"4.4":0,"4.4.3-4.4.4":0.26638},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.01982,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0.14628},H:{"0":0.23399},L:{"0":56.10154},R:{_:"0"},M:{"0":0.15132},Q:{"13.1":0}};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"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 r s t u f H","2":"C K L G"},C:{"1":"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","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 EC FC"},D:{"1":"VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","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"},E:{"1":"A B C K L G 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E F HC zB IC JC KC LC"},F:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","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 PC QC RC SC qB AC TC rB"},G:{"1":"bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","2":"E zB UC BC VC WC XC YC ZC aC"},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:{"1":"vC"},P:{"1":"g xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I wC"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","2":"AD"}},B:1,C:"\"once\" event listener option"};
|
||||
@@ -0,0 +1,124 @@
|
||||
// Type definitions for relateurl v0.2.6
|
||||
// Project: https://github.com/stevenvachon/relateurl
|
||||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
declare namespace RelateUrl {
|
||||
interface Options {
|
||||
/**
|
||||
* Type: Object
|
||||
* Default value: {ftp:21, http:80, https:443}
|
||||
*
|
||||
* Extend the list with any ports you need. Any URLs containing these default ports will have them removed. Example: http://example.com:80/ will become http://example.com/.
|
||||
*/
|
||||
defaultPorts?: Object | undefined;
|
||||
|
||||
/**
|
||||
* Type: Array
|
||||
* Default value: ["index.html"]
|
||||
*
|
||||
* Extend the list with any resources you need. Works with options.removeDirectoryIndexes.
|
||||
*/
|
||||
directoryIndexes?: Array<string> | undefined;
|
||||
|
||||
/**
|
||||
* Type: Boolean
|
||||
* Default value: false
|
||||
*
|
||||
* This will, for example, consider any domains containing http://www.example.com/ to be related to any that contain http://example.com/.
|
||||
*/
|
||||
ignore_www?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Type: constant or String
|
||||
* Choices: RelateUrl.ABSOLUTE,RelateUrl.PATH_RELATIVE,RelateUrl.ROOT_RELATIVE,RelateUrl.SHORTEST
|
||||
* Choices: "absolute","pathRelative","rootRelative","shortest"
|
||||
* Default value: RelateUrl.SHORTEST
|
||||
*
|
||||
* RelateUrl.ABSOLUTE will produce an absolute URL. Overrides options.schemeRelative with a value of false.
|
||||
* RelateUrl.PATH_RELATIVE will produce something like ../child-of-parent/etc/.
|
||||
* RelateUrl.ROOT_RELATIVE will produce something like /child-of-root/etc/.
|
||||
* RelateUrl.SHORTEST will choose whichever is shortest between root- and path-relative.
|
||||
*/
|
||||
output?: string | undefined;
|
||||
|
||||
/**
|
||||
* Type: Array
|
||||
* Default value: ["data","javascript","mailto"]
|
||||
*
|
||||
* Extend the list with any additional schemes. Example: javascript:something will not be modified.
|
||||
*/
|
||||
rejectedSchemes?: Array<string> | undefined;
|
||||
|
||||
/**
|
||||
* Type: Boolean
|
||||
* Default value: false
|
||||
*
|
||||
* Remove user authentication information from the output URL.
|
||||
*/
|
||||
removeAuth?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Type: Boolean
|
||||
* Default value: true
|
||||
*
|
||||
* Remove any resources that match any found in options.directoryIndexes.
|
||||
*/
|
||||
removeDirectoryIndexes?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Type: Boolean
|
||||
* Default value: false
|
||||
*
|
||||
* Remove empty query variables. Example: http://domain.com/?var1&var2=&var3=asdf will become http://domain.com/?var3=adsf. This does not apply to unrelated URLs (with other protocols, auths, hosts and/or ports).
|
||||
*/
|
||||
removeEmptyQueries?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Type: Boolean
|
||||
* Default value: true
|
||||
*
|
||||
* Remove trailing slashes from root paths. Example: http://domain.com/?var will become http://domain.com?var while http://domain.com/dir/?var will not be modified.
|
||||
*/
|
||||
removeRootTrailingSlash?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Type: Boolean
|
||||
* Default value: true
|
||||
*
|
||||
* Output URLs relative to the scheme. Example: http://example.com/ will become //example.com/.
|
||||
*/
|
||||
schemeRelative?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Type: String
|
||||
* Default value: undefined
|
||||
*
|
||||
* An options-based version of the from argument. If both are specified, from takes priority.
|
||||
*/
|
||||
site?: string | undefined;
|
||||
|
||||
/**
|
||||
* Type: Boolean
|
||||
* Default value: true
|
||||
*
|
||||
* Passed to Node's url.parse.
|
||||
*/
|
||||
slashesDenoteHost?: boolean | undefined;
|
||||
}
|
||||
}
|
||||
|
||||
declare class RelateUrl {
|
||||
static ABSOLUTE: string;
|
||||
static PATH_RELATIVE: string;
|
||||
static ROOT_RELATIVE: string;
|
||||
static SHORTEST: string;
|
||||
|
||||
static relate(from: string, to: string, options?: RelateUrl.Options): string;
|
||||
|
||||
constructor(from: string, options?: RelateUrl.Options);
|
||||
relate(to: string, options?: RelateUrl.Options): string;
|
||||
}
|
||||
|
||||
export = RelateUrl;
|
||||
@@ -0,0 +1,317 @@
|
||||
/**
|
||||
* Request.js
|
||||
*
|
||||
* Request class contains server only options
|
||||
*
|
||||
* All spec algorithm step numbers are based on https://fetch.spec.whatwg.org/commit-snapshots/ae716822cb3a61843226cd090eefc6589446c1d2/.
|
||||
*/
|
||||
|
||||
import {format as formatUrl} from 'node:url';
|
||||
import {deprecate} from 'node:util';
|
||||
import Headers from './headers.js';
|
||||
import Body, {clone, extractContentType, getTotalBytes} from './body.js';
|
||||
import {isAbortSignal} from './utils/is.js';
|
||||
import {getSearch} from './utils/get-search.js';
|
||||
import {
|
||||
validateReferrerPolicy, determineRequestsReferrer, DEFAULT_REFERRER_POLICY
|
||||
} from './utils/referrer.js';
|
||||
|
||||
const INTERNALS = Symbol('Request internals');
|
||||
|
||||
/**
|
||||
* Check if `obj` is an instance of Request.
|
||||
*
|
||||
* @param {*} object
|
||||
* @return {boolean}
|
||||
*/
|
||||
const isRequest = object => {
|
||||
return (
|
||||
typeof object === 'object' &&
|
||||
typeof object[INTERNALS] === 'object'
|
||||
);
|
||||
};
|
||||
|
||||
const doBadDataWarn = deprecate(() => {},
|
||||
'.data is not a valid RequestInit property, use .body instead',
|
||||
'https://github.com/node-fetch/node-fetch/issues/1000 (request)');
|
||||
|
||||
/**
|
||||
* Request class
|
||||
*
|
||||
* Ref: https://fetch.spec.whatwg.org/#request-class
|
||||
*
|
||||
* @param Mixed input Url or Request instance
|
||||
* @param Object init Custom options
|
||||
* @return Void
|
||||
*/
|
||||
export default class Request extends Body {
|
||||
constructor(input, init = {}) {
|
||||
let parsedURL;
|
||||
|
||||
// Normalize input and force URL to be encoded as UTF-8 (https://github.com/node-fetch/node-fetch/issues/245)
|
||||
if (isRequest(input)) {
|
||||
parsedURL = new URL(input.url);
|
||||
} else {
|
||||
parsedURL = new URL(input);
|
||||
input = {};
|
||||
}
|
||||
|
||||
if (parsedURL.username !== '' || parsedURL.password !== '') {
|
||||
throw new TypeError(`${parsedURL} is an url with embedded credentials.`);
|
||||
}
|
||||
|
||||
let method = init.method || input.method || 'GET';
|
||||
if (/^(delete|get|head|options|post|put)$/i.test(method)) {
|
||||
method = method.toUpperCase();
|
||||
}
|
||||
|
||||
if (!isRequest(init) && 'data' in init) {
|
||||
doBadDataWarn();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-eq-null, eqeqeq
|
||||
if ((init.body != null || (isRequest(input) && input.body !== null)) &&
|
||||
(method === 'GET' || method === 'HEAD')) {
|
||||
throw new TypeError('Request with GET/HEAD method cannot have body');
|
||||
}
|
||||
|
||||
const inputBody = init.body ?
|
||||
init.body :
|
||||
(isRequest(input) && input.body !== null ?
|
||||
clone(input) :
|
||||
null);
|
||||
|
||||
super(inputBody, {
|
||||
size: init.size || input.size || 0
|
||||
});
|
||||
|
||||
const headers = new Headers(init.headers || input.headers || {});
|
||||
|
||||
if (inputBody !== null && !headers.has('Content-Type')) {
|
||||
const contentType = extractContentType(inputBody, this);
|
||||
if (contentType) {
|
||||
headers.set('Content-Type', contentType);
|
||||
}
|
||||
}
|
||||
|
||||
let signal = isRequest(input) ?
|
||||
input.signal :
|
||||
null;
|
||||
if ('signal' in init) {
|
||||
signal = init.signal;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-eq-null, eqeqeq
|
||||
if (signal != null && !isAbortSignal(signal)) {
|
||||
throw new TypeError('Expected signal to be an instanceof AbortSignal or EventTarget');
|
||||
}
|
||||
|
||||
// §5.4, Request constructor steps, step 15.1
|
||||
// eslint-disable-next-line no-eq-null, eqeqeq
|
||||
let referrer = init.referrer == null ? input.referrer : init.referrer;
|
||||
if (referrer === '') {
|
||||
// §5.4, Request constructor steps, step 15.2
|
||||
referrer = 'no-referrer';
|
||||
} else if (referrer) {
|
||||
// §5.4, Request constructor steps, step 15.3.1, 15.3.2
|
||||
const parsedReferrer = new URL(referrer);
|
||||
// §5.4, Request constructor steps, step 15.3.3, 15.3.4
|
||||
referrer = /^about:(\/\/)?client$/.test(parsedReferrer) ? 'client' : parsedReferrer;
|
||||
} else {
|
||||
referrer = undefined;
|
||||
}
|
||||
|
||||
this[INTERNALS] = {
|
||||
method,
|
||||
redirect: init.redirect || input.redirect || 'follow',
|
||||
headers,
|
||||
parsedURL,
|
||||
signal,
|
||||
referrer
|
||||
};
|
||||
|
||||
// Node-fetch-only options
|
||||
this.follow = init.follow === undefined ? (input.follow === undefined ? 20 : input.follow) : init.follow;
|
||||
this.compress = init.compress === undefined ? (input.compress === undefined ? true : input.compress) : init.compress;
|
||||
this.counter = init.counter || input.counter || 0;
|
||||
this.agent = init.agent || input.agent;
|
||||
this.highWaterMark = init.highWaterMark || input.highWaterMark || 16384;
|
||||
this.insecureHTTPParser = init.insecureHTTPParser || input.insecureHTTPParser || false;
|
||||
|
||||
// §5.4, Request constructor steps, step 16.
|
||||
// Default is empty string per https://fetch.spec.whatwg.org/#concept-request-referrer-policy
|
||||
this.referrerPolicy = init.referrerPolicy || input.referrerPolicy || '';
|
||||
}
|
||||
|
||||
/** @returns {string} */
|
||||
get method() {
|
||||
return this[INTERNALS].method;
|
||||
}
|
||||
|
||||
/** @returns {string} */
|
||||
get url() {
|
||||
return formatUrl(this[INTERNALS].parsedURL);
|
||||
}
|
||||
|
||||
/** @returns {Headers} */
|
||||
get headers() {
|
||||
return this[INTERNALS].headers;
|
||||
}
|
||||
|
||||
get redirect() {
|
||||
return this[INTERNALS].redirect;
|
||||
}
|
||||
|
||||
/** @returns {AbortSignal} */
|
||||
get signal() {
|
||||
return this[INTERNALS].signal;
|
||||
}
|
||||
|
||||
// https://fetch.spec.whatwg.org/#dom-request-referrer
|
||||
get referrer() {
|
||||
if (this[INTERNALS].referrer === 'no-referrer') {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (this[INTERNALS].referrer === 'client') {
|
||||
return 'about:client';
|
||||
}
|
||||
|
||||
if (this[INTERNALS].referrer) {
|
||||
return this[INTERNALS].referrer.toString();
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get referrerPolicy() {
|
||||
return this[INTERNALS].referrerPolicy;
|
||||
}
|
||||
|
||||
set referrerPolicy(referrerPolicy) {
|
||||
this[INTERNALS].referrerPolicy = validateReferrerPolicy(referrerPolicy);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clone this request
|
||||
*
|
||||
* @return Request
|
||||
*/
|
||||
clone() {
|
||||
return new Request(this);
|
||||
}
|
||||
|
||||
get [Symbol.toStringTag]() {
|
||||
return 'Request';
|
||||
}
|
||||
}
|
||||
|
||||
Object.defineProperties(Request.prototype, {
|
||||
method: {enumerable: true},
|
||||
url: {enumerable: true},
|
||||
headers: {enumerable: true},
|
||||
redirect: {enumerable: true},
|
||||
clone: {enumerable: true},
|
||||
signal: {enumerable: true},
|
||||
referrer: {enumerable: true},
|
||||
referrerPolicy: {enumerable: true}
|
||||
});
|
||||
|
||||
/**
|
||||
* Convert a Request to Node.js http request options.
|
||||
*
|
||||
* @param {Request} request - A Request instance
|
||||
* @return The options object to be passed to http.request
|
||||
*/
|
||||
export const getNodeRequestOptions = request => {
|
||||
const {parsedURL} = request[INTERNALS];
|
||||
const headers = new Headers(request[INTERNALS].headers);
|
||||
|
||||
// Fetch step 1.3
|
||||
if (!headers.has('Accept')) {
|
||||
headers.set('Accept', '*/*');
|
||||
}
|
||||
|
||||
// HTTP-network-or-cache fetch steps 2.4-2.7
|
||||
let contentLengthValue = null;
|
||||
if (request.body === null && /^(post|put)$/i.test(request.method)) {
|
||||
contentLengthValue = '0';
|
||||
}
|
||||
|
||||
if (request.body !== null) {
|
||||
const totalBytes = getTotalBytes(request);
|
||||
// Set Content-Length if totalBytes is a number (that is not NaN)
|
||||
if (typeof totalBytes === 'number' && !Number.isNaN(totalBytes)) {
|
||||
contentLengthValue = String(totalBytes);
|
||||
}
|
||||
}
|
||||
|
||||
if (contentLengthValue) {
|
||||
headers.set('Content-Length', contentLengthValue);
|
||||
}
|
||||
|
||||
// 4.1. Main fetch, step 2.6
|
||||
// > If request's referrer policy is the empty string, then set request's referrer policy to the
|
||||
// > default referrer policy.
|
||||
if (request.referrerPolicy === '') {
|
||||
request.referrerPolicy = DEFAULT_REFERRER_POLICY;
|
||||
}
|
||||
|
||||
// 4.1. Main fetch, step 2.7
|
||||
// > If request's referrer is not "no-referrer", set request's referrer to the result of invoking
|
||||
// > determine request's referrer.
|
||||
if (request.referrer && request.referrer !== 'no-referrer') {
|
||||
request[INTERNALS].referrer = determineRequestsReferrer(request);
|
||||
} else {
|
||||
request[INTERNALS].referrer = 'no-referrer';
|
||||
}
|
||||
|
||||
// 4.5. HTTP-network-or-cache fetch, step 6.9
|
||||
// > If httpRequest's referrer is a URL, then append `Referer`/httpRequest's referrer, serialized
|
||||
// > and isomorphic encoded, to httpRequest's header list.
|
||||
if (request[INTERNALS].referrer instanceof URL) {
|
||||
headers.set('Referer', request.referrer);
|
||||
}
|
||||
|
||||
// HTTP-network-or-cache fetch step 2.11
|
||||
if (!headers.has('User-Agent')) {
|
||||
headers.set('User-Agent', 'node-fetch');
|
||||
}
|
||||
|
||||
// HTTP-network-or-cache fetch step 2.15
|
||||
if (request.compress && !headers.has('Accept-Encoding')) {
|
||||
headers.set('Accept-Encoding', 'gzip, deflate, br');
|
||||
}
|
||||
|
||||
let {agent} = request;
|
||||
if (typeof agent === 'function') {
|
||||
agent = agent(parsedURL);
|
||||
}
|
||||
|
||||
if (!headers.has('Connection') && !agent) {
|
||||
headers.set('Connection', 'close');
|
||||
}
|
||||
|
||||
// HTTP-network fetch step 4.2
|
||||
// chunked encoding is handled by Node.js
|
||||
|
||||
const search = getSearch(parsedURL);
|
||||
|
||||
// Pass the full URL directly to request(), but overwrite the following
|
||||
// options:
|
||||
const options = {
|
||||
// Overwrite search to retain trailing ? (issue #776)
|
||||
path: parsedURL.pathname + search,
|
||||
// The following options are not expressed in the URL
|
||||
method: request.method,
|
||||
headers: headers[Symbol.for('nodejs.util.inspect.custom')](),
|
||||
insecureHTTPParser: request.insecureHTTPParser,
|
||||
agent
|
||||
};
|
||||
|
||||
return {
|
||||
/** @type {URL} */
|
||||
parsedURL,
|
||||
options
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
|
||||
var ensureString = require("type/string/ensure")
|
||||
, objHasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
|
||||
var capitalLetters = {
|
||||
A: true,
|
||||
B: true,
|
||||
C: true,
|
||||
D: true,
|
||||
E: true,
|
||||
F: true,
|
||||
G: true,
|
||||
H: true,
|
||||
I: true,
|
||||
J: true,
|
||||
K: true,
|
||||
L: true,
|
||||
M: true,
|
||||
N: true,
|
||||
O: true,
|
||||
P: true,
|
||||
Q: true,
|
||||
R: true,
|
||||
S: true,
|
||||
T: true,
|
||||
U: true,
|
||||
V: true,
|
||||
W: true,
|
||||
X: true,
|
||||
Y: true,
|
||||
Z: true
|
||||
};
|
||||
|
||||
module.exports = function () {
|
||||
var input = ensureString(this);
|
||||
if (!input) return input;
|
||||
var outputLetters = [];
|
||||
for (var index = 0, letter; (letter = input[index]); ++index) {
|
||||
if (objHasOwnProperty.call(capitalLetters, letter)) {
|
||||
if (index) outputLetters.push("-");
|
||||
outputLetters.push(letter.toLowerCase());
|
||||
} else {
|
||||
outputLetters.push(letter);
|
||||
}
|
||||
}
|
||||
|
||||
return outputLetters.join("");
|
||||
};
|
||||
@@ -0,0 +1,67 @@
|
||||
export declare type EasingFunction = (t: number) => number;
|
||||
export interface TransitionConfig {
|
||||
delay?: number;
|
||||
duration?: number;
|
||||
easing?: EasingFunction;
|
||||
css?: (t: number, u: number) => string;
|
||||
tick?: (t: number, u: number) => void;
|
||||
}
|
||||
export interface BlurParams {
|
||||
delay?: number;
|
||||
duration?: number;
|
||||
easing?: EasingFunction;
|
||||
amount?: number;
|
||||
opacity?: number;
|
||||
}
|
||||
export declare function blur(node: Element, { delay, duration, easing, amount, opacity }?: BlurParams): TransitionConfig;
|
||||
export interface FadeParams {
|
||||
delay?: number;
|
||||
duration?: number;
|
||||
easing?: EasingFunction;
|
||||
}
|
||||
export declare function fade(node: Element, { delay, duration, easing }?: FadeParams): TransitionConfig;
|
||||
export interface FlyParams {
|
||||
delay?: number;
|
||||
duration?: number;
|
||||
easing?: EasingFunction;
|
||||
x?: number;
|
||||
y?: number;
|
||||
opacity?: number;
|
||||
}
|
||||
export declare function fly(node: Element, { delay, duration, easing, x, y, opacity }?: FlyParams): TransitionConfig;
|
||||
export interface SlideParams {
|
||||
delay?: number;
|
||||
duration?: number;
|
||||
easing?: EasingFunction;
|
||||
axis?: 'x' | 'y';
|
||||
}
|
||||
export declare function slide(node: Element, { delay, duration, easing, axis }?: SlideParams): TransitionConfig;
|
||||
export interface ScaleParams {
|
||||
delay?: number;
|
||||
duration?: number;
|
||||
easing?: EasingFunction;
|
||||
start?: number;
|
||||
opacity?: number;
|
||||
}
|
||||
export declare function scale(node: Element, { delay, duration, easing, start, opacity }?: ScaleParams): TransitionConfig;
|
||||
export interface DrawParams {
|
||||
delay?: number;
|
||||
speed?: number;
|
||||
duration?: number | ((len: number) => number);
|
||||
easing?: EasingFunction;
|
||||
}
|
||||
export declare function draw(node: SVGElement & {
|
||||
getTotalLength(): number;
|
||||
}, { delay, speed, duration, easing }?: DrawParams): TransitionConfig;
|
||||
export interface CrossfadeParams {
|
||||
delay?: number;
|
||||
duration?: number | ((len: number) => number);
|
||||
easing?: EasingFunction;
|
||||
}
|
||||
export declare function crossfade({ fallback, ...defaults }: CrossfadeParams & {
|
||||
fallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;
|
||||
}): [(node: Element, params: CrossfadeParams & {
|
||||
key: any;
|
||||
}) => () => TransitionConfig, (node: Element, params: CrossfadeParams & {
|
||||
key: any;
|
||||
}) => () => TransitionConfig];
|
||||
@@ -0,0 +1,88 @@
|
||||
|
||||
module.exports = ProtoList
|
||||
|
||||
function setProto(obj, proto) {
|
||||
if (typeof Object.setPrototypeOf === "function")
|
||||
return Object.setPrototypeOf(obj, proto)
|
||||
else
|
||||
obj.__proto__ = proto
|
||||
}
|
||||
|
||||
function ProtoList () {
|
||||
this.list = []
|
||||
var root = null
|
||||
Object.defineProperty(this, 'root', {
|
||||
get: function () { return root },
|
||||
set: function (r) {
|
||||
root = r
|
||||
if (this.list.length) {
|
||||
setProto(this.list[this.list.length - 1], r)
|
||||
}
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
})
|
||||
}
|
||||
|
||||
ProtoList.prototype =
|
||||
{ get length () { return this.list.length }
|
||||
, get keys () {
|
||||
var k = []
|
||||
for (var i in this.list[0]) k.push(i)
|
||||
return k
|
||||
}
|
||||
, get snapshot () {
|
||||
var o = {}
|
||||
this.keys.forEach(function (k) { o[k] = this.get(k) }, this)
|
||||
return o
|
||||
}
|
||||
, get store () {
|
||||
return this.list[0]
|
||||
}
|
||||
, push : function (obj) {
|
||||
if (typeof obj !== "object") obj = {valueOf:obj}
|
||||
if (this.list.length >= 1) {
|
||||
setProto(this.list[this.list.length - 1], obj)
|
||||
}
|
||||
setProto(obj, this.root)
|
||||
return this.list.push(obj)
|
||||
}
|
||||
, pop : function () {
|
||||
if (this.list.length >= 2) {
|
||||
setProto(this.list[this.list.length - 2], this.root)
|
||||
}
|
||||
return this.list.pop()
|
||||
}
|
||||
, unshift : function (obj) {
|
||||
setProto(obj, this.list[0] || this.root)
|
||||
return this.list.unshift(obj)
|
||||
}
|
||||
, shift : function () {
|
||||
if (this.list.length === 1) {
|
||||
setProto(this.list[0], this.root)
|
||||
}
|
||||
return this.list.shift()
|
||||
}
|
||||
, get : function (key) {
|
||||
return this.list[0][key]
|
||||
}
|
||||
, set : function (key, val, save) {
|
||||
if (!this.length) this.push({})
|
||||
if (save && this.list[0].hasOwnProperty(key)) this.push({})
|
||||
return this.list[0][key] = val
|
||||
}
|
||||
, forEach : function (fn, thisp) {
|
||||
for (var key in this.list[0]) fn.call(thisp, key, this.list[0][key])
|
||||
}
|
||||
, slice : function () {
|
||||
return this.list.slice.apply(this.list, arguments)
|
||||
}
|
||||
, splice : function () {
|
||||
// handle injections
|
||||
var ret = this.list.splice.apply(this.list, arguments)
|
||||
for (var i = 0, l = this.list.length; i < l; i++) {
|
||||
setProto(this.list[i], this.list[i + 1] || this.root)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"digit-mapping.generated.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/NumberFormat/digit-mapping.generated.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAA67G,CAAC"}
|
||||
@@ -0,0 +1,50 @@
|
||||
module.exports = [
|
||||
[ 0x0300, 0x036F ], [ 0x0483, 0x0486 ], [ 0x0488, 0x0489 ],
|
||||
[ 0x0591, 0x05BD ], [ 0x05BF, 0x05BF ], [ 0x05C1, 0x05C2 ],
|
||||
[ 0x05C4, 0x05C5 ], [ 0x05C7, 0x05C7 ], [ 0x0600, 0x0603 ],
|
||||
[ 0x0610, 0x0615 ], [ 0x064B, 0x065E ], [ 0x0670, 0x0670 ],
|
||||
[ 0x06D6, 0x06E4 ], [ 0x06E7, 0x06E8 ], [ 0x06EA, 0x06ED ],
|
||||
[ 0x070F, 0x070F ], [ 0x0711, 0x0711 ], [ 0x0730, 0x074A ],
|
||||
[ 0x07A6, 0x07B0 ], [ 0x07EB, 0x07F3 ], [ 0x0901, 0x0902 ],
|
||||
[ 0x093C, 0x093C ], [ 0x0941, 0x0948 ], [ 0x094D, 0x094D ],
|
||||
[ 0x0951, 0x0954 ], [ 0x0962, 0x0963 ], [ 0x0981, 0x0981 ],
|
||||
[ 0x09BC, 0x09BC ], [ 0x09C1, 0x09C4 ], [ 0x09CD, 0x09CD ],
|
||||
[ 0x09E2, 0x09E3 ], [ 0x0A01, 0x0A02 ], [ 0x0A3C, 0x0A3C ],
|
||||
[ 0x0A41, 0x0A42 ], [ 0x0A47, 0x0A48 ], [ 0x0A4B, 0x0A4D ],
|
||||
[ 0x0A70, 0x0A71 ], [ 0x0A81, 0x0A82 ], [ 0x0ABC, 0x0ABC ],
|
||||
[ 0x0AC1, 0x0AC5 ], [ 0x0AC7, 0x0AC8 ], [ 0x0ACD, 0x0ACD ],
|
||||
[ 0x0AE2, 0x0AE3 ], [ 0x0B01, 0x0B01 ], [ 0x0B3C, 0x0B3C ],
|
||||
[ 0x0B3F, 0x0B3F ], [ 0x0B41, 0x0B43 ], [ 0x0B4D, 0x0B4D ],
|
||||
[ 0x0B56, 0x0B56 ], [ 0x0B82, 0x0B82 ], [ 0x0BC0, 0x0BC0 ],
|
||||
[ 0x0BCD, 0x0BCD ], [ 0x0C3E, 0x0C40 ], [ 0x0C46, 0x0C48 ],
|
||||
[ 0x0C4A, 0x0C4D ], [ 0x0C55, 0x0C56 ], [ 0x0CBC, 0x0CBC ],
|
||||
[ 0x0CBF, 0x0CBF ], [ 0x0CC6, 0x0CC6 ], [ 0x0CCC, 0x0CCD ],
|
||||
[ 0x0CE2, 0x0CE3 ], [ 0x0D41, 0x0D43 ], [ 0x0D4D, 0x0D4D ],
|
||||
[ 0x0DCA, 0x0DCA ], [ 0x0DD2, 0x0DD4 ], [ 0x0DD6, 0x0DD6 ],
|
||||
[ 0x0E31, 0x0E31 ], [ 0x0E34, 0x0E3A ], [ 0x0E47, 0x0E4E ],
|
||||
[ 0x0EB1, 0x0EB1 ], [ 0x0EB4, 0x0EB9 ], [ 0x0EBB, 0x0EBC ],
|
||||
[ 0x0EC8, 0x0ECD ], [ 0x0F18, 0x0F19 ], [ 0x0F35, 0x0F35 ],
|
||||
[ 0x0F37, 0x0F37 ], [ 0x0F39, 0x0F39 ], [ 0x0F71, 0x0F7E ],
|
||||
[ 0x0F80, 0x0F84 ], [ 0x0F86, 0x0F87 ], [ 0x0F90, 0x0F97 ],
|
||||
[ 0x0F99, 0x0FBC ], [ 0x0FC6, 0x0FC6 ], [ 0x102D, 0x1030 ],
|
||||
[ 0x1032, 0x1032 ], [ 0x1036, 0x1037 ], [ 0x1039, 0x1039 ],
|
||||
[ 0x1058, 0x1059 ], [ 0x1160, 0x11FF ], [ 0x135F, 0x135F ],
|
||||
[ 0x1712, 0x1714 ], [ 0x1732, 0x1734 ], [ 0x1752, 0x1753 ],
|
||||
[ 0x1772, 0x1773 ], [ 0x17B4, 0x17B5 ], [ 0x17B7, 0x17BD ],
|
||||
[ 0x17C6, 0x17C6 ], [ 0x17C9, 0x17D3 ], [ 0x17DD, 0x17DD ],
|
||||
[ 0x180B, 0x180D ], [ 0x18A9, 0x18A9 ], [ 0x1920, 0x1922 ],
|
||||
[ 0x1927, 0x1928 ], [ 0x1932, 0x1932 ], [ 0x1939, 0x193B ],
|
||||
[ 0x1A17, 0x1A18 ], [ 0x1B00, 0x1B03 ], [ 0x1B34, 0x1B34 ],
|
||||
[ 0x1B36, 0x1B3A ], [ 0x1B3C, 0x1B3C ], [ 0x1B42, 0x1B42 ],
|
||||
[ 0x1B6B, 0x1B73 ], [ 0x1DC0, 0x1DCA ], [ 0x1DFE, 0x1DFF ],
|
||||
[ 0x200B, 0x200F ], [ 0x202A, 0x202E ], [ 0x2060, 0x2063 ],
|
||||
[ 0x206A, 0x206F ], [ 0x20D0, 0x20EF ], [ 0x302A, 0x302F ],
|
||||
[ 0x3099, 0x309A ], [ 0xA806, 0xA806 ], [ 0xA80B, 0xA80B ],
|
||||
[ 0xA825, 0xA826 ], [ 0xFB1E, 0xFB1E ], [ 0xFE00, 0xFE0F ],
|
||||
[ 0xFE20, 0xFE23 ], [ 0xFEFF, 0xFEFF ], [ 0xFFF9, 0xFFFB ],
|
||||
[ 0x10A01, 0x10A03 ], [ 0x10A05, 0x10A06 ], [ 0x10A0C, 0x10A0F ],
|
||||
[ 0x10A38, 0x10A3A ], [ 0x10A3F, 0x10A3F ], [ 0x1D167, 0x1D169 ],
|
||||
[ 0x1D173, 0x1D182 ], [ 0x1D185, 0x1D18B ], [ 0x1D1AA, 0x1D1AD ],
|
||||
[ 0x1D242, 0x1D244 ], [ 0xE0001, 0xE0001 ], [ 0xE0020, 0xE007F ],
|
||||
[ 0xE0100, 0xE01EF ]
|
||||
]
|
||||
@@ -0,0 +1,263 @@
|
||||
'use strict';
|
||||
|
||||
function hasKey(obj, keys) {
|
||||
var o = obj;
|
||||
keys.slice(0, -1).forEach(function (key) {
|
||||
o = o[key] || {};
|
||||
});
|
||||
|
||||
var key = keys[keys.length - 1];
|
||||
return key in o;
|
||||
}
|
||||
|
||||
function isNumber(x) {
|
||||
if (typeof x === 'number') { return true; }
|
||||
if ((/^0x[0-9a-f]+$/i).test(x)) { return true; }
|
||||
return (/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/).test(x);
|
||||
}
|
||||
|
||||
function isConstructorOrProto(obj, key) {
|
||||
return (key === 'constructor' && typeof obj[key] === 'function') || key === '__proto__';
|
||||
}
|
||||
|
||||
module.exports = function (args, opts) {
|
||||
if (!opts) { opts = {}; }
|
||||
|
||||
var flags = {
|
||||
bools: {},
|
||||
strings: {},
|
||||
unknownFn: null,
|
||||
};
|
||||
|
||||
if (typeof opts.unknown === 'function') {
|
||||
flags.unknownFn = opts.unknown;
|
||||
}
|
||||
|
||||
if (typeof opts.boolean === 'boolean' && opts.boolean) {
|
||||
flags.allBools = true;
|
||||
} else {
|
||||
[].concat(opts.boolean).filter(Boolean).forEach(function (key) {
|
||||
flags.bools[key] = true;
|
||||
});
|
||||
}
|
||||
|
||||
var aliases = {};
|
||||
|
||||
function aliasIsBoolean(key) {
|
||||
return aliases[key].some(function (x) {
|
||||
return flags.bools[x];
|
||||
});
|
||||
}
|
||||
|
||||
Object.keys(opts.alias || {}).forEach(function (key) {
|
||||
aliases[key] = [].concat(opts.alias[key]);
|
||||
aliases[key].forEach(function (x) {
|
||||
aliases[x] = [key].concat(aliases[key].filter(function (y) {
|
||||
return x !== y;
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
[].concat(opts.string).filter(Boolean).forEach(function (key) {
|
||||
flags.strings[key] = true;
|
||||
if (aliases[key]) {
|
||||
[].concat(aliases[key]).forEach(function (k) {
|
||||
flags.strings[k] = true;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
var defaults = opts.default || {};
|
||||
|
||||
var argv = { _: [] };
|
||||
|
||||
function argDefined(key, arg) {
|
||||
return (flags.allBools && (/^--[^=]+$/).test(arg))
|
||||
|| flags.strings[key]
|
||||
|| flags.bools[key]
|
||||
|| aliases[key];
|
||||
}
|
||||
|
||||
function setKey(obj, keys, value) {
|
||||
var o = obj;
|
||||
for (var i = 0; i < keys.length - 1; i++) {
|
||||
var key = keys[i];
|
||||
if (isConstructorOrProto(o, key)) { return; }
|
||||
if (o[key] === undefined) { o[key] = {}; }
|
||||
if (
|
||||
o[key] === Object.prototype
|
||||
|| o[key] === Number.prototype
|
||||
|| o[key] === String.prototype
|
||||
) {
|
||||
o[key] = {};
|
||||
}
|
||||
if (o[key] === Array.prototype) { o[key] = []; }
|
||||
o = o[key];
|
||||
}
|
||||
|
||||
var lastKey = keys[keys.length - 1];
|
||||
if (isConstructorOrProto(o, lastKey)) { return; }
|
||||
if (
|
||||
o === Object.prototype
|
||||
|| o === Number.prototype
|
||||
|| o === String.prototype
|
||||
) {
|
||||
o = {};
|
||||
}
|
||||
if (o === Array.prototype) { o = []; }
|
||||
if (o[lastKey] === undefined || flags.bools[lastKey] || typeof o[lastKey] === 'boolean') {
|
||||
o[lastKey] = value;
|
||||
} else if (Array.isArray(o[lastKey])) {
|
||||
o[lastKey].push(value);
|
||||
} else {
|
||||
o[lastKey] = [o[lastKey], value];
|
||||
}
|
||||
}
|
||||
|
||||
function setArg(key, val, arg) {
|
||||
if (arg && flags.unknownFn && !argDefined(key, arg)) {
|
||||
if (flags.unknownFn(arg) === false) { return; }
|
||||
}
|
||||
|
||||
var value = !flags.strings[key] && isNumber(val)
|
||||
? Number(val)
|
||||
: val;
|
||||
setKey(argv, key.split('.'), value);
|
||||
|
||||
(aliases[key] || []).forEach(function (x) {
|
||||
setKey(argv, x.split('.'), value);
|
||||
});
|
||||
}
|
||||
|
||||
Object.keys(flags.bools).forEach(function (key) {
|
||||
setArg(key, defaults[key] === undefined ? false : defaults[key]);
|
||||
});
|
||||
|
||||
var notFlags = [];
|
||||
|
||||
if (args.indexOf('--') !== -1) {
|
||||
notFlags = args.slice(args.indexOf('--') + 1);
|
||||
args = args.slice(0, args.indexOf('--'));
|
||||
}
|
||||
|
||||
for (var i = 0; i < args.length; i++) {
|
||||
var arg = args[i];
|
||||
var key;
|
||||
var next;
|
||||
|
||||
if ((/^--.+=/).test(arg)) {
|
||||
// Using [\s\S] instead of . because js doesn't support the
|
||||
// 'dotall' regex modifier. See:
|
||||
// http://stackoverflow.com/a/1068308/13216
|
||||
var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
|
||||
key = m[1];
|
||||
var value = m[2];
|
||||
if (flags.bools[key]) {
|
||||
value = value !== 'false';
|
||||
}
|
||||
setArg(key, value, arg);
|
||||
} else if ((/^--no-.+/).test(arg)) {
|
||||
key = arg.match(/^--no-(.+)/)[1];
|
||||
setArg(key, false, arg);
|
||||
} else if ((/^--.+/).test(arg)) {
|
||||
key = arg.match(/^--(.+)/)[1];
|
||||
next = args[i + 1];
|
||||
if (
|
||||
next !== undefined
|
||||
&& !(/^(-|--)[^-]/).test(next)
|
||||
&& !flags.bools[key]
|
||||
&& !flags.allBools
|
||||
&& (aliases[key] ? !aliasIsBoolean(key) : true)
|
||||
) {
|
||||
setArg(key, next, arg);
|
||||
i += 1;
|
||||
} else if ((/^(true|false)$/).test(next)) {
|
||||
setArg(key, next === 'true', arg);
|
||||
i += 1;
|
||||
} else {
|
||||
setArg(key, flags.strings[key] ? '' : true, arg);
|
||||
}
|
||||
} else if ((/^-[^-]+/).test(arg)) {
|
||||
var letters = arg.slice(1, -1).split('');
|
||||
|
||||
var broken = false;
|
||||
for (var j = 0; j < letters.length; j++) {
|
||||
next = arg.slice(j + 2);
|
||||
|
||||
if (next === '-') {
|
||||
setArg(letters[j], next, arg);
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((/[A-Za-z]/).test(letters[j]) && next[0] === '=') {
|
||||
setArg(letters[j], next.slice(1), arg);
|
||||
broken = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (
|
||||
(/[A-Za-z]/).test(letters[j])
|
||||
&& (/-?\d+(\.\d*)?(e-?\d+)?$/).test(next)
|
||||
) {
|
||||
setArg(letters[j], next, arg);
|
||||
broken = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (letters[j + 1] && letters[j + 1].match(/\W/)) {
|
||||
setArg(letters[j], arg.slice(j + 2), arg);
|
||||
broken = true;
|
||||
break;
|
||||
} else {
|
||||
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
||||
}
|
||||
}
|
||||
|
||||
key = arg.slice(-1)[0];
|
||||
if (!broken && key !== '-') {
|
||||
if (
|
||||
args[i + 1]
|
||||
&& !(/^(-|--)[^-]/).test(args[i + 1])
|
||||
&& !flags.bools[key]
|
||||
&& (aliases[key] ? !aliasIsBoolean(key) : true)
|
||||
) {
|
||||
setArg(key, args[i + 1], arg);
|
||||
i += 1;
|
||||
} else if (args[i + 1] && (/^(true|false)$/).test(args[i + 1])) {
|
||||
setArg(key, args[i + 1] === 'true', arg);
|
||||
i += 1;
|
||||
} else {
|
||||
setArg(key, flags.strings[key] ? '' : true, arg);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
|
||||
argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg));
|
||||
}
|
||||
if (opts.stopEarly) {
|
||||
argv._.push.apply(argv._, args.slice(i + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Object.keys(defaults).forEach(function (k) {
|
||||
if (!hasKey(argv, k.split('.'))) {
|
||||
setKey(argv, k.split('.'), defaults[k]);
|
||||
|
||||
(aliases[k] || []).forEach(function (x) {
|
||||
setKey(argv, x.split('.'), defaults[k]);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if (opts['--']) {
|
||||
argv['--'] = notFlags.slice();
|
||||
} else {
|
||||
notFlags.forEach(function (k) {
|
||||
argv._.push(k);
|
||||
});
|
||||
}
|
||||
|
||||
return argv;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"is-ci","version":"3.0.1","files":{"LICENSE":{"checkedAt":1678883671349,"integrity":"sha512-zwQ03RswI43UgvRFcFNmq31pmFWofyVNPy9czUVjTIGH5NXm3sF8KRhaAQkZadfGcbBYDlQGgOlgzOhUo+WQNA==","mode":420,"size":1091},"bin.js":{"checkedAt":1678883671349,"integrity":"sha512-uN/EGILK11GGbS1lW0VRcbox5efadjIbZ4sIWg1lxYjIarVx7Lm2qRHySGcNQS+JaE1016FlHTehnLdCWq9T2w==","mode":493,"size":70},"index.js":{"checkedAt":1678883671349,"integrity":"sha512-ODC6huQuDHhXQc3nhlNLQIggcqAe2+Q08/Zr4pX7ZYFRq2y5JopCdLUqQQBiUX8oavgQi5AOe/UM5+jirrCWkg==","mode":420,"size":55},"package.json":{"checkedAt":1678883671349,"integrity":"sha512-AiQwgBDN7SpcIxiSkZ2lkjF06WytqZfG8tl36LNJbP3J20O97MX8GQMmj9ZzoJAAa8VPZa9xiTWT5o7okckRqg==","mode":420,"size":797},"CHANGELOG.md":{"checkedAt":1678883671349,"integrity":"sha512-0hw0qrk6ndlXJocON8w7/xr7zpkwh3aArxytFdsecL2OOCEHpFdBpwE+46/ir35zfuSUR23CoARJcezhh42PxA==","mode":420,"size":492},"README.md":{"checkedAt":1678883671349,"integrity":"sha512-rQu5zB6AUCDzKj+mog4NTf9AOmlfXZ5soCkaGd5kalYO6lLia+3YnlY9mWScIKDK1HH1Hwqht2Qehl6MfgZZ/g==","mode":420,"size":1302}}}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"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 r s t u f H"},C:{"1":"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 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","2":"DC tB EC FC"},D:{"1":"5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","2":"0 1 2 3 4 I v J D E F A B C K L G M N O w g x y z"},E:{"1":"E F A B C K L G LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D HC zB IC JC KC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"F B C G PC QC RC SC qB AC TC rB"},G:{"1":"E 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","2":"zB UC BC VC WC XC"},H:{"2":"oC"},I:{"1":"f tC uC","2":"tB I pC qC rC sC BC"},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:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:1,C:"document.currentScript"};
|
||||
@@ -0,0 +1,4 @@
|
||||
import { OperatorFunction, ObservableInputTuple } from '../types';
|
||||
export declare function withLatestFrom<T, O extends unknown[]>(...inputs: [...ObservableInputTuple<O>]): OperatorFunction<T, [T, ...O]>;
|
||||
export declare function withLatestFrom<T, O extends unknown[], R>(...inputs: [...ObservableInputTuple<O>, (...value: [T, ...O]) => R]): OperatorFunction<T, R>;
|
||||
//# sourceMappingURL=withLatestFrom.d.ts.map
|
||||
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
var lastIndex = require("./last-index");
|
||||
|
||||
module.exports = function () {
|
||||
var i;
|
||||
if ((i = lastIndex.call(this)) !== null) return this[i];
|
||||
return undefined;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"defaultIfEmpty.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/defaultIfEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAmBhF"}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { ObservableNotification } from '../types';
|
||||
|
||||
export interface TestMessage {
|
||||
frame: number;
|
||||
notification: ObservableNotification<any>;
|
||||
isGhost?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
var castSlice = require('./_castSlice'),
|
||||
hasUnicode = require('./_hasUnicode'),
|
||||
stringToArray = require('./_stringToArray'),
|
||||
toString = require('./toString');
|
||||
|
||||
/**
|
||||
* Creates a function like `_.lowerFirst`.
|
||||
*
|
||||
* @private
|
||||
* @param {string} methodName The name of the `String` case method to use.
|
||||
* @returns {Function} Returns the new case function.
|
||||
*/
|
||||
function createCaseFirst(methodName) {
|
||||
return function(string) {
|
||||
string = toString(string);
|
||||
|
||||
var strSymbols = hasUnicode(string)
|
||||
? stringToArray(string)
|
||||
: undefined;
|
||||
|
||||
var chr = strSymbols
|
||||
? strSymbols[0]
|
||||
: string.charAt(0);
|
||||
|
||||
var trailing = strSymbols
|
||||
? castSlice(strSymbols, 1).join('')
|
||||
: string.slice(1);
|
||||
|
||||
return chr[methodName]() + trailing;
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = createCaseFirst;
|
||||
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"name": "has-symbols",
|
||||
"version": "1.0.3",
|
||||
"description": "Determine if the JS environment has Symbol support. Supports spec, or shams.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"pretest": "npm run --silent lint",
|
||||
"test": "npm run tests-only",
|
||||
"posttest": "aud --production",
|
||||
"tests-only": "npm run test:stock && npm run test:staging && npm run test:shams",
|
||||
"test:stock": "nyc node test",
|
||||
"test:staging": "nyc node --harmony --es-staging test",
|
||||
"test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
|
||||
"test:shams:corejs": "nyc node test/shams/core-js.js",
|
||||
"test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js",
|
||||
"lint": "eslint --ext=js,mjs .",
|
||||
"version": "auto-changelog && git add CHANGELOG.md",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/inspect-js/has-symbols.git"
|
||||
},
|
||||
"keywords": [
|
||||
"Symbol",
|
||||
"symbols",
|
||||
"typeof",
|
||||
"sham",
|
||||
"polyfill",
|
||||
"native",
|
||||
"core-js",
|
||||
"ES6"
|
||||
],
|
||||
"author": {
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com",
|
||||
"url": "http://ljharb.codes"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com",
|
||||
"url": "http://ljharb.codes"
|
||||
}
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ljharb/has-symbols/issues"
|
||||
},
|
||||
"homepage": "https://github.com/ljharb/has-symbols#readme",
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^20.2.3",
|
||||
"aud": "^2.0.0",
|
||||
"auto-changelog": "^2.4.0",
|
||||
"core-js": "^2.6.12",
|
||||
"eslint": "=8.8.0",
|
||||
"get-own-property-symbols": "^0.9.5",
|
||||
"nyc": "^10.3.2",
|
||||
"safe-publish-latest": "^2.0.0",
|
||||
"tape": "^5.5.2"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"iexplore/6.0..latest",
|
||||
"firefox/3.0..6.0",
|
||||
"firefox/15.0..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/4.0..10.0",
|
||||
"chrome/20.0..latest",
|
||||
"chrome/canary",
|
||||
"opera/10.0..latest",
|
||||
"opera/next",
|
||||
"safari/4.0..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false,
|
||||
"hideCredit": true
|
||||
},
|
||||
"greenkeeper": {
|
||||
"ignore": [
|
||||
"core-js"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = typeOf;
|
||||
|
||||
/**
|
||||
* Better way to handle type checking
|
||||
* null, {}, array and date are objects, which confuses
|
||||
*/
|
||||
function typeOf(input) {
|
||||
var rawObject = Object.prototype.toString.call(input).toLowerCase();
|
||||
var typeOfRegex = /\[object (.*)]/g;
|
||||
var type = typeOfRegex.exec(rawObject)[1];
|
||||
return type;
|
||||
}
|
||||
|
||||
module.exports = exports.default;
|
||||
module.exports.default = exports.default;
|
||||
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
var global = require("ext/global-this")
|
||||
, polyfill = require("../polyfill");
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var cache;
|
||||
a(typeof t(), "boolean");
|
||||
cache = global.Symbol;
|
||||
global.Symbol = polyfill;
|
||||
a(t(), true);
|
||||
if (cache === undefined) delete global.Symbol;
|
||||
else global.Symbol = cache;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AnimationFrameScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameScheduler.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAA6C,2CAAc;IAA3D;;IAkCA,CAAC;IAjCQ,uCAAK,GAAZ,UAAa,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,IAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAEpB,IAAA,OAAO,GAAK,IAAI,QAAT,CAAU;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,8BAAC;AAAD,CAAC,AAlCD,CAA6C,cAAc,GAkC1D"}
|
||||
@@ -0,0 +1,52 @@
|
||||
import { innerFrom } from '../observable/innerFrom';
|
||||
import { Observable } from '../Observable';
|
||||
import { mergeMap } from '../operators/mergeMap';
|
||||
import { isArrayLike } from '../util/isArrayLike';
|
||||
import { isFunction } from '../util/isFunction';
|
||||
import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';
|
||||
const nodeEventEmitterMethods = ['addListener', 'removeListener'];
|
||||
const eventTargetMethods = ['addEventListener', 'removeEventListener'];
|
||||
const jqueryMethods = ['on', 'off'];
|
||||
export function fromEvent(target, eventName, options, resultSelector) {
|
||||
if (isFunction(options)) {
|
||||
resultSelector = options;
|
||||
options = undefined;
|
||||
}
|
||||
if (resultSelector) {
|
||||
return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
|
||||
}
|
||||
const [add, remove] = isEventTarget(target)
|
||||
? eventTargetMethods.map((methodName) => (handler) => target[methodName](eventName, handler, options))
|
||||
:
|
||||
isNodeStyleEventEmitter(target)
|
||||
? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))
|
||||
: isJQueryStyleEventEmitter(target)
|
||||
? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))
|
||||
: [];
|
||||
if (!add) {
|
||||
if (isArrayLike(target)) {
|
||||
return mergeMap((subTarget) => fromEvent(subTarget, eventName, options))(innerFrom(target));
|
||||
}
|
||||
}
|
||||
if (!add) {
|
||||
throw new TypeError('Invalid event target');
|
||||
}
|
||||
return new Observable((subscriber) => {
|
||||
const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);
|
||||
add(handler);
|
||||
return () => remove(handler);
|
||||
});
|
||||
}
|
||||
function toCommonHandlerRegistry(target, eventName) {
|
||||
return (methodName) => (handler) => target[methodName](eventName, handler);
|
||||
}
|
||||
function isNodeStyleEventEmitter(target) {
|
||||
return isFunction(target.addListener) && isFunction(target.removeListener);
|
||||
}
|
||||
function isJQueryStyleEventEmitter(target) {
|
||||
return isFunction(target.on) && isFunction(target.off);
|
||||
}
|
||||
function isEventTarget(target) {
|
||||
return isFunction(target.addEventListener) && isFunction(target.removeEventListener);
|
||||
}
|
||||
//# sourceMappingURL=fromEvent.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F CC","132":"A B"},B:{"1":"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 r s t u f H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"DC tB I v J D E F EC FC","33":"A B C K L G"},D:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","2":"I v J D E F A B","33":"0 1 2 3 4 5 6 7 8 9 C K L G M N O w g x y z AB BB"},E:{"1":"3B 4B 5B sB 6B 7B 8B 9B OC","2":"HC zB","33":"I v J D E IC JC KC","257":"F A B C K L G LC 0B qB rB 1B MC NC 2B"},F:{"1":"0 1 2 3 4 5 6 7 8 9 z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"F B C PC QC RC SC qB AC TC rB","33":"G M N O w g x y"},G:{"1":"3B 4B 5B sB 6B 7B 8B 9B","33":"E zB UC BC VC WC XC YC","257":"ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B"},H:{"2":"oC"},I:{"1":"f","2":"pC qC rC","33":"tB I sC BC tC uC"},J:{"33":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"132":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:5,C:"CSS3 3D Transforms"};
|
||||
@@ -0,0 +1,4 @@
|
||||
import is from '@sindresorhus/is';
|
||||
export default function isFormData(body) {
|
||||
return is.nodeStream(body) && is.function_(body.getBoundary);
|
||||
}
|
||||
@@ -0,0 +1,813 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
IsPropertyDescriptor: 'https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type', // not actually an abstract op
|
||||
|
||||
abs: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-algorithm-conventions'
|
||||
},
|
||||
'Abstract Equality Comparison': {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-abstract-equality-comparison'
|
||||
},
|
||||
'Abstract Relational Comparison': {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-abstract-relational-comparison'
|
||||
},
|
||||
AddRestrictedFunctionProperties: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-addrestrictedfunctionproperties'
|
||||
},
|
||||
AdvanceStringIndex: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-advancestringindex'
|
||||
},
|
||||
AllocateArrayBuffer: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-allocatearraybuffer'
|
||||
},
|
||||
AllocateTypedArray: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-allocatetypedarray'
|
||||
},
|
||||
AllocateTypedArrayBuffer: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-allocatetypedarraybuffer'
|
||||
},
|
||||
ArrayCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-arraycreate'
|
||||
},
|
||||
ArraySetLength: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-arraysetlength'
|
||||
},
|
||||
ArraySpeciesCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-arrayspeciescreate'
|
||||
},
|
||||
BlockDeclarationInstantiation: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-blockdeclarationinstantiation'
|
||||
},
|
||||
BoundFunctionCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-boundfunctioncreate'
|
||||
},
|
||||
Call: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-call'
|
||||
},
|
||||
Canonicalize: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-canonicalize-ch'
|
||||
},
|
||||
CanonicalNumericIndexString: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-canonicalnumericindexstring'
|
||||
},
|
||||
CharacterRange: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-characterrange-abstract-operation'
|
||||
},
|
||||
CharacterRangeOrUnion: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-characterrangeorunion-abstract-operation'
|
||||
},
|
||||
CharacterSetMatcher: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-charactersetmatcher-abstract-operation'
|
||||
},
|
||||
CloneArrayBuffer: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-clonearraybuffer'
|
||||
},
|
||||
CompletePropertyDescriptor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-completepropertydescriptor'
|
||||
},
|
||||
Completion: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-completion-record-specification-type'
|
||||
},
|
||||
CompletionRecord: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-completion-record-specification-type'
|
||||
},
|
||||
Construct: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-construct'
|
||||
},
|
||||
CopyDataBlockBytes: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-copydatablockbytes'
|
||||
},
|
||||
CreateArrayFromList: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createarrayfromlist'
|
||||
},
|
||||
CreateArrayIterator: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createarrayiterator'
|
||||
},
|
||||
CreateBuiltinFunction: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createbuiltinfunction'
|
||||
},
|
||||
CreateByteDataBlock: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createbytedatablock'
|
||||
},
|
||||
CreateDataProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createdataproperty'
|
||||
},
|
||||
CreateDataPropertyOrThrow: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createdatapropertyorthrow'
|
||||
},
|
||||
CreateDynamicFunction: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createdynamicfunction'
|
||||
},
|
||||
CreateHTML: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createhtml'
|
||||
},
|
||||
CreateIntrinsics: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createintrinsics'
|
||||
},
|
||||
CreateIterResultObject: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createiterresultobject'
|
||||
},
|
||||
CreateListFromArrayLike: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createlistfromarraylike'
|
||||
},
|
||||
CreateListIterator: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createlistiterator'
|
||||
},
|
||||
CreateMapIterator: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createmapiterator'
|
||||
},
|
||||
CreateMappedArgumentsObject: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createmappedargumentsobject'
|
||||
},
|
||||
CreateMethodProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createmethodproperty'
|
||||
},
|
||||
CreatePerIterationEnvironment: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createperiterationenvironment'
|
||||
},
|
||||
CreateRealm: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createrealm'
|
||||
},
|
||||
CreateResolvingFunctions: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createresolvingfunctions'
|
||||
},
|
||||
CreateSetIterator: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createsetiterator'
|
||||
},
|
||||
CreateStringIterator: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createstringiterator'
|
||||
},
|
||||
CreateUnmappedArgumentsObject: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-createunmappedargumentsobject'
|
||||
},
|
||||
DateFromTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-date-number'
|
||||
},
|
||||
Day: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-day-number-and-time-within-day'
|
||||
},
|
||||
DayFromYear: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-year-number'
|
||||
},
|
||||
DaylightSavingTA: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-daylight-saving-time-adjustment'
|
||||
},
|
||||
DaysInYear: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-year-number'
|
||||
},
|
||||
DayWithinYear: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-month-number'
|
||||
},
|
||||
Decode: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-decode'
|
||||
},
|
||||
DefinePropertyOrThrow: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-definepropertyorthrow'
|
||||
},
|
||||
DeletePropertyOrThrow: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-deletepropertyorthrow'
|
||||
},
|
||||
DetachArrayBuffer: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-detacharraybuffer'
|
||||
},
|
||||
Encode: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-encode'
|
||||
},
|
||||
EnqueueJob: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-enqueuejob'
|
||||
},
|
||||
EnumerableOwnNames: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-enumerableownnames'
|
||||
},
|
||||
EnumerateObjectProperties: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-enumerate-object-properties'
|
||||
},
|
||||
EscapeRegExpPattern: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-escaperegexppattern'
|
||||
},
|
||||
EvalDeclarationInstantiation: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-evaldeclarationinstantiation'
|
||||
},
|
||||
EvaluateCall: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-evaluatecall'
|
||||
},
|
||||
EvaluateDirectCall: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-evaluatedirectcall'
|
||||
},
|
||||
EvaluateNew: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-evaluatenew'
|
||||
},
|
||||
floor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-algorithm-conventions'
|
||||
},
|
||||
ForBodyEvaluation: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-forbodyevaluation'
|
||||
},
|
||||
'ForIn/OfBodyEvaluation': {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset'
|
||||
},
|
||||
'ForIn/OfHeadEvaluation': {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-forin-div-ofheadevaluation-tdznames-expr-iterationkind'
|
||||
},
|
||||
FromPropertyDescriptor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-frompropertydescriptor'
|
||||
},
|
||||
FulfillPromise: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-fulfillpromise'
|
||||
},
|
||||
FunctionAllocate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-functionallocate'
|
||||
},
|
||||
FunctionCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-functioncreate'
|
||||
},
|
||||
FunctionDeclarationInstantiation: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-functiondeclarationinstantiation'
|
||||
},
|
||||
FunctionInitialize: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-functioninitialize'
|
||||
},
|
||||
GeneratorFunctionCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-generatorfunctioncreate'
|
||||
},
|
||||
GeneratorResume: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-generatorresume'
|
||||
},
|
||||
GeneratorResumeAbrupt: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-generatorresumeabrupt'
|
||||
},
|
||||
GeneratorStart: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-generatorstart'
|
||||
},
|
||||
GeneratorValidate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-generatorvalidate'
|
||||
},
|
||||
GeneratorYield: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-generatoryield'
|
||||
},
|
||||
Get: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-get-o-p'
|
||||
},
|
||||
GetActiveScriptOrModule: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getactivescriptormodule'
|
||||
},
|
||||
GetFunctionRealm: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getfunctionrealm'
|
||||
},
|
||||
GetGlobalObject: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getglobalobject'
|
||||
},
|
||||
GetIdentifierReference: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getidentifierreference'
|
||||
},
|
||||
GetIterator: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getiterator'
|
||||
},
|
||||
GetMethod: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getmethod'
|
||||
},
|
||||
GetModuleNamespace: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getmodulenamespace'
|
||||
},
|
||||
GetNewTarget: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getnewtarget'
|
||||
},
|
||||
GetOwnPropertyKeys: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getownpropertykeys'
|
||||
},
|
||||
GetPrototypeFromConstructor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getprototypefromconstructor'
|
||||
},
|
||||
GetSubstitution: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getsubstitution'
|
||||
},
|
||||
GetSuperConstructor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getsuperconstructor'
|
||||
},
|
||||
GetTemplateObject: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-gettemplateobject'
|
||||
},
|
||||
GetThisEnvironment: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getthisenvironment'
|
||||
},
|
||||
GetThisValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getthisvalue'
|
||||
},
|
||||
GetV: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getv'
|
||||
},
|
||||
GetValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getvalue'
|
||||
},
|
||||
GetValueFromBuffer: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getvaluefrombuffer'
|
||||
},
|
||||
GetViewValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-getviewvalue'
|
||||
},
|
||||
GlobalDeclarationInstantiation: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-globaldeclarationinstantiation'
|
||||
},
|
||||
HasOwnProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-hasownproperty'
|
||||
},
|
||||
HasProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-hasproperty'
|
||||
},
|
||||
HourFromTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-hours-minutes-second-and-milliseconds'
|
||||
},
|
||||
IfAbruptRejectPromise: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ifabruptrejectpromise'
|
||||
},
|
||||
ImportedLocalNames: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-importedlocalnames'
|
||||
},
|
||||
InitializeBoundName: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-initializeboundname'
|
||||
},
|
||||
InitializeHostDefinedRealm: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-initializehostdefinedrealm'
|
||||
},
|
||||
InitializeReferencedBinding: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-initializereferencedbinding'
|
||||
},
|
||||
InLeapYear: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-year-number'
|
||||
},
|
||||
InstanceofOperator: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-instanceofoperator'
|
||||
},
|
||||
IntegerIndexedElementGet: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-integerindexedelementget'
|
||||
},
|
||||
IntegerIndexedElementSet: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-integerindexedelementset'
|
||||
},
|
||||
IntegerIndexedObjectCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-integerindexedobjectcreate'
|
||||
},
|
||||
InternalizeJSONProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-internalizejsonproperty'
|
||||
},
|
||||
Invoke: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-invoke'
|
||||
},
|
||||
IsAccessorDescriptor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isaccessordescriptor'
|
||||
},
|
||||
IsAnonymousFunctionDefinition: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isanonymousfunctiondefinition'
|
||||
},
|
||||
IsArray: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isarray'
|
||||
},
|
||||
IsCallable: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-iscallable'
|
||||
},
|
||||
IsCompatiblePropertyDescriptor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-iscompatiblepropertydescriptor'
|
||||
},
|
||||
IsConcatSpreadable: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isconcatspreadable'
|
||||
},
|
||||
IsConstructor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isconstructor'
|
||||
},
|
||||
IsDataDescriptor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isdatadescriptor'
|
||||
},
|
||||
IsDetachedBuffer: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isdetachedbuffer'
|
||||
},
|
||||
IsExtensible: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isextensible-o'
|
||||
},
|
||||
IsGenericDescriptor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isgenericdescriptor'
|
||||
},
|
||||
IsInTailPosition: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isintailposition'
|
||||
},
|
||||
IsInteger: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isinteger'
|
||||
},
|
||||
IsLabelledFunction: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-islabelledfunction'
|
||||
},
|
||||
IsPromise: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ispromise'
|
||||
},
|
||||
IsPropertyKey: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ispropertykey'
|
||||
},
|
||||
IsRegExp: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-isregexp'
|
||||
},
|
||||
IsWordChar: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-iswordchar-abstract-operation'
|
||||
},
|
||||
IterableToArrayLike: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-iterabletoarraylike'
|
||||
},
|
||||
IteratorClose: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-iteratorclose'
|
||||
},
|
||||
IteratorComplete: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-iteratorcomplete'
|
||||
},
|
||||
IteratorNext: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-iteratornext'
|
||||
},
|
||||
IteratorStep: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-iteratorstep'
|
||||
},
|
||||
IteratorValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-iteratorvalue'
|
||||
},
|
||||
LocalTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-localtime'
|
||||
},
|
||||
LoopContinues: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-loopcontinues'
|
||||
},
|
||||
MakeArgGetter: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-makearggetter'
|
||||
},
|
||||
MakeArgSetter: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-makeargsetter'
|
||||
},
|
||||
MakeClassConstructor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-makeclassconstructor'
|
||||
},
|
||||
MakeConstructor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-makeconstructor'
|
||||
},
|
||||
MakeDate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-makedate'
|
||||
},
|
||||
MakeDay: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-makeday'
|
||||
},
|
||||
MakeMethod: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-makemethod'
|
||||
},
|
||||
MakeSuperPropertyReference: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-makesuperpropertyreference'
|
||||
},
|
||||
MakeTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-maketime'
|
||||
},
|
||||
max: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-algorithm-conventions'
|
||||
},
|
||||
min: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-algorithm-conventions'
|
||||
},
|
||||
MinFromTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-hours-minutes-second-and-milliseconds'
|
||||
},
|
||||
ModuleNamespaceCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-modulenamespacecreate'
|
||||
},
|
||||
modulo: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-algorithm-conventions'
|
||||
},
|
||||
MonthFromTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-month-number'
|
||||
},
|
||||
msFromTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-hours-minutes-second-and-milliseconds'
|
||||
},
|
||||
NewDeclarativeEnvironment: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-newdeclarativeenvironment'
|
||||
},
|
||||
NewFunctionEnvironment: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-newfunctionenvironment'
|
||||
},
|
||||
NewGlobalEnvironment: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-newglobalenvironment'
|
||||
},
|
||||
NewModuleEnvironment: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-newmoduleenvironment'
|
||||
},
|
||||
NewObjectEnvironment: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-newobjectenvironment'
|
||||
},
|
||||
NewPromiseCapability: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-newpromisecapability'
|
||||
},
|
||||
NextJob: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-nextjob-result'
|
||||
},
|
||||
NormalCompletion: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-normalcompletion'
|
||||
},
|
||||
ObjectCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-objectcreate'
|
||||
},
|
||||
ObjectDefineProperties: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-objectdefineproperties'
|
||||
},
|
||||
OrdinaryCallBindThis: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarycallbindthis'
|
||||
},
|
||||
OrdinaryCallEvaluateBody: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarycallevaluatebody'
|
||||
},
|
||||
OrdinaryCreateFromConstructor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarycreatefromconstructor'
|
||||
},
|
||||
OrdinaryDefineOwnProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarydefineownproperty'
|
||||
},
|
||||
OrdinaryDelete: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarydelete'
|
||||
},
|
||||
OrdinaryGet: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinaryget'
|
||||
},
|
||||
OrdinaryGetOwnProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarygetownproperty'
|
||||
},
|
||||
OrdinaryGetPrototypeOf: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarygetprototypeof'
|
||||
},
|
||||
OrdinaryHasInstance: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinaryhasinstance'
|
||||
},
|
||||
OrdinaryHasProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinaryhasproperty'
|
||||
},
|
||||
OrdinaryIsExtensible: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinaryisextensible'
|
||||
},
|
||||
OrdinaryOwnPropertyKeys: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinaryownpropertykeys'
|
||||
},
|
||||
OrdinaryPreventExtensions: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarypreventextensions'
|
||||
},
|
||||
OrdinarySet: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinaryset'
|
||||
},
|
||||
OrdinarySetPrototypeOf: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ordinarysetprototypeof'
|
||||
},
|
||||
ParseModule: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-parsemodule'
|
||||
},
|
||||
ParseScript: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-parse-script'
|
||||
},
|
||||
PerformEval: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-performeval'
|
||||
},
|
||||
PerformPromiseAll: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-performpromiseall'
|
||||
},
|
||||
PerformPromiseRace: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-performpromiserace'
|
||||
},
|
||||
PerformPromiseThen: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-performpromisethen'
|
||||
},
|
||||
PrepareForOrdinaryCall: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-prepareforordinarycall'
|
||||
},
|
||||
PrepareForTailCall: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-preparefortailcall'
|
||||
},
|
||||
PromiseReactionJob: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-promisereactionjob'
|
||||
},
|
||||
PromiseResolveThenableJob: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-promiseresolvethenablejob'
|
||||
},
|
||||
ProxyCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-proxycreate'
|
||||
},
|
||||
PutValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-putvalue'
|
||||
},
|
||||
QuoteJSONString: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-quotejsonstring'
|
||||
},
|
||||
RegExpAlloc: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-regexpalloc'
|
||||
},
|
||||
RegExpBuiltinExec: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-regexpbuiltinexec'
|
||||
},
|
||||
RegExpCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-regexpcreate'
|
||||
},
|
||||
RegExpExec: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-regexpexec'
|
||||
},
|
||||
RegExpInitialize: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-regexpinitialize'
|
||||
},
|
||||
RejectPromise: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-rejectpromise'
|
||||
},
|
||||
RepeatMatcher: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-repeatmatcher-abstract-operation'
|
||||
},
|
||||
RequireObjectCoercible: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-requireobjectcoercible'
|
||||
},
|
||||
ResolveBinding: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-resolvebinding'
|
||||
},
|
||||
ResolveThisBinding: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-resolvethisbinding'
|
||||
},
|
||||
ReturnIfAbrupt: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-returnifabrupt'
|
||||
},
|
||||
SameValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-samevalue'
|
||||
},
|
||||
SameValueNonNumber: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-samevaluenonnumber'
|
||||
},
|
||||
SameValueZero: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-samevaluezero'
|
||||
},
|
||||
ScriptEvaluation: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-runtime-semantics-scriptevaluation'
|
||||
},
|
||||
ScriptEvaluationJob: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-scriptevaluationjob'
|
||||
},
|
||||
SecFromTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-hours-minutes-second-and-milliseconds'
|
||||
},
|
||||
SerializeJSONArray: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-serializejsonarray'
|
||||
},
|
||||
SerializeJSONObject: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-serializejsonobject'
|
||||
},
|
||||
SerializeJSONProperty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-serializejsonproperty'
|
||||
},
|
||||
Set: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-set-o-p-v-throw'
|
||||
},
|
||||
SetDefaultGlobalBindings: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-setdefaultglobalbindings'
|
||||
},
|
||||
SetFunctionName: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-setfunctionname'
|
||||
},
|
||||
SetIntegrityLevel: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-setintegritylevel'
|
||||
},
|
||||
SetRealmGlobalObject: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-setrealmglobalobject'
|
||||
},
|
||||
SetValueInBuffer: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-setvalueinbuffer'
|
||||
},
|
||||
SetViewValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-setviewvalue'
|
||||
},
|
||||
SortCompare: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-sortcompare'
|
||||
},
|
||||
SpeciesConstructor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-speciesconstructor'
|
||||
},
|
||||
SplitMatch: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-splitmatch'
|
||||
},
|
||||
'Strict Equality Comparison': {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-strict-equality-comparison'
|
||||
},
|
||||
StringCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-stringcreate'
|
||||
},
|
||||
SymbolDescriptiveString: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-symboldescriptivestring'
|
||||
},
|
||||
TestIntegrityLevel: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-testintegritylevel'
|
||||
},
|
||||
thisBooleanValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-thisbooleanvalue'
|
||||
},
|
||||
thisNumberValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-properties-of-the-number-prototype-object'
|
||||
},
|
||||
thisStringValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-properties-of-the-string-prototype-object'
|
||||
},
|
||||
thisTimeValue: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-properties-of-the-date-prototype-object'
|
||||
},
|
||||
TimeClip: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-timeclip'
|
||||
},
|
||||
TimeFromYear: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-year-number'
|
||||
},
|
||||
TimeWithinDay: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-day-number-and-time-within-day'
|
||||
},
|
||||
ToBoolean: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-toboolean'
|
||||
},
|
||||
ToDateString: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-todatestring'
|
||||
},
|
||||
ToInt16: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-toint16'
|
||||
},
|
||||
ToInt32: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-toint32'
|
||||
},
|
||||
ToInt8: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-toint8'
|
||||
},
|
||||
ToInteger: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-tointeger'
|
||||
},
|
||||
ToLength: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-tolength'
|
||||
},
|
||||
ToNumber: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-tonumber'
|
||||
},
|
||||
ToObject: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-toobject'
|
||||
},
|
||||
TopLevelModuleEvaluationJob: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-toplevelmoduleevaluationjob'
|
||||
},
|
||||
ToPrimitive: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-toprimitive'
|
||||
},
|
||||
ToPropertyDescriptor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-topropertydescriptor'
|
||||
},
|
||||
ToPropertyKey: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-topropertykey'
|
||||
},
|
||||
ToString: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-tostring'
|
||||
},
|
||||
'ToString Applied to the Number Type': {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-tostring-applied-to-the-number-type'
|
||||
},
|
||||
ToUint16: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-touint16'
|
||||
},
|
||||
ToUint32: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-touint32'
|
||||
},
|
||||
ToUint8: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-touint8'
|
||||
},
|
||||
ToUint8Clamp: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-touint8clamp'
|
||||
},
|
||||
TriggerPromiseReactions: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-triggerpromisereactions'
|
||||
},
|
||||
Type: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-ecmascript-data-types-and-values'
|
||||
},
|
||||
TypedArrayCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#typedarray-create'
|
||||
},
|
||||
TypedArraySpeciesCreate: {
|
||||
url: 'https://262.ecma-international.org/7.0/#typedarray-species-create'
|
||||
},
|
||||
UpdateEmpty: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-updateempty'
|
||||
},
|
||||
UTC: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-utc-t'
|
||||
},
|
||||
UTF16Decode: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-utf16decode'
|
||||
},
|
||||
UTF16Encoding: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-utf16encoding'
|
||||
},
|
||||
ValidateAndApplyPropertyDescriptor: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-validateandapplypropertydescriptor'
|
||||
},
|
||||
ValidateTypedArray: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-validatetypedarray'
|
||||
},
|
||||
WeekDay: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-week-day'
|
||||
},
|
||||
YearFromTime: {
|
||||
url: 'https://262.ecma-international.org/7.0/#sec-year-number'
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,53 @@
|
||||
export default class Pages {
|
||||
pageNumber;
|
||||
rowCount;
|
||||
rowsPerPage;
|
||||
triggerChange;
|
||||
pages;
|
||||
constructor(context) {
|
||||
this.pageNumber = context.pageNumber;
|
||||
this.rowCount = context.rowCount;
|
||||
this.rowsPerPage = context.rowsPerPage;
|
||||
this.triggerChange = context.triggerChange;
|
||||
this.pages = context.pages;
|
||||
}
|
||||
get() {
|
||||
return this.pages;
|
||||
}
|
||||
goTo(number) {
|
||||
this.pageNumber.update(store => {
|
||||
const $rowsPerPage = this.getRowsPerPage();
|
||||
if ($rowsPerPage) {
|
||||
const $rowsTotal = this.getTotalRowCout();
|
||||
if (number >= 1 && number <= Math.ceil($rowsTotal / $rowsPerPage)) {
|
||||
store = number;
|
||||
this.triggerChange.update(store => { return store + 1; });
|
||||
}
|
||||
}
|
||||
return store;
|
||||
});
|
||||
}
|
||||
previous() {
|
||||
const number = this.getPageNumber() - 1;
|
||||
this.goTo(number);
|
||||
}
|
||||
next() {
|
||||
const number = this.getPageNumber() + 1;
|
||||
this.goTo(number);
|
||||
}
|
||||
getPageNumber() {
|
||||
let value = 1;
|
||||
this.pageNumber.subscribe(store => value = store);
|
||||
return value;
|
||||
}
|
||||
getTotalRowCout() {
|
||||
let value = 0;
|
||||
this.rowCount.subscribe(store => value = store.total);
|
||||
return value;
|
||||
}
|
||||
getRowsPerPage() {
|
||||
let value = null;
|
||||
this.rowsPerPage.subscribe(store => value = store);
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
/** Used to compose unicode character classes. */
|
||||
var rsAstralRange = '\\ud800-\\udfff',
|
||||
rsComboMarksRange = '\\u0300-\\u036f',
|
||||
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
||||
rsComboSymbolsRange = '\\u20d0-\\u20ff',
|
||||
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
|
||||
rsVarRange = '\\ufe0e\\ufe0f';
|
||||
|
||||
/** Used to compose unicode capture groups. */
|
||||
var rsAstral = '[' + rsAstralRange + ']',
|
||||
rsCombo = '[' + rsComboRange + ']',
|
||||
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
||||
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
||||
rsNonAstral = '[^' + rsAstralRange + ']',
|
||||
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
||||
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
||||
rsZWJ = '\\u200d';
|
||||
|
||||
/** Used to compose unicode regexes. */
|
||||
var reOptMod = rsModifier + '?',
|
||||
rsOptVar = '[' + rsVarRange + ']?',
|
||||
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
||||
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
||||
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
||||
|
||||
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
||||
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
||||
|
||||
/**
|
||||
* Converts a Unicode `string` to an array.
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to convert.
|
||||
* @returns {Array} Returns the converted array.
|
||||
*/
|
||||
function unicodeToArray(string) {
|
||||
return string.match(reUnicode) || [];
|
||||
}
|
||||
|
||||
module.exports = unicodeToArray;
|
||||
@@ -0,0 +1,117 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [3.4.0](https://github.com/grid-js/gridjs/compare/3.3.0...3.4.0) (2021-03-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* MessageRow should only consider the visible columns ([1f8f3a8](https://github.com/grid-js/gridjs/commit/1f8f3a8bbbf4fbf8dda49377ad1f00c529560e90))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* adding th content element ([d2df219](https://github.com/grid-js/gridjs/commit/d2df219c8b7981ff6958c1a2c5f7577c9bb6d532))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [3.3.0](https://github.com/grid-js/gridjs/compare/3.2.2...3.3.0) (2021-02-07)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* adding tr className to the config object ([8265d10](https://github.com/grid-js/gridjs/commit/8265d1099d1c0c3bd8444935aa95f1b18def8b11))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.2.2](https://github.com/grid-js/gridjs/compare/3.2.1...3.2.2) (2021-01-15)
|
||||
|
||||
**Note:** Version bump only for package gridjs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.2.1](https://github.com/grid-js/gridjs/compare/3.2.0...3.2.1) (2021-01-01)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* MessageRow click won't trigger rowClick event ([5e13468](https://github.com/grid-js/gridjs/commit/5e13468691a897d9e6dcff67355c11ad8f659178))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [3.2.0](https://github.com/grid-js/gridjs/compare/3.1.0...3.2.0) (2020-12-14)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **grid:** extending className config and improving the pagination plugin a11y ([c4aa44d](https://github.com/grid-js/gridjs/commit/c4aa44d91a7285456bcc7f59a12fcfb426faa095))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [3.1.0](https://github.com/grid-js/gridjs/compare/3.0.2...3.1.0) (2020-12-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* using createRef instead of useRef in header and footer ([64b2371](https://github.com/grid-js/gridjs/commit/64b2371ad12b51a9e79cd353ed6b2a1b73681705))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.2](https://github.com/grid-js/gridjs/compare/3.0.1...3.0.2) (2020-11-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **sort:** button background-color ([c8838a0](https://github.com/grid-js/gridjs/commit/c8838a0b4fd146d750e903f5659df9e87c9beb7d))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.1](https://github.com/grid-js/gridjs/compare/3.0.0-alpha.2...3.0.1) (2020-11-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **sort:** button width and height ([95a1221](https://github.com/grid-js/gridjs/commit/95a1221f74447d5c4b2ffa00268ea1d79cdd04cc))
|
||||
* **sort:** using SVG icons and fixing the border issue ([94ba245](https://github.com/grid-js/gridjs/commit/94ba245a8750baaab25ade1b1a1f14f2e06272f1))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [3.0.0-alpha.2](https://github.com/grid-js/gridjs/compare/3.0.0-alpha.1...3.0.0-alpha.2) (2020-11-08)
|
||||
|
||||
**Note:** Version bump only for package gridjs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [3.0.0-alpha.1](https://github.com/grid-js/gridjs/compare/2.1.0...3.0.0-alpha.1) (2020-11-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plugin:** PluginRenderer should either accept PluginID or PluginPosition ([a95bba1](https://github.com/grid-js/gridjs/commit/a95bba1823fa56c48e0145aeb5aef9e2001940d7))
|
||||
* removing the checkbox plugin from gridjs ([a88a91b](https://github.com/grid-js/gridjs/commit/a88a91bb4181d903eba10fd479c7078c18aa086d))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **row:** adding cell(index: number) function ([c15ed37](https://github.com/grid-js/gridjs/commit/c15ed378ce59f9683b93f53db9c2273ecad93cc7))
|
||||
* adding Lerna ([f1a0563](https://github.com/grid-js/gridjs/commit/f1a0563d791f2d14ec54431ae111dc32e9eeda3c))
|
||||
@@ -0,0 +1,7 @@
|
||||
export var performanceTimestampProvider = {
|
||||
now: function () {
|
||||
return (performanceTimestampProvider.delegate || performance).now();
|
||||
},
|
||||
delegate: undefined,
|
||||
};
|
||||
//# sourceMappingURL=performanceTimestampProvider.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"@types/clean-css","version":"4.2.6","files":{"LICENSE":{"checkedAt":1678883669855,"integrity":"sha512-HQaIQk9pwOcyKutyDk4o2a87WnotwYuLGYFW43emGm4FvIJFKPyg+OYaw5sTegKAKf+C5SKa1ACjzCLivbaHrQ==","mode":511,"size":1141},"README.md":{"checkedAt":1678883669855,"integrity":"sha512-FsYoyZk/NfliM5LvPiQKrNTYt/VXIOfHPyUE+1L40ASVrVNd8PqYiad6E331nhOrPCQWLhnaJ/6n8VjLtIQ/MA==","mode":511,"size":665},"index.d.ts":{"checkedAt":1678883669855,"integrity":"sha512-MPuajyVPYTyhaOEPAm9a7b1hgkGceF8yrE1F7oc5Gzefk9BxpLy/KeCRCUFTE+ln4KorPTyVzgfC9BlqD8H5GQ==","mode":511,"size":22608},"package.json":{"checkedAt":1678883669856,"integrity":"sha512-fUf8SgPlyizfKGvvRx/rr/PeltDN67XnO7IheTiTWzgHcs12RcSsb/wUr8cFdQf4hNRzW7ySO+2mWxqP7nIMuw==","mode":511,"size":1009}}}
|
||||
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Tests to see if the object is "thennable".
|
||||
* @param value the object to test
|
||||
*/
|
||||
export declare function isPromise(value: any): value is PromiseLike<any>;
|
||||
//# sourceMappingURL=isPromise.d.ts.map
|
||||
Reference in New Issue
Block a user