docs: 仓库链接指向本镜像仓库
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s

This commit is contained in:
TanTan committed 2026-11-13 09:25:58 +08:00
1 parent f954252a34
commit e311ca3275
35554 files changed
+6229626 -4

No files matched your search

@@ -0,0 +1,14 @@
/**
* The base implementation of `_.propertyOf` without support for deep paths.
*
* @private
* @param {Object} object The object to query.
* @returns {Function} Returns the new accessor function.
*/
function basePropertyOf(object) {
return function(key) {
return object == null ? undefined : object[key];
};
}
module.exports = basePropertyOf;
@@ -0,0 +1,334 @@
import {
colorVariants
} from "./chunk-GQT3YUX3.mjs";
import {
tv
} from "./chunk-UWE6H66T.mjs";
// src/components/alert.ts
var alert = tv({
slots: {
base: "flex flex-grow flex-row w-full items-start py-3 px-4 gap-x-1",
mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit justify-center",
title: "text-small w-full font-medium block text-inherit leading-5",
description: "pl-[1px] text-small font-normal text-inherit",
closeButton: "relative text-inherit translate-x-1 -translate-y-1",
iconWrapper: "flex-none relative w-9 h-9 rounded-full grid place-items-center",
alertIcon: "fill-current w-6 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"
},
variants: {
color: {
default: {},
primary: {},
secondary: {},
success: {},
warning: {},
danger: {}
},
variant: {
solid: {},
flat: {},
faded: {
base: "border-small"
},
bordered: {
base: "border-small bg-transparent"
}
},
radius: {
none: {
base: "rounded-none"
},
sm: {
base: "rounded-small"
},
md: {
base: "rounded-medium"
},
lg: {
base: "rounded-large"
},
full: {
base: "rounded-full"
}
},
hideIcon: {
true: {
iconWrapper: "hidden"
}
},
hideIconWrapper: {
true: {
base: "gap-x-0",
iconWrapper: "!bg-transparent !shadow-none !border-none"
}
},
hasContent: {
false: {
base: "items-start",
mainWrapper: "justify-center items-center"
}
}
},
defaultVariants: {
color: "default",
variant: "flat",
radius: "md",
hideIcon: false,
hideIconWrapper: false
},
compoundVariants: [
{
variant: "solid",
color: "default",
class: {
base: colorVariants.solid.default,
closeButton: "data-[hover]:bg-default-100",
alertIcon: "text-default-foreground"
}
},
{
variant: "solid",
color: "primary",
class: {
base: colorVariants.solid.primary
}
},
{
variant: "solid",
color: "secondary",
class: {
base: colorVariants.solid.secondary
}
},
{
variant: "solid",
color: "success",
class: {
base: colorVariants.solid.success
}
},
{
variant: "solid",
color: "warning",
class: {
base: colorVariants.solid.warning
}
},
{
variant: "solid",
color: "danger",
class: {
base: colorVariants.solid.danger
}
},
{
variant: ["flat", "faded"],
color: "default",
class: {
base: [
colorVariants.flat.default,
"bg-default-100 dark:bg-default-50/50",
"text-default-foreground"
],
description: "text-default-600",
closeButton: "text-default-400",
iconWrapper: "bg-default-50 dark:bg-default-100 border-default-200"
}
},
{
variant: ["flat", "faded"],
color: "primary",
class: {
base: [colorVariants.flat.primary, "bg-primary-50 dark:bg-primary-50/50"],
closeButton: "text-primary-500 data-[hover]:bg-primary-200",
iconWrapper: "bg-primary-50 dark:bg-primary-100 border-primary-100"
}
},
{
variant: ["flat", "faded"],
color: "secondary",
class: {
base: [colorVariants.flat.secondary, "bg-secondary-50 dark:bg-secondary-50/50"],
closeButton: "text-secondary-500 data-[hover]:bg-secondary-200",
iconWrapper: "bg-secondary-50 dark:bg-secondary-100 border-secondary-100"
}
},
{
variant: ["flat", "faded"],
color: "success",
class: {
base: [colorVariants.flat.success, "bg-success-50 dark:bg-success-50/50"],
closeButton: "text-success-500 data-[hover]:bg-success-200",
iconWrapper: "bg-success-50 dark:bg-success-100 border-success-100"
}
},
{
variant: ["flat", "faded"],
color: "warning",
class: {
base: [colorVariants.flat.warning, "bg-warning-50 dark:bg-warning-50/50"],
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
iconWrapper: "bg-warning-50 dark:bg-warning-100 border-warning-100"
}
},
{
variant: ["flat", "faded"],
color: "danger",
class: {
base: [colorVariants.flat.danger, "bg-danger-50 dark:bg-danger-50/50"],
closeButton: "text-danger-500 data-[hover]:bg-danger-200",
iconWrapper: "bg-danger-50 dark:bg-danger-100 border-danger-100"
}
},
{
variant: "faded",
color: "default",
class: {
base: "border-default-300 dark:border-default-200"
}
},
{
variant: "faded",
color: "primary",
class: {
base: "border-primary-200 dark:border-primary-100"
}
},
{
variant: "faded",
color: "secondary",
class: {
base: "border-secondary-200"
}
},
{
variant: "faded",
color: "success",
class: {
base: "border-success-300 dark:border-success-100"
}
},
{
variant: "faded",
color: "warning",
class: {
base: "border-warning-300 dark:border-warning-100"
}
},
{
variant: "faded",
color: "danger",
class: {
base: "border-danger-200 dark:border-danger-100"
}
},
{
variant: "bordered",
color: "default",
class: {
base: [colorVariants.bordered.default],
description: "text-default-600",
closeButton: "text-default-400"
}
},
{
variant: "bordered",
color: "primary",
class: {
base: [colorVariants.bordered.primary],
closeButton: "data-[hover]:bg-primary-50"
}
},
{
variant: "bordered",
color: "secondary",
class: {
base: [colorVariants.bordered.secondary],
closeButton: "data-[hover]:bg-secondary-50"
}
},
{
variant: "bordered",
color: "success",
class: {
base: [colorVariants.bordered.success],
closeButton: "data-[hover]:bg-success-50"
}
},
{
variant: "bordered",
color: "warning",
class: {
base: [colorVariants.bordered.warning],
closeButton: "data-[hover]:bg-warning-100"
}
},
{
variant: "bordered",
color: "danger",
class: {
base: [colorVariants.bordered.danger],
closeButton: "data-[hover]:bg-danger-50"
}
},
{
variant: ["flat", "bordered", "faded"],
class: {
iconWrapper: "shadow-small"
}
},
{
variant: ["flat", "faded"],
class: {
iconWrapper: "shadow-small border-1"
}
},
{
variant: "bordered",
color: "default",
class: {
iconWrapper: "bg-default-200 dark:bg-default-100"
}
},
{
variant: "bordered",
color: "primary",
class: {
iconWrapper: "bg-primary-100 dark:bg-primary-50"
}
},
{
variant: "bordered",
color: "secondary",
class: {
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
}
},
{
variant: "bordered",
color: "success",
class: {
iconWrapper: "bg-success-100 dark:bg-success-50"
}
},
{
variant: "bordered",
color: "warning",
class: {
iconWrapper: "bg-warning-100 dark:bg-warning-50"
}
},
{
variant: "bordered",
color: "danger",
class: {
iconWrapper: "bg-danger-100 dark:bg-danger-50"
}
}
]
});
export {
alert
};
@@ -0,0 +1,35 @@
/**
* @import {IndentLines} from '../types.js'
*/
const eol = /\r?\n|\r/g
/**
* @type {IndentLines}
*/
export function indentLines(value, map) {
/** @type {Array<string>} */
const result = []
let start = 0
let line = 0
/** @type {RegExpExecArray | null} */
let match
while ((match = eol.exec(value))) {
one(value.slice(start, match.index))
result.push(match[0])
start = match.index + match[0].length
line++
}
one(value.slice(start))
return result.join('')
/**
* @param {string} value
*/
function one(value) {
result.push(map(value, line, !value))
}
}
@@ -0,0 +1,35 @@
/**
* index.js: Default settings for all levels that winston knows about.
*
* (C) 2010 Charlie Robbins
* MIT LICENCE
*/
'use strict';
const logform = require('logform');
const { configs } = require('triple-beam');
/**
* Export config set for the CLI.
* @type {Object}
*/
exports.cli = logform.levels(configs.cli);
/**
* Export config set for npm.
* @type {Object}
*/
exports.npm = logform.levels(configs.npm);
/**
* Export config set for the syslog.
* @type {Object}
*/
exports.syslog = logform.levels(configs.syslog);
/**
* Hoist addColors from logform where it was refactored into in winston@3.
* @type {Object}
*/
exports.addColors = logform.levels;
@@ -0,0 +1,21 @@
import * as MappingEntry from "./mapping-entry";
import * as Filesystem from "./filesystem";
/**
* Function that can match a path async
*/
export interface MatchPathAsync {
(requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: ReadonlyArray<string> | undefined, callback: MatchPathAsyncCallback): void;
}
export interface MatchPathAsyncCallback {
(err?: Error, path?: string): void;
}
/**
* See the sync version for docs.
*/
export declare function createMatchPathAsync(absoluteBaseUrl: string, paths: {
[key: string]: Array<string>;
}, mainFields?: string[], addMatchAll?: boolean): MatchPathAsync;
/**
* See the sync version for docs.
*/
export declare function matchFromAbsolutePathsAsync(absolutePathMappings: ReadonlyArray<MappingEntry.MappingEntry>, requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: readonly string[] | undefined, callback: MatchPathAsyncCallback, mainFields?: string[]): void;
@@ -0,0 +1,7 @@
/**
* The smallest way to encode a character.
*
* @param {number} code
* @returns {string}
*/
export function formatBasic(code: number): string;
@@ -0,0 +1,118 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.es5 = void 0;
const base_config_1 = require("./base-config");
const decorators_1 = require("./decorators");
const decorators_legacy_1 = require("./decorators.legacy");
exports.es5 = {
libs: [decorators_1.decorators, decorators_legacy_1.decorators_legacy],
variables: [
['Symbol', base_config_1.TYPE],
['PropertyKey', base_config_1.TYPE],
['PropertyDescriptor', base_config_1.TYPE],
['PropertyDescriptorMap', base_config_1.TYPE],
['Object', base_config_1.TYPE_VALUE],
['ObjectConstructor', base_config_1.TYPE],
['Function', base_config_1.TYPE_VALUE],
['FunctionConstructor', base_config_1.TYPE],
['ThisParameterType', base_config_1.TYPE],
['OmitThisParameter', base_config_1.TYPE],
['CallableFunction', base_config_1.TYPE],
['NewableFunction', base_config_1.TYPE],
['IArguments', base_config_1.TYPE],
['String', base_config_1.TYPE_VALUE],
['StringConstructor', base_config_1.TYPE],
['Boolean', base_config_1.TYPE_VALUE],
['BooleanConstructor', base_config_1.TYPE],
['Number', base_config_1.TYPE_VALUE],
['NumberConstructor', base_config_1.TYPE],
['TemplateStringsArray', base_config_1.TYPE],
['ImportMeta', base_config_1.TYPE],
['ImportCallOptions', base_config_1.TYPE],
['ImportAssertions', base_config_1.TYPE],
['ImportAttributes', base_config_1.TYPE],
['Math', base_config_1.TYPE_VALUE],
['Date', base_config_1.TYPE_VALUE],
['DateConstructor', base_config_1.TYPE],
['RegExpMatchArray', base_config_1.TYPE],
['RegExpExecArray', base_config_1.TYPE],
['RegExp', base_config_1.TYPE_VALUE],
['RegExpConstructor', base_config_1.TYPE],
['Error', base_config_1.TYPE_VALUE],
['ErrorConstructor', base_config_1.TYPE],
['EvalError', base_config_1.TYPE_VALUE],
['EvalErrorConstructor', base_config_1.TYPE],
['RangeError', base_config_1.TYPE_VALUE],
['RangeErrorConstructor', base_config_1.TYPE],
['ReferenceError', base_config_1.TYPE_VALUE],
['ReferenceErrorConstructor', base_config_1.TYPE],
['SyntaxError', base_config_1.TYPE_VALUE],
['SyntaxErrorConstructor', base_config_1.TYPE],
['TypeError', base_config_1.TYPE_VALUE],
['TypeErrorConstructor', base_config_1.TYPE],
['URIError', base_config_1.TYPE_VALUE],
['URIErrorConstructor', base_config_1.TYPE],
['JSON', base_config_1.TYPE_VALUE],
['ReadonlyArray', base_config_1.TYPE],
['ConcatArray', base_config_1.TYPE],
['Array', base_config_1.TYPE_VALUE],
['ArrayConstructor', base_config_1.TYPE],
['TypedPropertyDescriptor', base_config_1.TYPE],
['PromiseConstructorLike', base_config_1.TYPE],
['PromiseLike', base_config_1.TYPE],
['Promise', base_config_1.TYPE],
['Awaited', base_config_1.TYPE],
['ArrayLike', base_config_1.TYPE],
['Partial', base_config_1.TYPE],
['Required', base_config_1.TYPE],
['Readonly', base_config_1.TYPE],
['Pick', base_config_1.TYPE],
['Record', base_config_1.TYPE],
['Exclude', base_config_1.TYPE],
['Extract', base_config_1.TYPE],
['Omit', base_config_1.TYPE],
['NonNullable', base_config_1.TYPE],
['Parameters', base_config_1.TYPE],
['ConstructorParameters', base_config_1.TYPE],
['ReturnType', base_config_1.TYPE],
['InstanceType', base_config_1.TYPE],
['Uppercase', base_config_1.TYPE],
['Lowercase', base_config_1.TYPE],
['Capitalize', base_config_1.TYPE],
['Uncapitalize', base_config_1.TYPE],
['NoInfer', base_config_1.TYPE],
['ThisType', base_config_1.TYPE],
['WeakKeyTypes', base_config_1.TYPE],
['WeakKey', base_config_1.TYPE],
['ArrayBuffer', base_config_1.TYPE_VALUE],
['ArrayBufferTypes', base_config_1.TYPE],
['ArrayBufferLike', base_config_1.TYPE],
['ArrayBufferConstructor', base_config_1.TYPE],
['ArrayBufferView', base_config_1.TYPE],
['DataView', base_config_1.TYPE_VALUE],
['DataViewConstructor', base_config_1.TYPE],
['Int8Array', base_config_1.TYPE_VALUE],
['Int8ArrayConstructor', base_config_1.TYPE],
['Uint8Array', base_config_1.TYPE_VALUE],
['Uint8ArrayConstructor', base_config_1.TYPE],
['Uint8ClampedArray', base_config_1.TYPE_VALUE],
['Uint8ClampedArrayConstructor', base_config_1.TYPE],
['Int16Array', base_config_1.TYPE_VALUE],
['Int16ArrayConstructor', base_config_1.TYPE],
['Uint16Array', base_config_1.TYPE_VALUE],
['Uint16ArrayConstructor', base_config_1.TYPE],
['Int32Array', base_config_1.TYPE_VALUE],
['Int32ArrayConstructor', base_config_1.TYPE],
['Uint32Array', base_config_1.TYPE_VALUE],
['Uint32ArrayConstructor', base_config_1.TYPE],
['Float32Array', base_config_1.TYPE_VALUE],
['Float32ArrayConstructor', base_config_1.TYPE],
['Float64Array', base_config_1.TYPE_VALUE],
['Float64ArrayConstructor', base_config_1.TYPE],
['Intl', base_config_1.TYPE_VALUE],
],
};
@@ -0,0 +1,39 @@
'use strict';
var test = require('tape');
var inspect = require('object-inspect');
var forEach = require('for-each');
var v = require('es-value-fixtures');
var availableTypedArrays = require('available-typed-arrays')();
var isSharedArrayBuffer = require('..');
test('isSharedArrayBuffer', function (t) {
t.equal(typeof isSharedArrayBuffer, 'function', 'is a function');
// @ts-expect-error TS sucks with concat
var nonSABs = [].concat(v.primitives, v.objects);
forEach(nonSABs, function (nonSAB) {
t.equal(isSharedArrayBuffer(nonSAB), false, inspect(nonSAB) + ' is not a SharedArrayBuffer');
});
t.test('actual SharedArrayBuffer instances', { skip: typeof SharedArrayBuffer === 'undefined' }, function (st) {
var sab = new SharedArrayBuffer(0);
st.equal(isSharedArrayBuffer(sab), true, inspect(sab) + ' is a SharedArrayBuffer');
st.end();
});
t.test('Typed Arrays', { skip: availableTypedArrays.length === 0 }, function (st) {
forEach(availableTypedArrays, function (TypedArray) {
var ta = new global[TypedArray](0);
st.equal(isSharedArrayBuffer(ta.buffer), false, inspect(ta.buffer) + ', the TA\'s buffer, is not a SharedArrayBuffer');
st.equal(isSharedArrayBuffer(ta), false, inspect(ta) + ' is not a SharedArrayBuffer');
});
st.end();
});
t.end();
});
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Timo Lins
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,34 @@
base64-js
=========
`base64-js` does basic base64 encoding/decoding in pure JS.
[![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js)
Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.
Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.
## install
With [npm](https://npmjs.org) do:
`npm install base64-js` and `var base64js = require('base64-js')`
For use in web browsers do:
`<script src="base64js.min.js"></script>`
[Get supported base64-js with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-base64-js?utm_source=npm-base64-js&utm_medium=referral&utm_campaign=readme)
## methods
`base64js` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument.
* `byteLength` - Takes a base64 string and returns length of byte array
* `toByteArray` - Takes a base64 string and returns a byte array
* `fromByteArray` - Takes a byte array and returns a base64 string
## license
MIT
@@ -0,0 +1,7 @@
import * as react_jsx_runtime from 'react/jsx-runtime';
import { IconSvgProps } from './types.mjs';
import 'react';
declare const SearchIcon: (props: IconSvgProps) => react_jsx_runtime.JSX.Element;
export { SearchIcon };
@@ -0,0 +1,18 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./recursive"), exports);
@@ -0,0 +1,20 @@
'use strict';
function posix(path) {
return path.charAt(0) === '/';
}
function win32(path) {
// https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
var result = splitDeviceRe.exec(path);
var device = result[1] || '';
var isUnc = Boolean(device && device.charAt(1) !== ':');
// UNC paths are always absolute
return Boolean(result[2] || isUnc);
}
module.exports = process.platform === 'win32' ? win32 : posix;
module.exports.posix = posix;
module.exports.win32 = win32;
@@ -0,0 +1,18 @@
declare const _default: {
plugins: ["import-x"];
rules: {
'import-x/no-unresolved': "error";
'import-x/named': "error";
'import-x/namespace': "error";
'import-x/default': "error";
'import-x/export': "error";
'import-x/no-named-as-default': "warn";
'import-x/no-named-as-default-member': "warn";
'import-x/no-duplicates': "warn";
};
parserOptions: {
sourceType: "module";
ecmaVersion: 2018;
};
};
export default _default;
@@ -0,0 +1,3 @@
import CryptoJS = require("./index");
export = CryptoJS.pad.Iso97971;
@@ -0,0 +1,49 @@
const { NotCachedError } = require('./errors.js')
const CacheEntry = require('./entry.js')
const remote = require('../remote.js')
// do whatever is necessary to get a Response and return it
const cacheFetch = async (request, options) => {
// try to find a cached entry that satisfies this request
const entry = await CacheEntry.find(request, options)
if (!entry) {
// no cached result, if the cache mode is 'only-if-cached' that's a failure
if (options.cache === 'only-if-cached') {
throw new NotCachedError(request.url)
}
// otherwise, we make a request, store it and return it
const response = await remote(request, options)
const newEntry = new CacheEntry({ request, response, options })
return newEntry.store('miss')
}
// we have a cached response that satisfies this request, however if the cache
// mode is 'no-cache' then we send the revalidation request no matter what
if (options.cache === 'no-cache') {
return entry.revalidate(request, options)
}
// if the cached entry is not stale, or if the cache mode is 'force-cache' or
// 'only-if-cached' we can respond with the cached entry. set the status
// based on the result of needsRevalidation and respond
const _needsRevalidation = entry.policy.needsRevalidation(request)
if (options.cache === 'force-cache' ||
options.cache === 'only-if-cached' ||
!_needsRevalidation) {
return entry.respond(request.method, options, _needsRevalidation ? 'stale' : 'hit')
}
// if we got here, the cache entry is stale so revalidate it
return entry.revalidate(request, options)
}
cacheFetch.invalidate = async (request, options) => {
if (!options.cachePath) {
return
}
return CacheEntry.invalidate(request, options)
}
module.exports = cacheFetch
@@ -0,0 +1,25 @@
var parallel = require('../parallel.js');
// API
module.exports = ReadableParallel;
/**
* Streaming wrapper to `asynckit.parallel`
*
* @param {array|object} list - array or object (named list) to iterate over
* @param {function} iterator - iterator to run
* @param {function} callback - invoked when all elements processed
* @returns {stream.Readable#}
*/
function ReadableParallel(list, iterator, callback)
{
if (!(this instanceof ReadableParallel))
{
return new ReadableParallel(list, iterator, callback);
}
// turn on object mode
ReadableParallel.super_.call(this, {objectMode: true});
this._start(parallel, list, iterator, callback);
}
@@ -0,0 +1,123 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.verifyAttestationAndroidKey = verifyAttestationAndroidKey;
const asn1_schema_1 = require("@peculiar/asn1-schema");
const asn1_x509_1 = require("@peculiar/asn1-x509");
const asn1_android_1 = require("@peculiar/asn1-android");
const convertCertBufferToPEM_js_1 = require("../../helpers/convertCertBufferToPEM.js");
const validateCertificatePath_js_1 = require("../../helpers/validateCertificatePath.js");
const verifySignature_js_1 = require("../../helpers/verifySignature.js");
const convertCOSEtoPKCS_js_1 = require("../../helpers/convertCOSEtoPKCS.js");
const cose_js_1 = require("../../helpers/cose.js");
const index_js_1 = require("../../helpers/iso/index.js");
const metadataService_js_1 = require("../../services/metadataService.js");
const verifyAttestationWithMetadata_js_1 = require("../../metadata/verifyAttestationWithMetadata.js");
/**
* Verify an attestation response with fmt 'android-key'
*/
async function verifyAttestationAndroidKey(options) {
const { authData, clientDataHash, attStmt, credentialPublicKey, aaguid, rootCertificates, } = options;
const x5c = attStmt.get('x5c');
const sig = attStmt.get('sig');
const alg = attStmt.get('alg');
if (!x5c) {
throw new Error('No attestation certificate provided in attestation statement (Android Key)');
}
if (!sig) {
throw new Error('No attestation signature provided in attestation statement (Android Key)');
}
if (!alg) {
throw new Error(`Attestation statement did not contain alg (Android Key)`);
}
if (!(0, cose_js_1.isCOSEAlg)(alg)) {
throw new Error(`Attestation statement contained invalid alg ${alg} (Android Key)`);
}
/**
* Verify that the public key in the first certificate in x5c matches the credentialPublicKey in
* the attestedCredentialData in authenticatorData.
*/
// Find the public cert in the certificate as PKCS
const parsedCert = asn1_schema_1.AsnParser.parse(x5c[0], asn1_x509_1.Certificate);
const parsedCertPubKey = new Uint8Array(parsedCert.tbsCertificate.subjectPublicKeyInfo.subjectPublicKey);
// Convert the credentialPublicKey to PKCS
const credPubKeyPKCS = (0, convertCOSEtoPKCS_js_1.convertCOSEtoPKCS)(credentialPublicKey);
if (!index_js_1.isoUint8Array.areEqual(credPubKeyPKCS, parsedCertPubKey)) {
throw new Error('Credential public key does not equal leaf cert public key (Android Key)');
}
/**
* Verify that the attestationChallenge field in the attestation certificate extension data is
* identical to clientDataHash.
*/
// Find Android KeyStore Extension in certificate extensions
const extKeyStore = parsedCert.tbsCertificate.extensions?.find((ext) => ext.extnID === asn1_android_1.id_ce_keyDescription);
if (!extKeyStore) {
throw new Error('Certificate did not contain extKeyStore (Android Key)');
}
const parsedExtKeyStore = asn1_schema_1.AsnParser.parse(extKeyStore.extnValue, asn1_android_1.KeyDescription);
// Verify extKeyStore values
const { attestationChallenge, teeEnforced, softwareEnforced } = parsedExtKeyStore;
if (!index_js_1.isoUint8Array.areEqual(new Uint8Array(attestationChallenge.buffer), clientDataHash)) {
throw new Error('Attestation challenge was not equal to client data hash (Android Key)');
}
/**
* The AuthorizationList.allApplications field is not present on either authorization list
* (softwareEnforced nor teeEnforced), since PublicKeyCredential MUST be scoped to the RP ID.
*
* (i.e. These shouldn't contain the [600] tag)
*/
if (teeEnforced.allApplications !== undefined) {
throw new Error('teeEnforced contained "allApplications [600]" tag (Android Key)');
}
if (softwareEnforced.allApplications !== undefined) {
throw new Error('teeEnforced contained "allApplications [600]" tag (Android Key)');
}
const statement = await metadataService_js_1.MetadataService.getStatement(aaguid);
if (statement) {
try {
await (0, verifyAttestationWithMetadata_js_1.verifyAttestationWithMetadata)({
statement,
credentialPublicKey,
x5c,
attestationStatementAlg: alg,
});
}
catch (err) {
const _err = err;
throw new Error(`${_err.message} (Android Key)`, { cause: _err });
}
}
else {
/**
* Verify that x5c contains a full certificate path.
*/
const x5cNoRootPEM = x5c.slice(0, -1).map(convertCertBufferToPEM_js_1.convertCertBufferToPEM);
const x5cRootPEM = x5c.slice(-1).map(convertCertBufferToPEM_js_1.convertCertBufferToPEM);
try {
await (0, validateCertificatePath_js_1.validateCertificatePath)(x5cNoRootPEM, x5cRootPEM);
}
catch (err) {
const _err = err;
throw new Error(`${_err.message} (Android Key)`, { cause: _err });
}
/**
* Make sure the root certificate is one of the Google Hardware Attestation Root certificates
*
* https://developer.android.com/privacy-and-security/security-key-attestation#root_certificate
*/
if (rootCertificates.length > 0 && rootCertificates.indexOf(x5cRootPEM[0]) < 0) {
throw new Error('x5c root certificate was not a known root certificate (Android Key)');
}
}
/**
* Verify that sig is a valid signature over the concatenation of authenticatorData and
* clientDataHash using the public key in the first certificate in x5c with the algorithm
* specified in alg.
*/
const signatureBase = index_js_1.isoUint8Array.concat([authData, clientDataHash]);
return (0, verifySignature_js_1.verifySignature)({
signature: sig,
data: signatureBase,
x509Certificate: x5c[0],
hashAlgorithm: alg,
});
}
@@ -0,0 +1,35 @@
{
"name": "@internationalized/string",
"version": "3.2.7",
"description": "Internationalized string formatting and locale negotiation",
"license": "Apache-2.0",
"main": "dist/main.js",
"module": "dist/module.js",
"exports": {
"source": "./src/index.ts",
"types": [
"./dist/types.d.ts",
"./src/index.ts"
],
"import": "./dist/import.mjs",
"require": "./dist/main.js"
},
"types": "dist/types.d.ts",
"source": "src/index.ts",
"files": [
"dist",
"src"
],
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/adobe/react-spectrum"
},
"dependencies": {
"@swc/helpers": "^0.5.0"
},
"publishConfig": {
"access": "public"
},
"gitHead": "265b4d7f107905ee1c6e87a8af1613ab440a6849"
}
@@ -0,0 +1,5 @@
import { Binding } from '../../binding/models/Binding';
export interface BaseBindingNode<TBinding extends Binding<any> = Binding<any>> {
readonly binding: TBinding;
}
//# sourceMappingURL=BaseBindingNode.d.ts.map
@@ -0,0 +1,143 @@
'use strict';
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
var util = require('util');
var _require = require('triple-beam'),
SPLAT = _require.SPLAT;
/**
* Captures the number of format (i.e. %s strings) in a given string.
* Based on `util.format`, see Node.js source:
* https://github.com/nodejs/node/blob/b1c8f15c5f169e021f7c46eb7b219de95fe97603/lib/util.js#L201-L230
* @type {RegExp}
*/
var formatRegExp = /%[scdjifoO%]/g;
/**
* Captures the number of escaped % signs in a format string (i.e. %s strings).
* @type {RegExp}
*/
var escapedPercent = /%%/g;
var Splatter = /*#__PURE__*/function () {
function Splatter(opts) {
_classCallCheck(this, Splatter);
this.options = opts;
}
/**
* Check to see if tokens <= splat.length, assign { splat, meta } into the
* `info` accordingly, and write to this instance.
*
* @param {Info} info Logform info message.
* @param {String[]} tokens Set of string interpolation tokens.
* @returns {Info} Modified info message
* @private
*/
return _createClass(Splatter, [{
key: "_splat",
value: function _splat(info, tokens) {
var msg = info.message;
var splat = info[SPLAT] || info.splat || [];
var percents = msg.match(escapedPercent);
var escapes = percents && percents.length || 0;
// The expected splat is the number of tokens minus the number of escapes
// e.g.
// - { expectedSplat: 3 } '%d %s %j'
// - { expectedSplat: 5 } '[%s] %d%% %d%% %s %j'
//
// Any "meta" will be arugments in addition to the expected splat size
// regardless of type. e.g.
//
// logger.log('info', '%d%% %s %j', 100, 'wow', { such: 'js' }, { thisIsMeta: true });
// would result in splat of four (4), but only three (3) are expected. Therefore:
//
// extraSplat = 3 - 4 = -1
// metas = [100, 'wow', { such: 'js' }, { thisIsMeta: true }].splice(-1, -1 * -1);
// splat = [100, 'wow', { such: 'js' }]
var expectedSplat = tokens.length - escapes;
var extraSplat = expectedSplat - splat.length;
var metas = extraSplat < 0 ? splat.splice(extraSplat, -1 * extraSplat) : [];
// Now that { splat } has been separated from any potential { meta }. we
// can assign this to the `info` object and write it to our format stream.
// If the additional metas are **NOT** objects or **LACK** enumerable properties
// you are going to have a bad time.
var metalen = metas.length;
if (metalen) {
for (var i = 0; i < metalen; i++) {
Object.assign(info, metas[i]);
}
}
info.message = util.format.apply(util, [msg].concat(_toConsumableArray(splat)));
return info;
}
/**
* Transforms the `info` message by using `util.format` to complete
* any `info.message` provided it has string interpolation tokens.
* If no tokens exist then `info` is immutable.
*
* @param {Info} info Logform info message.
* @param {Object} opts Options for this instance.
* @returns {Info} Modified info message
*/
}, {
key: "transform",
value: function transform(info) {
var msg = info.message;
var splat = info[SPLAT] || info.splat;
// No need to process anything if splat is undefined
if (!splat || !splat.length) {
return info;
}
// Extract tokens, if none available default to empty array to
// ensure consistancy in expected results
var tokens = msg && msg.match && msg.match(formatRegExp);
// This condition will take care of inputs with info[SPLAT]
// but no tokens present
if (!tokens && (splat || splat.length)) {
var metas = splat.length > 1 ? splat.splice(0) : splat;
// Now that { splat } has been separated from any potential { meta }. we
// can assign this to the `info` object and write it to our format stream.
// If the additional metas are **NOT** objects or **LACK** enumerable properties
// you are going to have a bad time.
var metalen = metas.length;
if (metalen) {
for (var i = 0; i < metalen; i++) {
Object.assign(info, metas[i]);
}
}
return info;
}
if (tokens) {
return this._splat(info, tokens);
}
return info;
}
}]);
}();
/*
* function splat (info)
* Returns a new instance of the splat format TransformStream
* which performs string interpolation from `info` objects. This was
* previously exposed implicitly in `winston < 3.0.0`.
*/
module.exports = function (opts) {
return new Splatter(opts);
};
@@ -0,0 +1 @@
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("style-vendorizer")):"function"==typeof define&&define.amd?define(["exports","style-vendorizer"],o):o((e||self).gooberPrefixer={},e.styleVendorizer)}(this,function(e,o){e.prefix=function(e,t){let s="";const i=o.cssPropertyAlias(e);i&&(s+=`${i}:${t};`);const r=o.cssPropertyPrefixFlags(e);1&r&&(s+=`-webkit-${e}:${t};`),2&r&&(s+=`-moz-${e}:${t};`),4&r&&(s+=`-ms-${e}:${t};`);const n=o.cssValuePrefixFlags(e,t);return 1&n?s+=`${e}:-webkit-${t};`:2&n?s+=`${e}:-moz-${t};`:4&n&&(s+=`${e}:-ms-${t};`),s+=`${e}:${t};`,s}});
@@ -0,0 +1,91 @@
import { GeneralCallResult } from '../services/common';
import { NodeIKernelBuddyListener } from '../listeners';
import { BuddyListReqType } from '../types/user';
export interface NodeIKernelBuddyService {
getBuddyListV2(callFrom: string, reqType: BuddyListReqType): Promise<GeneralCallResult & {
data: Array<{
categoryId: number;
categorySortId: number;
categroyName: string;
categroyMbCount: number;
onlineCount: number;
buddyUids: Array<string>;
}>;
}>;
getBuddyListV2(callFrom: string, isPullRefresh: boolean, reqType: BuddyListReqType): Promise<GeneralCallResult & {
data: Array<{
categoryId: number;
categorySortId: number;
categroyName: string;
categroyMbCount: number;
onlineCount: number;
buddyUids: Array<string>;
}>;
}>;
getBuddyListFromCache(reqType: BuddyListReqType): Promise<Array<{
categoryId: number;
categorySortId: number;
categroyName: string;
categroyMbCount: number;
onlineCount: number;
buddyUids: Array<string>;
}>>;
addKernelBuddyListener(listener: NodeIKernelBuddyListener): number;
getAllBuddyCount(): number;
removeKernelBuddyListener(listenerId: number): void;
getBuddyNick(uid: number): string;
getBuddyRemark(uid: number): string;
setBuddyRemark(param: {
uid: string;
remark: string;
signInfo?: unknown;
}): void;
getAvatarUrl(uid: number): string;
isBuddy(uid: string): boolean;
getCategoryNameWithUid(uid: number): string;
getTargetBuddySetting(uid: number): unknown;
getTargetBuddySettingByType(uid: number, type: number): unknown;
getBuddyReqUnreadCnt(): number;
getBuddyReq(): Promise<GeneralCallResult>;
delBuddyReq(uid: number): void;
clearBuddyReqUnreadCnt(): Promise<GeneralCallResult>;
reqToAddFriends(uid: number, msg: string): void;
setSpacePermission(uid: number, permission: number): void;
approvalFriendRequest(arg: {
friendUid: string;
reqTime: string;
accept: boolean;
}): Promise<void>;
delBuddy(param: {
friendUid: string;
tempBlock: boolean;
tempBothDel: boolean;
}): Promise<unknown>;
delBatchBuddy(uids: number[]): void;
getSmartInfos(uid: number): unknown;
setBuddyCategory(uid: number, category: number): void;
setBatchBuddyCategory(uids: number[], category: number): void;
addCategory(category: string): void;
delCategory(category: string): void;
renameCategory(oldCategory: string, newCategory: string): void;
resortCategory(categorys: string[]): void;
pullCategory(uid: number, category: string): void;
setTop(uid: number, isTop: boolean): void;
SetSpecialCare(uid: number, isSpecialCare: boolean): void;
setMsgNotify(uid: number, isNotify: boolean): void;
hasBuddyList(): boolean;
setBlock(uid: number, isBlock: boolean): void;
isBlocked(uid: number): boolean;
modifyAddMeSetting(setting: unknown): void;
getAddMeSetting(): unknown;
getDoubtBuddyReq(reqId: string, num: number, uk: string): Promise<GeneralCallResult>;
getDoubtBuddyUnreadNum(): number;
approvalDoubtBuddyReq(uid: string, str1: string, str2: string): void;
delDoubtBuddyReq(uid: number): void;
delAllDoubtBuddyReq(): Promise<GeneralCallResult>;
reportDoubtBuddyReqUnread(): void;
getBuddyRecommendContactArkJson(uid: string, phoneNumber: string): Promise<GeneralCallResult & {
arkMsg: string;
}>;
isNull(): boolean;
}
@@ -0,0 +1,625 @@
export default `flf2a$ 6 5 12 -1 11 0 7999 0
Author : LG Beard
Date : 2006/7/3 23:58:25
Version: 1.0
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
Have a look at: http://www.jave.de
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
$ #
$ #
$ #
$ #
$ #
$ ##
_ #
| | #
| | #
| | #
(_) #
##
"#
#
#
#
#
##
_ _ #
\\ \\\\ \\ _ #
[\\ \\\\ \\_] #
[_\\ \\\\ \\] #
\\_\\\\_\\ #
##
_ #
_.-./ \\ #
[/ _ \\ |] #
|_\\\`._/ #
#
##
_ #
_ / / #
(_)/ /_ #
/ /(_) #
/_/ #
##
&#
#
#
#
#
##
_ #
|_| #
#
#
#
##
__ #
/ _| #
/ / #
\\ \\_ #
\\__| #
##
__ #
|_ \\ #
\\ \\ #
_/ / #
|__/ #
##
*#
#
#
#
#
##
_ #
_| |_ #
|_ _| #
|_| #
#
##
#
#
#
_ #
)_/ #
##
#
____ #
[____] #
#
#
##
#
#
_ #
(_) #
#
##
_ #
/ / #
/ / #
/ / #
/_/ #
##
_____ #
.' ___ '. #
| (___) | #
'._____.' #
#
##
_ _ #
| /___\\ | #
\\______ | #
/_| #
#
##
_ __ #
| /_.\`_ | #
\\ .'| | #
\`-\` |_| #
#
##
_ _ #
/ \\ \\ \\ #
| //\\_| | #
\\_______/ #
#
##
__ #
/_ | #
//_||__ #
/__ __| #
|_| #
##
__ _ #
| \`._\\ | #
| |\`. / #
|_| '-' #
#
##
_______ #
|__ ___ \\ #
| \\_/ | #
\`,___,\` #
#
##
_ #
/ \\ #
| /_____ #
\\ ______/ #
#
##
__ __ #
.' '' '.#
| () () |#
'.__..__.'#
#
##
__ #
.\` _\`. #
| /_\\|__ #
\\_______| #
#
##
_ #
(_) #
#
_ #
(_) #
##
_ #
(_) #
#
_ #
)_/ #
##
<#
#
#
#
#
##
____ #
[____] #
____ #
[____] #
#
##
>#
#
#
#
#
##
__ #
.\`__/ #
/_'-. #
|_| #
(_) #
##
@#
#
#
#
#
##
______ #
.\` _ ._| #
\\ \\_||_ #
\`._____| #
#
##
_______ #
| | #
| o v o | #
'._.'._.' #
#
##
_______ #
/ _____ \\ #
| \\ / | #
\\_/ \\_/ #
#
##
_______ #
| ___ | #
| '._.' | #
'._____.' #
#
##
_______ #
| ._ _. | #
| \\ v / | #
|_/ \\_| #
#
##
_______ #
| _ ___| #
| ||_\\ #
|_/ #
#
##
_______ #
/ .---. \\ #
| \\ .-\`_/ #
\\_/ |.\` #
#
##
_______ #
\\__ __\\ #
__| |__ #
\\_______\\ #
#
##
_ _ #
| |___| | #
| ___ | #
|_| |_| #
#
##
_ __ #
| /___\\ \\ #
| ______/ #
|_\\ #
#
##
_______ #
|_ _| #
.\` _ \`. #
|_.\` \`._| #
#
##
_______ #
/______ \\ #
/ | #
\\_| #
#
##
_______ #
\`._ __| #
_< <__ #
/_______| #
#
##
_______ #
\`._ __| #
_\`. \`._ #
|_______| #
#
##
_______ #
/ ____ \\ #
| /___/ | #
\\_______/ #
#
##
_______ #
/ ___ __| #
| \\_/ | #
\`.___.\` #
#
##
_______ #
/ ____ \\#
| \\___\\ |#
\\_____\\_(#
#
##
_______ #
/ ___ _| #
| \\_/ \\ #
\`.__.\`\\_| #
#
##
__ #
.-. \\ \\ #
/ _ \\_\\ | #
|_\\\`.___/ #
#
##
_ #
| /_____ #
| ______/ #
|_\\ #
#
##
______ #
/_____ \`. #
_____\\ | #
\\______.\` #
#
##
_____ #
\`-.___ \\ #
____.\` | #
/______/ #
#
##
_______ #
\`._ __| #
_> >__ #
.\`______| #
#
##
_ _ #
\\_'._.'_/ #
_> _ <_ #
/_.' '._\\ #
#
##
_ #
|_\`.____ #
.\` .___| #
|_.\` #
#
##
_ _ #
| | .\` | #
| |.\`_. | #
|__.\` |_| #
#
##
___ #
| _| #
| | #
| |_ #
|___| #
##
_ #
\\ \\ #
\\ \\ #
\\ \\ #
\\_\\ #
##
___ #
|_ | #
| | #
_| | #
|___| #
##
__ #
/ \\ #
/_/\\_\\ #
#
#
##
#
#
#
#
________ #
[________]##
__ #
\\_\\ #
#
#
#
##
______ #
.\` _ ._| #
\\ \\_||_ #
\`._____| #
#
##
_______ #
| | #
| o v o | #
'._.'._.' #
#
##
_______ #
/ _____ \\ #
| \\ / | #
\\_/ \\_/ #
#
##
_______ #
| ___ | #
| '._.' | #
'._____.' #
#
##
_______ #
| ._ _. | #
| \\ v / | #
|_/ \\_| #
#
##
_______ #
| _ ___| #
| ||_\\ #
|_/ #
#
##
_______ #
/ .---. \\ #
| \\ .-\`_/ #
\\_/ |.\` #
#
##
_______ #
\\__ __\\ #
__| |__ #
\\_______\\ #
#
##
_ _ #
| |___| | #
| ___ | #
|_| |_| #
#
##
_ __ #
| /___\\ \\ #
| ______/ #
|_\\ #
#
##
_______ #
|_ _| #
.\` _ \`. #
|_.\` \`._| #
#
##
_______ #
/______ \\ #
/ | #
\\_| #
#
##
_______ #
\`._ __| #
_< <__ #
/_______| #
#
##
_______ #
\`._ __| #
_\`. \`._ #
|_______| #
#
##
_______ #
/ ____ \\ #
| /___/ | #
\\_______/ #
#
##
_______ #
/ ___ __| #
| \\_/ | #
\`.___.\` #
#
##
_______ #
/ ____ \\#
| \\___\\ |#
\\_____\\_(#
#
##
_______ #
/ ___ _| #
| \\_/ \\ #
\`.__.\`\\_| #
#
##
__ #
.-. \\ \\ #
/ _ \\_\\ | #
|_\\\`.___/ #
#
##
_ #
| /_____ #
| ______/ #
|_\\ #
#
##
______ #
/_____ \`. #
_____\\ | #
\\______.\` #
#
##
_____ #
\`-.___ \\ #
____.\` | #
/______/ #
#
##
_______ #
\`._ __| #
_> >__ #
.\`______| #
#
##
_ _ #
\\_'._.'_/ #
_> _ <_ #
/_.' '._\\ #
#
##
_ #
|_\`.____ #
.\` .___| #
|_.\` #
#
##
_ _ #
| | .\` | #
| |.\`_. | #
|__.\` |_| #
#
##
___ #
| _| #
/ | #
\\ |_ #
|___| #
##
_ #
| | #
| | #
| | #
|_| #
##
___ #
|_ | #
| \\ #
_| / #
|___| #
##
~#
#
#
#
#
##
______ #
.\` _ ._| #
\\ \\_||_ #
\`._____| #
#
##
_______ #
/ ____ \\ #
| /___/ | #
\\_______/ #
#
##
______ #
/_____ \`. #
_____\\ | #
\\______.\` #
#
##
______ #
.\` _ ._| #
\\ \\_||_ #
\`._____| #
#
##
_______ #
/ ____ \\ #
| /___/ | #
\\_______/ #
#
##
______ #
/_____ \`. #
_____\\ | #
\\______.\` #
#
##
�#
#
#
#
#
##
`
@@ -0,0 +1 @@
{"version":3,"names":["_OverloadYield","require","_wrapAsyncGenerator","fn","AsyncGenerator","apply","arguments","gen","front","back","send","key","arg","Promise","resolve","reject","request","next","resume","result","value","overloaded","OverloadYield","v","then","nextKey","k","done","settle","err","type","_invoke","undefined","prototype","Symbol","asyncIterator"],"sources":["../../src/helpers/wrapAsyncGenerator.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nimport OverloadYield from \"./OverloadYield.ts\";\n\nexport default function _wrapAsyncGenerator(fn: GeneratorFunction) {\n return function (this: any) {\n // Use \"arguments\" here for better compatibility and smaller bundle size\n return new AsyncGenerator(fn.apply(this, arguments as any));\n };\n}\n\n/* == The implementation of the AsyncGenerator class == */\n\ntype AsyncIteratorMethod = \"next\" | \"throw\" | \"return\";\n\ndeclare class AsyncGenerator<T = unknown, TReturn = any, TNext = unknown>\n implements globalThis.AsyncGenerator<T, TReturn, TNext>\n{\n _invoke: (\n key: AsyncIteratorMethod,\n arg: IteratorResult<T>,\n ) => Promise<IteratorResult<T, TReturn>>;\n\n constructor(gen: Generator<T, TReturn, TNext>);\n\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return(\n value: TReturn | PromiseLike<TReturn>,\n ): Promise<IteratorResult<T, TReturn>>;\n throw(e: any): Promise<IteratorResult<T, TReturn>>;\n [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;\n [Symbol.asyncDispose](): Promise<void>;\n}\n\ninterface AsyncGeneratorRequest<T = unknown, TReturn = any, TNext = unknown> {\n key: AsyncIteratorMethod;\n arg: IteratorResult<T>;\n resolve: (value: IteratorResult<T, TReturn>) => void;\n reject: (error: any) => void;\n next: AsyncGeneratorRequest<T, TReturn, TNext> | null;\n}\n\nfunction AsyncGenerator<T = unknown, TReturn = any, TNext = unknown>(\n this: AsyncGenerator<T, TReturn, TNext>,\n gen: Generator<T, TReturn, TNext>,\n) {\n var front: AsyncGeneratorRequest<T, TReturn, TNext> | null,\n back: AsyncGeneratorRequest<T, TReturn, TNext> | null;\n\n function send(key: AsyncIteratorMethod, arg: IteratorResult<T>) {\n return new Promise<IteratorResult<T, TReturn>>(function (resolve, reject) {\n var request: AsyncGeneratorRequest<T, TReturn, TNext> = {\n key: key,\n arg: arg,\n resolve: resolve,\n reject: reject,\n next: null,\n };\n\n if (back) {\n back = back.next = request;\n } else {\n front = back = request;\n resume(key, arg);\n }\n });\n }\n\n function resume(key: AsyncIteratorMethod, arg: IteratorResult<T, TReturn>) {\n try {\n var result = gen[key](arg);\n var value = result.value;\n var overloaded = value instanceof OverloadYield;\n\n Promise.resolve(\n overloaded ? (value as OverloadYield<T | TReturn>).v : value,\n ).then(\n function (arg: any) {\n if (overloaded) {\n // Overloaded yield requires calling into the generator twice:\n // - first we get the iterator result wrapped in a promise\n // (the gen[key](arg) call above)\n // - then we await it (the Promise.resolve call above)\n // - then we give the result back to the iterator, so that it can:\n // * if it was an await, use its result\n // * if it was a yield*, possibly return the `done: true` signal\n // so that yield* knows that the iterator is finished.\n // This needs to happen in the second call, because in the\n // first one `done: true` was hidden in the promise and thus\n // not visible to the (sync) yield*.\n // The other part of this implementation is in asyncGeneratorDelegate.\n var nextKey: \"return\" | \"next\" =\n key === \"return\" ? \"return\" : \"next\";\n if (\n !(value as OverloadYield<IteratorReturnResult<T>>).k ||\n arg.done\n ) {\n // await or end of yield*\n // eslint-disable-next-line @typescript-eslint/no-confusing-void-expression -- smaller bundle size\n return resume(nextKey, arg);\n } else {\n // yield*, not done\n arg = gen[nextKey](arg).value;\n }\n }\n\n settle(result.done ? \"return\" : \"normal\", arg);\n },\n function (err) {\n resume(\"throw\", err);\n },\n );\n } catch (err) {\n settle(\"throw\", err);\n }\n }\n\n function settle(type: AsyncIteratorMethod | \"normal\", value: any) {\n switch (type) {\n case \"return\":\n front!.resolve({ value: value, done: true });\n break;\n case \"throw\":\n front!.reject(value);\n break;\n default:\n front!.resolve({ value: value, done: false });\nLine truncated
@@ -0,0 +1,120 @@
import { AsnParser } from '@peculiar/asn1-schema';
import { Certificate } from '@peculiar/asn1-x509';
import { id_ce_keyDescription, KeyDescription } from '@peculiar/asn1-android';
import { convertCertBufferToPEM } from '../../helpers/convertCertBufferToPEM.js';
import { validateCertificatePath } from '../../helpers/validateCertificatePath.js';
import { verifySignature } from '../../helpers/verifySignature.js';
import { convertCOSEtoPKCS } from '../../helpers/convertCOSEtoPKCS.js';
import { isCOSEAlg } from '../../helpers/cose.js';
import { isoUint8Array } from '../../helpers/iso/index.js';
import { MetadataService } from '../../services/metadataService.js';
import { verifyAttestationWithMetadata } from '../../metadata/verifyAttestationWithMetadata.js';
/**
* Verify an attestation response with fmt 'android-key'
*/
export async function verifyAttestationAndroidKey(options) {
const { authData, clientDataHash, attStmt, credentialPublicKey, aaguid, rootCertificates, } = options;
const x5c = attStmt.get('x5c');
const sig = attStmt.get('sig');
const alg = attStmt.get('alg');
if (!x5c) {
throw new Error('No attestation certificate provided in attestation statement (Android Key)');
}
if (!sig) {
throw new Error('No attestation signature provided in attestation statement (Android Key)');
}
if (!alg) {
throw new Error(`Attestation statement did not contain alg (Android Key)`);
}
if (!isCOSEAlg(alg)) {
throw new Error(`Attestation statement contained invalid alg ${alg} (Android Key)`);
}
/**
* Verify that the public key in the first certificate in x5c matches the credentialPublicKey in
* the attestedCredentialData in authenticatorData.
*/
// Find the public cert in the certificate as PKCS
const parsedCert = AsnParser.parse(x5c[0], Certificate);
const parsedCertPubKey = new Uint8Array(parsedCert.tbsCertificate.subjectPublicKeyInfo.subjectPublicKey);
// Convert the credentialPublicKey to PKCS
const credPubKeyPKCS = convertCOSEtoPKCS(credentialPublicKey);
if (!isoUint8Array.areEqual(credPubKeyPKCS, parsedCertPubKey)) {
throw new Error('Credential public key does not equal leaf cert public key (Android Key)');
}
/**
* Verify that the attestationChallenge field in the attestation certificate extension data is
* identical to clientDataHash.
*/
// Find Android KeyStore Extension in certificate extensions
const extKeyStore = parsedCert.tbsCertificate.extensions?.find((ext) => ext.extnID === id_ce_keyDescription);
if (!extKeyStore) {
throw new Error('Certificate did not contain extKeyStore (Android Key)');
}
const parsedExtKeyStore = AsnParser.parse(extKeyStore.extnValue, KeyDescription);
// Verify extKeyStore values
const { attestationChallenge, teeEnforced, softwareEnforced } = parsedExtKeyStore;
if (!isoUint8Array.areEqual(new Uint8Array(attestationChallenge.buffer), clientDataHash)) {
throw new Error('Attestation challenge was not equal to client data hash (Android Key)');
}
/**
* The AuthorizationList.allApplications field is not present on either authorization list
* (softwareEnforced nor teeEnforced), since PublicKeyCredential MUST be scoped to the RP ID.
*
* (i.e. These shouldn't contain the [600] tag)
*/
if (teeEnforced.allApplications !== undefined) {
throw new Error('teeEnforced contained "allApplications [600]" tag (Android Key)');
}
if (softwareEnforced.allApplications !== undefined) {
throw new Error('teeEnforced contained "allApplications [600]" tag (Android Key)');
}
const statement = await MetadataService.getStatement(aaguid);
if (statement) {
try {
await verifyAttestationWithMetadata({
statement,
credentialPublicKey,
x5c,
attestationStatementAlg: alg,
});
}
catch (err) {
const _err = err;
throw new Error(`${_err.message} (Android Key)`, { cause: _err });
}
}
else {
/**
* Verify that x5c contains a full certificate path.
*/
const x5cNoRootPEM = x5c.slice(0, -1).map(convertCertBufferToPEM);
const x5cRootPEM = x5c.slice(-1).map(convertCertBufferToPEM);
try {
await validateCertificatePath(x5cNoRootPEM, x5cRootPEM);
}
catch (err) {
const _err = err;
throw new Error(`${_err.message} (Android Key)`, { cause: _err });
}
/**
* Make sure the root certificate is one of the Google Hardware Attestation Root certificates
*
* https://developer.android.com/privacy-and-security/security-key-attestation#root_certificate
*/
if (rootCertificates.length > 0 && rootCertificates.indexOf(x5cRootPEM[0]) < 0) {
throw new Error('x5c root certificate was not a known root certificate (Android Key)');
}
}
/**
* Verify that sig is a valid signature over the concatenation of authenticatorData and
* clientDataHash using the public key in the first certificate in x5c with the algorithm
* specified in alg.
*/
const signatureBase = isoUint8Array.concat([authData, clientDataHash]);
return verifySignature({
signature: sig,
data: signatureBase,
x509Certificate: x5c[0],
hashAlgorithm: alg,
});
}
@@ -0,0 +1,30 @@
var arrayFilter = require('./_arrayFilter'),
stubArray = require('./stubArray');
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;
/**
* Creates an array of the own enumerable symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
if (object == null) {
return [];
}
object = Object(object);
return arrayFilter(nativeGetSymbols(object), function(symbol) {
return propertyIsEnumerable.call(object, symbol);
});
};
module.exports = getSymbols;
@@ -0,0 +1,44 @@
import type { TSchema, SchemaOptions } from '../schema/index';
import type { Static } from '../static/index';
import type { Evaluate } from '../helpers/index';
import type { TReadonly } from '../readonly/index';
import type { TOptional } from '../optional/index';
import { Kind } from '../symbols/index';
type ReadonlyOptionalPropertyKeys<T extends TProperties> = {
[K in keyof T]: T[K] extends TReadonly<TSchema> ? (T[K] extends TOptional<T[K]> ? K : never) : never;
}[keyof T];
type ReadonlyPropertyKeys<T extends TProperties> = {
[K in keyof T]: T[K] extends TReadonly<TSchema> ? (T[K] extends TOptional<T[K]> ? never : K) : never;
}[keyof T];
type OptionalPropertyKeys<T extends TProperties> = {
[K in keyof T]: T[K] extends TOptional<TSchema> ? (T[K] extends TReadonly<T[K]> ? never : K) : never;
}[keyof T];
type RequiredPropertyKeys<T extends TProperties> = keyof Omit<T, ReadonlyOptionalPropertyKeys<T> | ReadonlyPropertyKeys<T> | OptionalPropertyKeys<T>>;
type ObjectStaticProperties<T extends TProperties, R extends Record<keyof any, unknown>> = Evaluate<(Readonly<Partial<Pick<R, ReadonlyOptionalPropertyKeys<T>>>> & Readonly<Pick<R, ReadonlyPropertyKeys<T>>> & Partial<Pick<R, OptionalPropertyKeys<T>>> & Required<Pick<R, RequiredPropertyKeys<T>>>)>;
type ObjectStatic<T extends TProperties, P extends unknown[]> = ObjectStaticProperties<T, {
[K in keyof T]: Static<T[K], P>;
}>;
export type TPropertyKey = string | number;
export type TProperties = Record<TPropertyKey, TSchema>;
export type TAdditionalProperties = undefined | TSchema | boolean;
export interface ObjectOptions extends SchemaOptions {
/** Additional property constraints for this object */
additionalProperties?: TAdditionalProperties;
/** The minimum number of properties allowed on this object */
minProperties?: number;
/** The maximum number of properties allowed on this object */
maxProperties?: number;
}
export interface TObject<T extends TProperties = TProperties> extends TSchema, ObjectOptions {
[Kind]: 'Object';
static: ObjectStatic<T, this['params']>;
additionalProperties?: TAdditionalProperties;
type: 'object';
properties: T;
required?: string[];
}
/** `[Json]` Creates an Object type */
declare function _Object<T extends TProperties>(properties: T, options?: ObjectOptions): TObject<T>;
/** `[Json]` Creates an Object type */
export declare var Object: typeof _Object;
export {};
@@ -0,0 +1,39 @@
# has-bigints <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
Determine if the JS environment has BigInt support.
## Example
```js
var hasBigInts = require('has-bigints');
hasBigInts() === true; // if the environment has native BigInt support. Not polyfillable, not forgeable.
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.org/package/has-bigints
[npm-version-svg]: https://versionbadg.es/inspect-js/has-bigints.svg
[deps-svg]: https://david-dm.org/inspect-js/has-bigints.svg
[deps-url]: https://david-dm.org/inspect-js/has-bigints
[dev-deps-svg]: https://david-dm.org/inspect-js/has-bigints/dev-status.svg
[dev-deps-url]: https://david-dm.org/inspect-js/has-bigints#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/has-bigints.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/has-bigints.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/has-bigints.svg
[downloads-url]: https://npm-stat.com/charts.html?package=has-bigints
[codecov-image]: https://codecov.io/gh/inspect-js/has-bigints/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/has-bigints/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-bigints
[actions-url]: https://github.com/inspect-js/has-bigints/actions
@@ -0,0 +1,13 @@
"use strict";
var _get_prototype_of = require("./_get_prototype_of.cjs");
function _super_prop_base(object, property) {
while (!Object.prototype.hasOwnProperty.call(object, property)) {
object = _get_prototype_of._(object);
if (object === null) break;
}
return object;
}
exports._ = _super_prop_base;
@@ -0,0 +1,14 @@
import type { SchemaOptions } from '../schema/index';
import type { TProperties } from '../object/index';
import { Assert } from '../helpers/index';
import { type TMappedResult, type TMappedKey } from '../mapped/index';
import { type TIntrinsic, type IntrinsicMode } from './intrinsic';
import { type TLiteral, type TLiteralValue } from '../literal/index';
type TMappedIntrinsicPropertyKey<K extends PropertyKey, M extends IntrinsicMode> = {
[_ in K]: TIntrinsic<TLiteral<Assert<K, TLiteralValue>>, M>;
};
type TMappedIntrinsicPropertyKeys<K extends PropertyKey[], M extends IntrinsicMode, Acc extends TProperties = {}> = (K extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? TMappedIntrinsicPropertyKeys<R, M, Acc & TMappedIntrinsicPropertyKey<L, M>> : Acc);
type TMappedIntrinsicProperties<K extends TMappedKey, M extends IntrinsicMode> = (TMappedIntrinsicPropertyKeys<K['keys'], M>);
export type TIntrinsicFromMappedKey<K extends TMappedKey, M extends IntrinsicMode, P extends TProperties = TMappedIntrinsicProperties<K, M>> = (TMappedResult<P>);
export declare function IntrinsicFromMappedKey<K extends TMappedKey, M extends IntrinsicMode, P extends TProperties = TMappedIntrinsicProperties<K, M>>(T: K, M: M, options: SchemaOptions): TMappedResult<P>;
export {};
@@ -0,0 +1,20 @@
import { AriaModalOverlayProps, ModalOverlayAria } from '@react-aria/overlays';
import { OverlayTriggerState } from '@react-stately/overlays';
import { RefObject } from 'react';
interface UseAriaModalOverlayProps extends AriaModalOverlayProps {
}
/**
* Provides the behavior and accessibility implementation for a modal component.
* A modal is an overlay element which blocks interaction with elements outside it.
*
* This is a modified version from https://vscode.dev/github/adobe/react-spectrum/blob/main/packages/%40react-aria/overlays/src/useModalOverlay.ts#L46
*
* This implementation disables the prevent scroll when `shouldBlockScroll` prop is false.
*/
declare function useAriaModalOverlay(props: (UseAriaModalOverlayProps & {
shouldBlockScroll?: boolean | undefined;
}) | undefined, state: OverlayTriggerState, ref: RefObject<HTMLElement>): ModalOverlayAria;
type UseAriaModalOverlayReturn = ReturnType<typeof useAriaModalOverlay>;
export { UseAriaModalOverlayProps, UseAriaModalOverlayReturn, useAriaModalOverlay };
@@ -0,0 +1,69 @@
type JsonSchema = boolean | ArraySchema | ObjectSchema | NumberSchema | StringSchema;
type JsonType = 'array' | 'object' | 'string' | 'number' | 'integer' | 'boolean' | 'null';
interface CommonSchema {
type?: JsonType | JsonType[];
const?: unknown;
enum?: unknown[];
format?: string;
allOf?: JsonSchema[];
anyOf?: JsonSchema[];
oneOf?: JsonSchema[];
not?: JsonSchema;
if?: JsonSchema;
then?: JsonSchema;
else?: JsonSchema;
$id?: string;
$defs?: Record<string, JsonSchema>;
$anchor?: string;
$dynamicAnchor?: string;
$ref?: string;
$dynamicRef?: string;
$schema?: string;
$vocabulary?: Record<string, boolean>;
$comment?: string;
default?: unknown;
deprecated?: boolean;
readOnly?: boolean;
writeOnly?: boolean;
title?: string;
description?: string;
examples?: unknown[];
}
interface ArraySchema extends CommonSchema {
prefixItems?: JsonSchema[];
items?: JsonSchema;
contains?: JsonSchema;
unevaluatedItems?: JsonSchema;
maxItems?: number;
minItems?: number;
uniqueItems?: boolean;
maxContains?: number;
minContains?: number;
}
interface ObjectSchema extends CommonSchema {
properties?: Record<string, JsonSchema>;
patternProperties?: Record<string, JsonSchema>;
additionalProperties?: JsonSchema;
propertyNames?: JsonSchema;
unevaluatedProperties?: JsonSchema;
maxProperties?: number;
minProperties?: number;
required?: string[];
dependentRequired?: Record<string, string[]>;
dependentSchemas?: Record<string, JsonSchema>;
}
interface StringSchema extends CommonSchema {
maxLength?: number;
minLength?: number;
patter?: string;
contentEncoding?: string;
contentMediaType?: string;
contentSchema?: JsonSchema;
}
interface NumberSchema extends CommonSchema {
multipleOf?: number;
maximum?: number;
exclusiveMaximum?: number;
minimum?: number;
exclusiveMinimum?: number;
}
@@ -0,0 +1,30 @@
'use strict';
const format = require('./format');
const { MESSAGE } = require('triple-beam');
const stringify = require('safe-stable-stringify');
/*
* function replacer (key, value)
* Handles proper stringification of Buffer and bigint output.
*/
function replacer(key, value) {
// safe-stable-stringify does support BigInt, however, it doesn't wrap the value in quotes.
// Leading to a loss in fidelity if the resulting string is parsed.
// It would also be a breaking change for logform.
if (typeof value === 'bigint')
return value.toString();
return value;
}
/*
* function json (info)
* Returns a new instance of the JSON format that turns a log `info`
* object into pure JSON. This was previously exposed as { json: true }
* to transports in `winston < 3.0.0`.
*/
module.exports = format((info, opts) => {
const jsonStringify = stringify.configure(opts);
info[MESSAGE] = jsonStringify(info, opts.replacer || replacer, opts.space);
return info;
});
@@ -0,0 +1,26 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.scripthost = void 0;
const base_config_1 = require("./base-config");
exports.scripthost = {
libs: [],
variables: [
['ActiveXObject', base_config_1.TYPE_VALUE],
['ITextWriter', base_config_1.TYPE],
['TextStreamBase', base_config_1.TYPE],
['TextStreamWriter', base_config_1.TYPE],
['TextStreamReader', base_config_1.TYPE],
['SafeArray', base_config_1.TYPE_VALUE],
['Enumerator', base_config_1.TYPE_VALUE],
['EnumeratorConstructor', base_config_1.TYPE],
['VBArray', base_config_1.TYPE_VALUE],
['VBArrayConstructor', base_config_1.TYPE],
['VarDate', base_config_1.TYPE_VALUE],
['DateConstructor', base_config_1.TYPE],
['Date', base_config_1.TYPE],
],
};
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _toConsumableArray;
var _arrayWithoutHoles = require("./arrayWithoutHoles.js");
var _iterableToArray = require("./iterableToArray.js");
var _unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
var _nonIterableSpread = require("./nonIterableSpread.js");
function _toConsumableArray(arr) {
return (0, _arrayWithoutHoles.default)(arr) || (0, _iterableToArray.default)(arr) || (0, _unsupportedIterableToArray.default)(arr) || (0, _nonIterableSpread.default)();
}
//# sourceMappingURL=toConsumableArray.js.map
@@ -0,0 +1,200 @@
# fonteditor-core
**FontEditor core functions**
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][npm-url]
## Feature
Read and write sfnt font like ttf, woff, woff2, eot, svg, otf.
- sfnt parse
- read, write, transform fonts
- ttf (read and write)
- woff (read and write)
- woff2 (read and write)
- eot (read and write)
- svg (read and write)
- otf (only read and convert to ttf)
- ttf glyph adjust
- svg to glyph
- ESM compatibility for modern bundlers (Webpack, Rollup, Vite, Next.js, etc.)
- TypeScript support with type definitions
## Usage
```javascript
// read font file
import {createFont} from 'fonteditor-core';
import fs from 'fs';
const buffer = fs.readFileSync('font.ttf');
// read font data, support format:
// - for ttf, otf, woff, woff2, support ArrayBuffer, Buffer
// - for svg, support string or Document(parsed svg)
const font = createFont(buffer, {
// support ttf, woff, woff2, eot, otf, svg
type: 'ttf',
// only read `a`, `b` glyphs
subset: [65, 66],
// read font hinting tables, default false
hinting: true,
// read font kerning tables, default false
kerning: true,
// transform ttf compound glyph to simple
compound2simple: true,
// inflate function for woff
inflate: undefined,
// for svg path
combinePath: false,
});
const fontObject = font.get();
console.log(Object.keys(fontObject));
/* => [ 'version',
'numTables',
'searchRenge',
'entrySelector',
'rengeShift',
'head',
'maxp',
'glyf',
'cmap',
'name',
'hhea',
'post',
'OS/2',
'fpgm',
'cvt',
'prep'
]
*/
// write font file
const buffer = font.write({
// support ttf, woff, woff2, eot, svg
type: 'woff',
// save font hinting tables, default false
hinting: false,
// save font kerning tables, default false
kerning: false,
// write glyf data when simple glyph has no contours, default false
writeZeroContoursGlyfData: false,
// deflate function for woff, eg. pako.deflate
deflate: undefined,
// for user to overwrite head.xMin, head.xMax, head.yMin, head.yMax, hhea etc.
support: {head: {}, hhea: {}}
});
fs.writeFileSync('font.woff', buffer);
// to base64 str
font.toBase64({
// support ttf, woff, woff2, eot, svg
type: 'ttf'
});
// optimize glyphs
font.optimize()
// compound2simple
font.compound2simple()
// sort glyphs
font.sort()
// find glyphs
const result = font.find({
unicode: [65]
});
const result = font.find({
filter: function (glyf) {
return glyf.name === 'icon'
}
});
// merge another font object
font.merge(font1, {
scale: 1
});
```
### Modern ES Module Usage
This library supports both CommonJS and ES Modules. For detailed information on using with modern bundlers, please see [ESM_USAGE.md](./ESM_USAGE.md).
```javascript
// ESM import
import fonteditorCore, { createFont, woff2 } from 'fonteditor-core';
createFont(buffer, options);
```
### woff2
**Notice:** woff2 use wasm build of google woff2, before read and write `woff2`, we should first call `woff2.init()`.
```javascript
import {createFont, woff2} from 'fonteditor-core';
// in nodejs
woff2.init().then(() => {
// read woff2
const font = createFont(buffer, {
type: 'woff2'
});
// write woff2
const buffer = font.write({type: 'woff2'});
});
// in browser
woff2.init('/assets/woff2.wasm').then(() => {
// read woff2
const font = createFont();
// write woff2
const arrayBuffer = font.write({type: 'woff2'});
});
```
## Demo
```
npm run dev
```
## build
```
npm run build
```
## test
```
npm run test
```
## support
Node.js:>= 12.0
Browser: Chrome, Safari
## Related
- [fonteditor](https://github.com/ecomfe/fonteditor)
- [fontmin](https://github.com/ecomfe/fontmin)
- [fonteditor online](https://kekee000.github.io/fonteditor/index.html)
## License
MIT © Fonteditor
[downloads-image]: http://img.shields.io/npm/dm/fonteditor-core.svg
[npm-url]: https://npmjs.org/package/fonteditor-core
[npm-image]: http://img.shields.io/npm/v/fonteditor-core.svg
[travis-url]: https://travis-ci.org/kekee000/fonteditor-core
[travis-image]: http://img.shields.io/travis/kekee000/fonteditor-core.svg
@@ -0,0 +1,24 @@
// src/chevron-up.tsx
import { jsx } from "react/jsx-runtime";
var ChevronUpIcon = ({ strokeWidth = 1.5, ...props }) => /* @__PURE__ */ jsx(
"svg",
{
"aria-hidden": "true",
fill: "none",
focusable: "false",
height: "1em",
role: "presentation",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth,
viewBox: "0 0 24 24",
width: "1em",
...props,
children: /* @__PURE__ */ jsx("path", { d: "m18 15-6-6-6 6" })
}
);
export {
ChevronUpIcon
};
@@ -0,0 +1 @@
{"name":"own-keys","version":"1.0.1","requiresBuild":false,"files":{".eslintrc":{"checkedAt":1794532097207,"integrity":"sha512-gPb+IaSW9bAhXdOrAFE8eZVBC2oGpY72Kv8U+RXMtyA/G/FrANvo6agR7MaNKrFsxc/9PmEiBgSgjJnyCOEhDw==","mode":420,"size":224},".nycrc":{"checkedAt":1794532089075,"integrity":"sha512-2vm1RFz8Ajl/OYrfoCWPJIm3Bpnf7Gyn5bha/lZx/cq+We3uMy9xj15XeP6x4wF3jf/pO7KMHAkU9mllm605xg==","mode":420,"size":139},"LICENSE":{"checkedAt":1794532089066,"integrity":"sha512-is07hPOvqMb/nBpYq3dOozrsdwHAIrqPTTYhio0cA+gO8u4daS29Q9v1iDFTE3xeAA8RO5jaI9hw36tvcbeK+g==","mode":420,"size":1071},"index.js":{"checkedAt":1794532097208,"integrity":"sha512-/uleaz8zFbBbaC60fpDRAKm4SzpKgN+T+Dqz8Pg8wkmIywymx7bQ/NAG0RB+GDurO28QA9N0HBopTxc2+woICQ==","mode":420,"size":583},"test/index.js":{"checkedAt":1794532097208,"integrity":"sha512-NJgFh+BeKtuq6/eVTqoXieESB2KGdymmA4jgTBETct3PuPeNXvaQQkAjgxgycfBEZ1KolzqqR+m1E6pfZt/dpA==","mode":420,"size":1548},"package.json":{"checkedAt":1794532097208,"integrity":"sha512-pAJJj8o6vzkIurcWoEyBiawaLHy9OAaUNzk6YyMusC/gTecNoPFLibek7NlNw7sj9x/WpYy1fn7hahZ5kOoRDg==","mode":420,"size":2398},"tsconfig.json":{"checkedAt":1794532097208,"integrity":"sha512-fa2Zk3IIbRQSpZn45qY5IHkID0oGejF1G9bQ5kVV/m5VmvgS1ODCQ6zlums9zI3CsLX46x60x+jQb5w08gZj3w==","mode":420,"size":125},"CHANGELOG.md":{"checkedAt":1794532097208,"integrity":"sha512-0kWkFi5BK0IyfRLFsj2ZOOlVbfXh6ici2mO+cW9Wm6VkyDt1iyfItwg8JDWb6vs1CsQmzso8WHEXxErdwPk2jA==","mode":420,"size":1318},"README.md":{"checkedAt":1794532097208,"integrity":"sha512-eqUnX6I9XoAsnjcQRezmazO8cU2W+EccQHZp9h9y38QG8zy19kzUDVORSKIy1lVl92B7y31ldnTgM5qhmI/uyw==","mode":420,"size":1706},"index.d.ts":{"checkedAt":1794532097209,"integrity":"sha512-Xa43WJgJwcOIfZwtEd+0nQ7eh1TuWCiTCQbl6ar8fqt+AfZ42IMg2fSvcwn7EnM+AsMf2G2tzeJ2OVKd81uJfw==","mode":420,"size":106},".github/FUNDING.yml":{"checkedAt":1794532097209,"integrity":"sha512-Be4dF4Zf8z9uqKW/dFxPHxtGjFQ9ThEr5aPDmjwEGBn0aeCpcXi99DDVfZxDcAC58Sn3hUIti2PYxieoWqS9TA==","mode":420,"size":579}}}
@@ -0,0 +1,70 @@
# Change Log
## 4.1.0
> Released 07/24/2019
* Adds int64 support for node v12+
* Drops support for node v4
## 4.0
> Released 10/21/2017
* Major breaking changes arriving in v4.
### New Features
* Ability to read data from a specific offset. ex: readInt8(5)
* Ability to write over data when an offset is given (see breaking changes) ex: writeInt8(5, 0);
* Ability to set internal read and write offsets.
### Breaking Changes
* Old constructor patterns have been completely removed. It's now required to use the SmartBuffer.fromXXX() factory constructors. Read more on the v4 docs.
* rewind(), skip(), moveTo() have been removed.
* Internal private properties are now prefixed with underscores (_).
* **All** writeXXX() methods that are given an offset will now **overwrite data** instead of insert
* insertXXX() methods have been added for when you want to insert data at a specific offset (this replaces the old behavior of writeXXX() when an offset was provided)
### Other Changes
* Standardizd error messaging
* Standardized offset/length bounds and sanity checking
* General overall cleanup of code.
## 3.0.3
> Released 02/19/2017
* Adds missing type definitions for some internal functions.
## 3.0.2
> Released 02/17/2017
### Bug Fixes
* Fixes a bug where using readString with a length of zero resulted in reading the remaining data instead of returning an empty string. (Fixed by Seldszar)
## 3.0.1
> Released 02/15/2017
### Bug Fixes
* Fixes a bug leftover from the TypeScript refactor where .readIntXXX() resulted in .readUIntXXX() being called by mistake.
## 3.0
> Released 02/12/2017
### Bug Fixes
* readUIntXXXX() methods will now throw an exception if they attempt to read beyond the bounds of the valid buffer data available.
* **Note** This is technically a breaking change, so version is bumped to 3.x.
## 2.0
> Relased 01/30/2017
### New Features:
* Entire package re-written in TypeScript (2.1)
* Backwards compatibility is preserved for now
* New factory methods for creating SmartBuffer instances
* SmartBuffer.fromSize()
* SmartBuffer.fromBuffer()
* SmartBuffer.fromOptions()
* New SmartBufferOptions constructor options
* Added additional tests
### Bug Fixes:
* Fixes a bug where reading null terminated strings may result in an exception.
@@ -0,0 +1,24 @@
# @heroui/listbox
A listbox displays a list of options and allows a user to select one or more of them.
Please refer to the [documentation](https://heroui.com/docs/components/listbox) for more information.
## Installation
```sh
yarn add @heroui/listbox
# or
npm i @heroui/listbox
```
## Contribution
Yes please! See the
[contributing guidelines](https://github.com/frontio-ai/heroui/blob/master/CONTRIBUTING.md)
for details.
## License
This project is licensed under the terms of the
[MIT license](https://github.com/frontio-ai/heroui/blob/master/LICENSE).
@@ -0,0 +1,129 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = normalizeFile;
function _fs() {
const data = require("fs");
_fs = function () {
return data;
};
return data;
}
function _path() {
const data = require("path");
_path = function () {
return data;
};
return data;
}
function _debug() {
const data = require("debug");
_debug = function () {
return data;
};
return data;
}
function _t() {
const data = require("@babel/types");
_t = function () {
return data;
};
return data;
}
function _convertSourceMap() {
const data = require("convert-source-map");
_convertSourceMap = function () {
return data;
};
return data;
}
var _file = require("./file/file.js");
var _index = require("../parser/index.js");
var _cloneDeep = require("./util/clone-deep.js");
const {
file,
traverseFast
} = _t();
const debug = _debug()("babel:transform:file");
const INLINE_SOURCEMAP_REGEX = /^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,.*$/;
const EXTERNAL_SOURCEMAP_REGEX = /^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;
function* normalizeFile(pluginPasses, options, code, ast) {
code = `${code || ""}`;
if (ast) {
if (ast.type === "Program") {
ast = file(ast, [], []);
} else if (ast.type !== "File") {
throw new Error("AST root must be a Program or File node");
}
if (options.cloneInputAst) {
ast = (0, _cloneDeep.default)(ast);
}
} else {
ast = yield* (0, _index.default)(pluginPasses, options, code);
}
let inputMap = null;
if (options.inputSourceMap !== false) {
if (typeof options.inputSourceMap === "object") {
inputMap = _convertSourceMap().fromObject(options.inputSourceMap);
}
if (!inputMap) {
const lastComment = extractComments(INLINE_SOURCEMAP_REGEX, ast);
if (lastComment) {
try {
inputMap = _convertSourceMap().fromComment("//" + lastComment);
} catch (err) {
{
debug("discarding unknown inline input sourcemap");
}
}
}
}
if (!inputMap) {
const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);
if (typeof options.filename === "string" && lastComment) {
try {
const match = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match[1]), "utf8");
inputMap = _convertSourceMap().fromJSON(inputMapContent);
} catch (err) {
debug("discarding unknown file input sourcemap", err);
}
} else if (lastComment) {
debug("discarding un-loadable file input sourcemap");
}
}
}
return new _file.default(options, {
code,
ast: ast,
inputMap
});
}
function extractCommentsFromList(regex, comments, lastComment) {
if (comments) {
comments = comments.filter(({
value
}) => {
if (regex.test(value)) {
lastComment = value;
return false;
}
return true;
});
}
return [comments, lastComment];
}
function extractComments(regex, ast) {
let lastComment = null;
traverseFast(ast, node => {
[node.leadingComments, lastComment] = extractCommentsFromList(regex, node.leadingComments, lastComment);
[node.innerComments, lastComment] = extractCommentsFromList(regex, node.innerComments, lastComment);
[node.trailingComments, lastComment] = extractCommentsFromList(regex, node.trailingComments, lastComment);
});
return lastComment;
}
0 && 0;
//# sourceMappingURL=normalize-file.js.map
@@ -0,0 +1,32 @@
var $78605a5d7424e31b$exports = require("./useLayoutEffect.main.js");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useSyncRef", () => $6fc733991a9f977c$export$4debdb1a3f0fa79e);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $6fc733991a9f977c$export$4debdb1a3f0fa79e(context, ref) {
(0, $78605a5d7424e31b$exports.useLayoutEffect)(()=>{
if (context && context.ref && ref) {
context.ref.current = ref.current;
return ()=>{
if (context.ref) context.ref.current = null;
};
}
});
}
//# sourceMappingURL=useSyncRef.main.js.map
@@ -0,0 +1,128 @@
import { ChainProto, PBArray, PBBytes, PBString, PBUint32, ProtoBuf, ProtoBufBase, ProtoBufDecode, ProtoBufEx, ProtoBufIn, ProtoBufQuick, proxyClassProtobuf, UnWrap } from "./protobuf.ts";
// 演示代码
class ProtoBufDataInnerClass extends ProtoBufBase {
data = PBString(1);
test = PBUint32(2);
}
class ProtoBufDataClass extends ProtoBufBase {
uin = PBUint32(1);
inner = ProtoBuf(2, ProtoBufDataInnerClass);
list = PBArray(3, ProtoBuf(ProtoBufDataInnerClass));
listinner = PBArray(4, ProtoBuf(class extends ProtoBufBase { data = PBArray(1, PBString()); }));
listquick = PBArray(5, ProtoBufIn({ data: PBString(1) }));
}
export function createProtobuf(uin: number, name: string) {
return ProtoBuf(class ProtoBufDataClass extends ProtoBufBase {
uin = PBUint32(1, false, uin);
name = PBString(2, false, name);
}).encode();
}
export function testSerialization() {
const test = ProtoBufEx(ProtoBufDataClass, {
inner: {
data: "x",
test: 300
},
list: [{
data: "xx",
test: 5
}, {
data: "xxx",
test: 2
}],
listinner: [{
data: ["x", "xxxx"]
}],
listquick: [{
data: "xxxxx"
}],
uin: 0
});
console.log("值首次序列化:", Buffer.from(test.encode()).toString('hex'));
console.log("值修改前序列化:", test.listinner[0].data);
test.listinner[0].data = ["x00", "xxxxx"];
test.inner.test = 200;
console.log("值修改序列化:", Buffer.from(test.encode()).toString('hex'));
}
export function testDeserialization() {
const test = ProtoBuf(ProtoBufDataClass);
let data = Buffer.from('086412090a047465737410ac021a080a047465737410051a090a0574657374311002220d0a04746573740a0574657374312a070a057465737435', 'hex');
console.log("值首次反序列化:", test.decode(new Uint8Array(data)).uin);
}
export function testJsonSerialization() {
const test = ProtoBufEx(ProtoBufDataClass, {
inner: {
data: "x",
test: 300
},
list: [{
data: "xx",
test: 5
}, {
data: "xxx",
test: 2
}],
listinner: [{
data: ["x", "xxxx"]
}],
listquick: [{
data: "xxxxx"
}],
uin: 0
});
console.log("序列化JSON演示:", JSON.stringify(test.toObject()));
}
export function testQuickSerialization() {
console.log("快速序列化演示:", Buffer.from(ProtoBufQuick({ uin: PBUint32(1) }, { uin: 120 }).encode()).toString('hex'));
console.log("复杂快速序列化演示:", Buffer.from(ProtoBufQuick({ uin: ProtoBufIn(1, { data: PBBytes(5) }) },
{ uin: { data: new Uint8Array([0x125, 0x25]) } }).encode()).toString('hex'));
}
export function testFunctionSerialization() {
console.log("函数辅助序列化演示:", Buffer.from(createProtobuf(100, "test")).toString('hex'));
}
export function testFunctionDeserialization() {
let data_uin = PBUint32(1, false, 0);
let data_name = PBString(2, false, "");
ProtoBuf(class ProtoBufDataClass extends ProtoBufBase {
uin = data_uin;
name = data_name;
}).decode(createProtobuf(8000, "demo"));
console.log("函数辅助反序列化演示:", UnWrap(data_uin), UnWrap(data_name));
ProtoBuf(class ProtoBufDataClass extends ProtoBufBase {
uin = data_uin;
name = data_name;
}).decode(createProtobuf(7000, "test"));
console.log("函数辅助反序列化演示:", UnWrap(data_uin), UnWrap(data_name));
}
export function normalDecode() {
let data = new Uint8Array(Buffer.from('0a042a022525', 'hex'))
console.log("无protobuf盲解:", JSON.stringify(ProtoBufDecode(data), null, 2));
}
export function ChainProtoEncode() {
let data = new ChainProto()
.push({ uin: PBString(1, false, '123456') })
.push({ uid: PBString(2, false, '123456') })
.push({ name: PBString(3, false, '123456') })
// 演示链式组包
let pb_data = proxyClassProtobuf(data).encode();
console.log("链式组包:", Buffer.from(pb_data).toString('hex'));
}
testSerialization();
testDeserialization();
testJsonSerialization();
testQuickSerialization();
testFunctionSerialization();
testFunctionDeserialization();
normalDecode();
ChainProtoEncode();
@@ -0,0 +1 @@
{"version":3,"file":"ProviderBinding.d.ts","sourceRoot":"","sources":["../../../../src/binding/models/ProviderBinding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,eAAe,CAAC,UAAU,SAAS,QAAQ,CAAC,OAAO,CAAC,CAAE,uDAAuD;AAC5H,SAAQ,aAAa,CACnB,OAAO,iBAAiB,CAAC,QAAQ,EACjC,OAAO,kBAAkB,CAAC,SAAS,EACnC,UAAU,CACX;IACD,QAAQ,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,UAAU,CAAC;CAC/D"}
@@ -0,0 +1,196 @@
#!/usr/bin/env node
/**
* @fileoverview Main CLI that is run via the eslint command.
* @author Nicholas C. Zakas
*/
/* eslint no-console:off -- CLI */
"use strict";
const mod = require("node:module");
// to use V8's code cache to speed up instantiation time
mod.enableCompileCache?.();
// must do this initialization *before* other requires in order to work
if (process.argv.includes("--debug")) {
require("debug").enable("eslint:*,-eslint:code-path,eslintrc:*");
}
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/**
* Read data from stdin til the end.
*
* Note: See
* - https://github.com/nodejs/node/blob/master/doc/api/process.md#processstdin
* - https://github.com/nodejs/node/blob/master/doc/api/process.md#a-note-on-process-io
* - https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-01/msg00419.html
* - https://github.com/nodejs/node/issues/7439 (historical)
*
* On Windows using `fs.readFileSync(STDIN_FILE_DESCRIPTOR, "utf8")` seems
* to read 4096 bytes before blocking and never drains to read further data.
*
* The investigation on the Emacs thread indicates:
*
* > Emacs on MS-Windows uses pipes to communicate with subprocesses; a
* > pipe on Windows has a 4K buffer. So as soon as Emacs writes more than
* > 4096 bytes to the pipe, the pipe becomes full, and Emacs then waits for
* > the subprocess to read its end of the pipe, at which time Emacs will
* > write the rest of the stuff.
* @returns {Promise<string>} The read text.
*/
function readStdin() {
return new Promise((resolve, reject) => {
let content = "";
let chunk = "";
process.stdin
.setEncoding("utf8")
.on("readable", () => {
while ((chunk = process.stdin.read()) !== null) {
content += chunk;
}
})
.on("end", () => resolve(content))
.on("error", reject);
});
}
/**
* Get the error message of a given value.
* @param {any} error The value to get.
* @returns {string} The error message.
*/
function getErrorMessage(error) {
// Lazy loading because this is used only if an error happened.
const util = require("node:util");
// Foolproof -- third-party module might throw non-object.
if (typeof error !== "object" || error === null) {
return String(error);
}
// Use templates if `error.messageTemplate` is present.
if (typeof error.messageTemplate === "string") {
try {
const template = require(`../messages/${error.messageTemplate}.js`);
return template(error.messageData || {});
} catch {
// Ignore template error then fallback to use `error.stack`.
}
}
// Use the stacktrace if it's an error object.
if (typeof error.stack === "string") {
return error.stack;
}
// Otherwise, dump the object.
return util.format("%o", error);
}
/**
* Tracks error messages that are shown to the user so we only ever show the
* same message once.
* @type {Set<string>}
*/
const displayedErrors = new Set();
/**
* Tracks whether an unexpected error was caught
* @type {boolean}
*/
let hadFatalError = false;
/**
* Catch and report unexpected error.
* @param {any} error The thrown error object.
* @returns {void}
*/
function onFatalError(error) {
process.exitCode = 2;
hadFatalError = true;
const { version } = require("../package.json");
const message = `
Oops! Something went wrong! :(
ESLint: ${version}
${getErrorMessage(error)}`;
if (!displayedErrors.has(message)) {
console.error(message);
displayedErrors.add(message);
}
}
//------------------------------------------------------------------------------
// Execution
//------------------------------------------------------------------------------
(async function main() {
process.on("uncaughtException", onFatalError);
process.on("unhandledRejection", onFatalError);
// Call the config initializer if `--init` is present.
if (process.argv.includes("--init")) {
// `eslint --init` has been moved to `@eslint/create-config`
console.warn(
"You can also run this command directly using 'npm init @eslint/config@latest'.",
);
const spawn = require("cross-spawn");
spawn.sync("npm", ["init", "@eslint/config@latest"], {
encoding: "utf8",
stdio: "inherit",
});
return;
}
// start the MCP server if `--mcp` is present
if (process.argv.includes("--mcp")) {
console.warn(
"You can also run this command directly using 'npx @eslint/mcp@latest'.",
);
const spawn = require("cross-spawn");
spawn.sync("npx", ["@eslint/mcp@latest"], {
encoding: "utf8",
stdio: "inherit",
});
return;
}
// Otherwise, call the CLI.
const cli = require("../lib/cli");
const exitCode = await cli.execute(
process.argv,
process.argv.includes("--stdin") ? await readStdin() : null,
true,
);
/*
* If an uncaught exception or unhandled rejection was detected in the meantime,
* keep the fatal exit code 2 that is already assigned to `process.exitCode`.
* Without this condition, exit code 2 (unsuccessful execution) could be overwritten with
* 1 (successful execution, lint problems found) or even 0 (successful execution, no lint problems found).
* This ensures that unexpected errors that seemingly don't affect the success
* of the execution will still cause a non-zero exit code, as it's a common
* practice and the default behavior of Node.js to exit with non-zero
* in case of an uncaught exception or unhandled rejection.
*
* Otherwise, assign the exit code returned from CLI.
*/
if (!hadFatalError) {
process.exitCode = exitCode;
}
})().catch(onFatalError);
@@ -0,0 +1 @@
module.exports={C:{"43":0.00407,"46":0.00407,"47":0.00407,"48":0.00407,"52":0.04473,"56":0.00407,"72":0.00407,"78":0.00407,"94":0.00407,"115":0.79694,"123":0.00407,"125":0.00407,"127":0.0122,"128":0.00813,"131":0.00407,"132":0.00407,"134":0.00407,"135":0.00813,"136":0.00407,"137":0.00407,"138":0.00407,"139":0.00813,"140":0.03253,"141":0.0122,"142":0.02846,"143":0.61397,"144":0.53265,"145":0.00407,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 126 129 130 133 146 147 3.5 3.6"},D:{"5":0.00407,"38":0.00407,"39":0.00813,"40":0.00813,"41":0.00813,"42":0.00813,"43":0.01626,"44":0.00813,"45":0.00813,"46":0.00813,"47":0.0122,"48":0.00813,"49":0.02033,"50":0.0122,"51":0.00813,"52":0.00813,"53":0.00813,"54":0.00813,"55":0.0122,"56":0.02033,"57":0.00813,"58":0.0122,"59":0.00813,"60":0.0122,"61":0.00407,"62":0.00407,"63":0.00407,"64":0.00407,"65":0.00813,"66":0.00407,"68":0.0122,"69":0.00813,"70":0.00813,"71":0.01626,"72":0.0122,"73":0.0122,"74":0.0122,"75":0.0122,"76":0.00407,"77":0.00407,"78":0.00813,"79":0.06912,"80":0.0122,"81":0.0244,"83":0.05286,"84":0.00813,"85":0.0122,"86":0.02033,"87":0.05286,"88":0.01626,"89":0.0122,"90":0.00407,"91":0.01626,"92":0.00407,"93":0.00407,"94":0.01626,"95":0.02846,"96":0.0122,"97":0.00813,"98":0.0244,"99":0.00813,"100":0.00813,"101":0.0122,"102":0.0122,"103":0.02846,"104":0.03253,"105":0.00407,"106":0.0244,"107":0.0122,"108":0.03659,"109":4.32216,"110":0.03253,"111":0.00813,"112":3.38291,"113":0.00813,"114":0.0122,"115":0.00407,"116":0.02846,"117":0.00407,"118":0.0122,"119":0.08132,"120":0.02033,"121":0.0122,"122":0.03253,"123":0.02033,"124":0.03659,"125":3.93995,"126":0.27649,"127":0.03253,"128":0.03659,"129":0.02033,"130":0.03253,"131":0.10165,"132":0.05286,"133":0.07725,"134":0.10572,"135":0.06506,"136":0.11385,"137":0.15451,"138":0.35374,"139":0.33341,"140":3.8749,"141":8.72564,"142":0.14231,"143":0.00813,_:"4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 67 144 145"},F:{"25":0.00407,"46":0.00407,"64":0.00407,"79":0.0244,"84":0.00407,"85":0.01626,"86":0.00407,"90":0.00407,"91":0.00813,"92":0.01626,"95":0.12605,"114":0.00407,"117":0.00407,"119":0.00407,"120":0.11791,"121":0.09758,"122":1.15474,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00407,"14":0.00407,"16":0.00407,"17":0.00813,"18":0.0122,"84":0.00407,"85":0.00407,"89":0.00407,"92":0.04473,"100":0.00407,"109":0.04473,"114":0.06506,"122":0.00813,"126":0.00407,"127":0.00407,"129":0.00407,"131":0.0122,"132":0.00407,"133":0.00407,"134":0.04879,"135":0.00407,"136":0.01626,"137":0.0122,"138":0.01626,"139":0.02846,"140":0.32935,"141":1.55321,"142":0.00813,_:"13 15 79 80 81 83 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 128 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 16.5 17.0 26.2","13.1":0.00813,"14.1":0.00407,"15.5":0.00407,"15.6":0.03659,"16.1":0.00407,"16.2":0.00407,"16.3":0.00407,"16.4":0.00407,"16.6":0.04066,"17.1":0.02846,"17.2":0.00407,"17.3":0.00407,"17.4":0.00813,"17.5":0.02033,"17.6":0.03659,"18.0":0.00813,"18.1":0.00813,"18.2":0.00407,"18.3":0.0122,"18.4":0.00813,"18.5-18.6":0.04473,"26.0":0.16671,"26.1":0.00813},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00053,"5.0-5.1":0,"6.0-6.1":0.0021,"7.0-7.1":0.00158,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00473,"10.0-10.2":0.00053,"10.3":0.00894,"11.0-11.2":0.13249,"11.3-11.4":0.00315,"12.0-12.1":0.00105,"12.2-12.5":0.02576,"13.0-13.1":0,"13.2":0.00263,"13.3":0.00105,"13.4-13.7":0.00421,"14.0-14.4":0.00894,"14.5-14.8":0.00946,"15.0-15.1":0.00894,"15.2-15.3":0.00683,"15.4":0.00789,"15.5":0.00894,"15.6-15.8":0.11672,"16.0":0.01577,"16.1":0.02944,"16.2":0.01525,"16.3":0.02734,"16.4":0.00683,"16.5":0.01209,"16.6-16.7":0.15615,"17.0":0.01104,"17.1":0.01682,"17.2":0.01209,"17.3":0.01788,"17.4":0.03155,"17.5":0.05415,"17.6-17.7":0.1367,"18.0":0.03102,"18.1":0.06414,"18.2":0.0347,"18.3":0.11146,"18.4":0.05731,"18.5-18.6":2.92213,"26.0":0.36119,"26.1":0.01314},P:{"4":0.07399,"21":0.02114,"22":0.02114,"23":0.04228,"24":0.04228,"25":0.04228,"26":0.06342,"27":0.06342,"28":0.85616,"29":0.05285,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.05285,"17.0":0.01057,"19.0":0.01057},I:{"0":0.04741,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-Line truncated
@@ -0,0 +1,290 @@
// THIS FILE IS AUTO GENERATED
import type { IconType } from '../lib/index'
export declare const CiAirportSign1: IconType;
export declare const CiAlarmOff: IconType;
export declare const CiAlarmOn: IconType;
export declare const CiAlignBottom: IconType;
export declare const CiAlignCenterH: IconType;
export declare const CiAlignCenterV: IconType;
export declare const CiAlignLeft: IconType;
export declare const CiAlignRight: IconType;
export declare const CiAlignTop: IconType;
export declare const CiApple: IconType;
export declare const CiAt: IconType;
export declare const CiAvocado: IconType;
export declare const CiBacon: IconType;
export declare const CiBadgeDollar: IconType;
export declare const CiBag1: IconType;
export declare const CiBandage: IconType;
export declare const CiBank: IconType;
export declare const CiBarcode: IconType;
export declare const CiBaseball: IconType;
export declare const CiBasketball: IconType;
export declare const CiBatteryCharging: IconType;
export declare const CiBatteryEmpty: IconType;
export declare const CiBatteryFull: IconType;
export declare const CiBeaker1: IconType;
export declare const CiBeerMugFull: IconType;
export declare const CiBellOff: IconType;
export declare const CiBellOn: IconType;
export declare const CiBezier: IconType;
export declare const CiBitcoin: IconType;
export declare const CiBluetooth: IconType;
export declare const CiBookmarkCheck: IconType;
export declare const CiBookmarkMinus: IconType;
export declare const CiBookmarkPlus: IconType;
export declare const CiBookmarkRemove: IconType;
export declare const CiBookmark: IconType;
export declare const CiBowlNoodles: IconType;
export declare const CiBoxList: IconType;
export declare const CiBoxes: IconType;
export declare const CiBrightnessDown: IconType;
export declare const CiBrightnessUp: IconType;
export declare const CiBullhorn: IconType;
export declare const CiBurger: IconType;
export declare const CiCalculator1: IconType;
export declare const CiCalculator2: IconType;
export declare const CiCalendarDate: IconType;
export declare const CiCalendar: IconType;
export declare const CiCamera: IconType;
export declare const CiChat1: IconType;
export declare const CiChat2: IconType;
export declare const CiCircleAlert: IconType;
export declare const CiCircleCheck: IconType;
export declare const CiCircleChevDown: IconType;
export declare const CiCircleChevLeft: IconType;
export declare const CiCircleChevRight: IconType;
export declare const CiCircleChevUp: IconType;
export declare const CiCircleInfo: IconType;
export declare const CiCircleList: IconType;
export declare const CiCircleMinus: IconType;
export declare const CiCircleMore: IconType;
export declare const CiCirclePlus: IconType;
export declare const CiCircleQuestion: IconType;
export declare const CiCircleRemove: IconType;
export declare const CiClock1: IconType;
export declare const CiClock2: IconType;
export declare const CiCloudDrizzle: IconType;
export declare const CiCloudMoon: IconType;
export declare const CiCloudOff: IconType;
export declare const CiCloudOn: IconType;
export declare const CiCloudRainbow: IconType;
export declare const CiCloudSun: IconType;
export declare const CiCloud: IconType;
export declare const CiCoffeeBean: IconType;
export declare const CiCoffeeCup: IconType;
export declare const CiCoinInsert: IconType;
export declare const CiCoins1: IconType;
export declare const CiCompass1: IconType;
export declare const CiCreditCard1: IconType;
export declare const CiCreditCard2: IconType;
export declare const CiCreditCardOff: IconType;
export declare const CiCrop: IconType;
export declare const CiDark: IconType;
export declare const CiDatabase: IconType;
export declare const CiDeliveryTruck: IconType;
export declare const CiDesktopMouse1: IconType;
export declare const CiDesktopMouse2: IconType;
export declare const CiDesktop: IconType;
export declare const CiDiscount1: IconType;
export declare const CiDollar: IconType;
export declare const CiDroplet: IconType;
export declare const CiDumbbell: IconType;
export declare const CiEdit: IconType;
export declare const CiEraser: IconType;
export declare const CiExport: IconType;
export declare const CiFaceFrown: IconType;
export declare const CiFaceMeh: IconType;
export declare const CiFaceSmile: IconType;
export declare const CiFacebook: IconType;
export declare const CiFileOff: IconType;
export declare const CiFileOn: IconType;
export declare const CiFilter: IconType;
export declare const CiFlag1: IconType;
export declare const CiFloppyDisk: IconType;
export declare const CiFolderOff: IconType;
export declare const CiFolderOn: IconType;
export declare const CiFootball: IconType;
export declare const CiForkAndKnife: IconType;
export declare const CiFries: IconType;
export declare const CiGift: IconType;
export declare const CiGlass: IconType;
export declare const CiGlobe: IconType;
export declare const CiGps: IconType;
export declare const CiGrid2H: IconType;
export declare const CiGrid2V: IconType;
export declare const CiGrid31: IconType;
export declare const CiGrid32: IconType;
export declare const CiGrid41: IconType;
export declare const CiGrid42: IconType;
export declare const CiHardDrive: IconType;
export declare const CiHashtag: IconType;
export declare const CiHeadphones: IconType;
export declare const CiHeart: IconType;
export declare const CiHome: IconType;
export declare const CiHospital1: IconType;
export declare const CiHotdog: IconType;
export declare const CiIceCream: IconType;
export declare const CiImageOff: IconType;
export declare const CiImageOn: IconType;
export declare const CiImport: IconType;
export declare const CiInboxIn: IconType;
export declare const CiInboxOut: IconType;
export declare const CiIndent: IconType;
export declare const CiInstagram: IconType;
export declare const CiKeyboard: IconType;
export declare const CiLaptop: IconType;
export declare const CiLemon: IconType;
export declare const CiLight: IconType;
export declare const CiLineHeight: IconType;
export declare const CiLink: IconType;
export declare const CiLinkedin: IconType;
export declare const CiLocationArrow1: IconType;
export declare const CiLocationOff: IconType;
export declare const CiLocationOn: IconType;
export declare const CiLock: IconType;
export declare const CiLogin: IconType;
export declare const CiLogout: IconType;
export declare const CiLollipop: IconType;
export declare const CiMail: IconType;
export declare const CiMapPin: IconType;
export declare const CiMap: IconType;
export declare const CiMaximize1: IconType;
export declare const CiMaximize2: IconType;
export declare const CiMedal: IconType;
export declare const CiMedicalCase: IconType;
export declare const CiMedicalClipboard: IconType;
export declare const CiMedicalCross: IconType;
export declare const CiMedicalMask: IconType;
export declare const CiMemoPad: IconType;
export declare const CiMenuBurger: IconType;
export declare const CiMenuFries: IconType;
export declare const CiMenuKebab: IconType;
export declare const CiMicrochip: IconType;
export declare const CiMicrophoneOff: IconType;
export declare const CiMicrophoneOn: IconType;
export declare const CiMinimize1: IconType;
export declare const CiMinimize2: IconType;
export declare const CiMobile1: IconType;
export declare const CiMobile2: IconType;
export declare const CiMobile3: IconType;
export declare const CiMobile4: IconType;
export declare const CiMoneyBill: IconType;
export declare const CiMoneyCheck1: IconType;
export declare const CiMonitor: IconType;
export declare const CiMountain1: IconType;
export declare const CiMug1: IconType;
export declare const CiMusicNote1: IconType;
export declare const CiNoWaitingSign: IconType;
export declare const CiPalette: IconType;
export declare const CiPaperplane: IconType;
export declare const CiParking1: IconType;
export declare const CiPassport1: IconType;
export declare const CiPause1: IconType;
export declare const CiPen: IconType;
export declare const CiPenpot: IconType;
export declare const CiPercent: IconType;
export declare const CiPhone: IconType;
export declare const CiPickerEmpty: IconType;
export declare const CiPickerHalf: IconType;
export declare const CiPill: IconType;
export declare const CiPillsBottle1: IconType;
export declare const CiPizza: IconType;
export declare const CiPlane: IconType;
export declare const CiPlay1: IconType;
export declare const CiPlug1: IconType;
export declare const CiPower: IconType;
export declare const CiRainbow: IconType;
export declare const CiRead: IconType;
export declare const CiReceipt: IconType;
export declare const CiRedo: IconType;
export declare const CiRepeat: IconType;
export declare const CiRollingSuitcase: IconType;
export declare const CiRoute: IconType;
export declare const CiRouter: IconType;
export declare const CiRuler: IconType;
export declare const CiSatellite1: IconType;
export declare const CiSaveDown1: IconType;
export declare const CiSaveDown2: IconType;
export declare const CiSaveUp1: IconType;
export declare const CiSaveUp2: IconType;
export declare const CiSearch: IconType;
export declare const CiServer: IconType;
export declare const CiSettings: IconType;
export declare const CiShare1: IconType;
export declare const CiShare2: IconType;
export declare const CiShirt: IconType;
export declare const CiShop: IconType;
export declare const CiShoppingBasket: IconType;
export declare const CiShoppingCart: IconType;
export declare const CiShoppingTag: IconType;
export declare const CiShuffle: IconType;
export declare const CiSignpostDuo1: IconType;
export declare const CiSignpostL1: IconType;
export declare const CiSignpostR1: IconType;
export declare const CiSliderHorizontal: IconType;
export declare const CiSliderVertical: IconType;
export declare const CiSpeaker: IconType;
export declare const CiSquareAlert: IconType;
export declare const CiSquareCheck: IconType;
export declare const CiSquareChevDown: IconType;
export declare const CiSquareChevLeft: IconType;
export declare const CiSquareChevRight: IconType;
export declare const CiSquareChevUp: IconType;
export declare const CiSquareInfo: IconType;
export declare const CiSquareMinus: IconType;
export declare const CiSquareMore: IconType;
export declare const CiSquarePlus: IconType;
export declare const CiSquareQuestion: IconType;
export declare const CiSquareRemove: IconType;
export declare const CiStar: IconType;
export declare const CiStethoscope: IconType;
export declare const CiStickyNote: IconType;
export declare const CiStop1: IconType;
export declare const CiStopSign1: IconType;
export declare const CiStopwatch: IconType;
export declare const CiStreamOff: IconType;
export declare const CiStreamOn: IconType;
export declare const CiSun: IconType;
export declare const CiTablets1: IconType;
export declare const CiTempHigh: IconType;
export declare const CiTextAlignCenter: IconType;
export declare const CiTextAlignJustify: IconType;
export declare const CiTextAlignLeft: IconType;
export declare const CiTextAlignRight: IconType;
export declare const CiText: IconType;
export declare const CiTimer: IconType;
export declare const CiTrash: IconType;
export declare const CiTrophy: IconType;
export declare const CiTurnL1: IconType;
export declare const CiTurnR1: IconType;
export declare const CiTwitter: IconType;
export declare const CiUmbrella: IconType;
export declare const CiUndo: IconType;
export declare const CiUnlock: IconType;
export declare const CiUnread: IconType;
export declare const CiUsb: IconType;
export declare const CiUser: IconType;
export declare const CiVault: IconType;
export declare const CiVial: IconType;
export declare const CiVideoOff: IconType;
export declare const CiVideoOn: IconType;
export declare const CiViewBoard: IconType;
export declare const CiViewColumn: IconType;
export declare const CiViewList: IconType;
export declare const CiViewTable: IconType;
export declare const CiViewTimeline: IconType;
export declare const CiVirus: IconType;
export declare const CiVoicemail: IconType;
export declare const CiVolumeHigh: IconType;
export declare const CiVolumeMute: IconType;
export declare const CiVolume: IconType;
export declare const CiWallet: IconType;
export declare const CiWarning: IconType;
export declare const CiWavePulse1: IconType;
export declare const CiWheat: IconType;
export declare const CiWifiOff: IconType;
export declare const CiWifiOn: IconType;
export declare const CiYoutube: IconType;
export declare const CiZoomIn: IconType;
export declare const CiZoomOut: IconType;
@@ -0,0 +1 @@
{"mappings":";;;;;AAAA;;;;;;;;;;CAUC;;;;AAOD,mFAAmF;AACnF,IAAI,kCAAY,QACd,OAAO,WAAW,eAClB,OAAO,QAAQ,IACf,OAAO,QAAQ,CAAC,aAAa;AAG/B,IAAI,sCAAyD,IAAI;AAM1D,SAAS,0CAAM,SAAkB;IACtC,IAAI,CAAC,OAAO,SAAS,GAAG,CAAA,GAAA,eAAO,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,aAAK,EAAE;IAEpB,IAAI,MAAM,CAAA,GAAA,mBAAW,EAAE;IAEvB,IAAI,cAAc,CAAA,GAAA,kBAAU,EAAE,CAAC;QAC7B,OAAO,OAAO,GAAG;IACnB,GAAG,EAAE;IAEL,IAAI;QACF,gEAAgE;QAChE,IAAI,oCAAc,GAAG,CAAC,QAAQ,CAAC,oCAAc,GAAG,CAAC,KAAM,QAAQ,CAAC,cAC9D,oCAAc,GAAG,CAAC,KAAK;eAAI,oCAAc,GAAG,CAAC;YAAO;SAAY;aAEhE,oCAAc,GAAG,CAAC,KAAK;YAAC;SAAY;;IAIxC,CAAA,GAAA,yCAAc,EAAE;QACd,IAAI,IAAI;QACR,OAAO;YACL,oCAAc,MAAM,CAAC;QACvB;IACF,GAAG;QAAC;KAAI;IAER,uEAAuE;IACvE,2BAA2B;IAC3B,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,QAAQ,OAAO,OAAO;QAC1B,IAAI,OAAO;YACT,OAAO,OAAO,GAAG;YACjB,SAAS;QACX;IACF;IAEA,OAAO;AACT;AAMO,SAAS,0CAAS,GAAW,EAAE,GAAW;IAC/C,IAAI,QAAQ,KACV,OAAO;IAGT,IAAI,UAAU,oCAAc,GAAG,CAAC;IAChC,IAAI,SAAS;QACX,QAAQ,OAAO,CAAC,CAAA,KAAM,GAAG;QACzB,OAAO;IACT;IAEA,IAAI,UAAU,oCAAc,GAAG,CAAC;IAChC,IAAI,SAAS;QACX,QAAQ,OAAO,CAAC,CAAA,KAAM,GAAG;QACzB,OAAO;IACT;IAEA,OAAO;AACT;AAOO,SAAS,0CAAU,WAA+B,EAAE;IACzD,IAAI,KAAK;IACT,IAAI,CAAC,YAAY,cAAc,GAAG,CAAA,GAAA,yCAAa,EAAE;IACjD,IAAI,WAAW,CAAA,GAAA,kBAAU,EAAE;QACzB,cAAc;YACZ,MAAM;YAEN,MAAM,SAAS,cAAc,CAAC,MAAM,KAAK;QAC3C;IACF,GAAG;QAAC;QAAI;KAAc;IAEtB,CAAA,GAAA,yCAAc,EAAE,UAAU;QAAC;QAAI;WAAa;KAAS;IAErD,OAAO;AACT","sources":["packages/@react-aria/utils/src/useId.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {useCallback, useEffect, useRef, useState} from 'react';\nimport {useLayoutEffect} from './useLayoutEffect';\nimport {useSSRSafeId} from '@react-aria/ssr';\nimport {useValueEffect} from './';\n\n// copied from SSRProvider.tsx to reduce exports, if needed again, consider sharing\nlet canUseDOM = Boolean(\n typeof window !== 'undefined' &&\n window.document &&\n window.document.createElement\n);\n\nlet idsUpdaterMap: Map<string, Array<(v: string) => void>> = new Map();\n\n/**\n * If a default is not provided, generate an id.\n * @param defaultId - Default component id.\n */\nexport function useId(defaultId?: string): string {\n let [value, setValue] = useState(defaultId);\n let nextId = useRef(null);\n\n let res = useSSRSafeId(value);\n\n let updateValue = useCallback((val) => {\n nextId.current = val;\n }, []);\n\n if (canUseDOM) {\n // TS not smart enough to know that `has` means the value exists\n if (idsUpdaterMap.has(res) && !idsUpdaterMap.get(res)!.includes(updateValue)) {\n idsUpdaterMap.set(res, [...idsUpdaterMap.get(res)!, updateValue]);\n } else {\n idsUpdaterMap.set(res, [updateValue]);\n }\n }\n\n useLayoutEffect(() => {\n let r = res;\n return () => {\n idsUpdaterMap.delete(r);\n };\n }, [res]);\n\n // This cannot cause an infinite loop because the ref is updated first.\n // eslint-disable-next-line\n useEffect(() => {\n let newId = nextId.current;\n if (newId) {\n nextId.current = null;\n setValue(newId);\n }\n });\n\n return res;\n}\n\n/**\n * Merges two ids.\n * Different ids will trigger a side-effect and re-render components hooked up with `useId`.\n */\nexport function mergeIds(idA: string, idB: string): string {\n if (idA === idB) {\n return idA;\n }\n\n let setIdsA = idsUpdaterMap.get(idA);\n if (setIdsA) {\n setIdsA.forEach(fn => fn(idB));\n return idB;\n }\n\n let setIdsB = idsUpdaterMap.get(idB);\n if (setIdsB) {\n setIdsB.forEach(fn => fn(idA));\n return idA;\n }\n\n return idB;\n}\n\n/**\n * Used to generate an id, and after render, check if that id is rendered so we know\n * if we can use it in places such as labelledby.\n * @param depArray - When to recalculate if the id is in the DOM.\n */\nexport function useSlotId(depArray: ReadonlyArray<any> = []): string {\n let id = useId();\n let [resolvedId, setResolvedId] = useValueEffect(id);\n let updateId = useCallback(() => {\n setResolvedId(function *() {\n yield id;\n\n yield document.getElementById(id) ? id : undefined;\n });\n }, [id, setResolvedId]);\n\n useLayoutEffect(updateId, [id, updateId, ...depArray]);\n\n return resolvedId;\n}\n"],"names":[],"version":3,"file":"useId.module.js.map"}
@@ -0,0 +1,3 @@
declare function getGeneratorFunction(): GeneratorFunctionConstructor | false;
export = getGeneratorFunction;
@@ -0,0 +1 @@
{"mappings":"AAAA,iBAAiB;IAAG,aAAa,CAAC,eAAS,CAAC;IAC1C,iBAAiB,CAAC,OAAS,CAAC,2CAA+B,EAAE,KAAK,UAAU,EAAE;IAC9E,cAAc,CAAC,OAAS,GAAG,KAAK,KAAK,CAAC,aAAO,CAAC;IAC9C,cAAc,CAAC,cAAQ,CAAC;IACxB,kBAAkB,CAAC,OAAS,CAAC,0CAA8B,EAAE,KAAK,UAAU,EAAE;IAC9E,sBAAsB,CAAC,iEAA+C,CAAC;IACvE,UAAU,CAAC,MAAM,CAAC;IAClB,aAAa,CAAC,gBAAU,CAAC;IACzB,YAAY,CAAC,2CAAyB,CAAC;AACzC","sources":["packages/@react-aria/table/intl/cs-CZ.json"],"sourcesContent":["{\n \"ascending\": \"vzestupně\",\n \"ascendingSort\": \"řazeno vzestupně podle sloupce {columnName}\",\n \"columnSize\": \"{value} pixelů\",\n \"descending\": \"sestupně\",\n \"descendingSort\": \"řazeno sestupně podle sloupce {columnName}\",\n \"resizerDescription\": \"Stisknutím klávesy Enter začnete měnit velikost\",\n \"select\": \"Vybrat\",\n \"selectAll\": \"Vybrat vše\",\n \"sortable\": \"sloupec s možností řazení\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.main.js.map"}
@@ -0,0 +1,113 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.rewireSpecs = exports.rewireSource = exports.seedTokens = exports.seedSpec = exports.seedBlock = exports.splitLines = exports.splitSpace = exports.splitCR = exports.hasCR = exports.isSpace = void 0;
function isSpace(source) {
return /^\s+$/.test(source);
}
exports.isSpace = isSpace;
function hasCR(source) {
return /\r$/.test(source);
}
exports.hasCR = hasCR;
function splitCR(source) {
const matches = source.match(/\r+$/);
return matches == null ? ['', source] : [source.slice(-matches[0].length), source.slice(0, -matches[0].length)];
}
exports.splitCR = splitCR;
function splitSpace(source) {
const matches = source.match(/^\s+/);
return matches == null ? ['', source] : [source.slice(0, matches[0].length), source.slice(matches[0].length)];
}
exports.splitSpace = splitSpace;
function splitLines(source) {
return source.split(/\n/);
}
exports.splitLines = splitLines;
function seedBlock(block = {}) {
return Object.assign({
description: '',
tags: [],
source: [],
problems: []
}, block);
}
exports.seedBlock = seedBlock;
function seedSpec(spec = {}) {
return Object.assign({
tag: '',
name: '',
type: '',
optional: false,
description: '',
problems: [],
source: []
}, spec);
}
exports.seedSpec = seedSpec;
function seedTokens(tokens = {}) {
return Object.assign({
start: '',
delimiter: '',
postDelimiter: '',
tag: '',
postTag: '',
name: '',
postName: '',
type: '',
postType: '',
description: '',
end: '',
lineEnd: ''
}, tokens);
}
exports.seedTokens = seedTokens;
/**
* Assures Block.tags[].source contains references to the Block.source items,
* using Block.source as a source of truth. This is a counterpart of rewireSpecs
* @param block parsed coments block
*/
function rewireSource(block) {
const source = block.source.reduce((acc, line) => acc.set(line.number, line), new Map());
for (const spec of block.tags) {
spec.source = spec.source.map(line => source.get(line.number));
}
return block;
}
exports.rewireSource = rewireSource;
/**
* Assures Block.source contains references to the Block.tags[].source items,
* using Block.tags[].source as a source of truth. This is a counterpart of rewireSource
* @param block parsed coments block
*/
function rewireSpecs(block) {
const source = block.tags.reduce((acc, spec) => spec.source.reduce((acc, line) => acc.set(line.number, line), acc), new Map());
block.source = block.source.map(line => source.get(line.number) || line);
return block;
}
exports.rewireSpecs = rewireSpecs;
//# sourceMappingURL=util.cjs.map
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC,GAKM,MAAM,4CAAgD,IAAI;AAEjE,SAAS,mCAAa,GAAQ;IAC5B,IAAI,OAAO,QAAQ,UACjB,OAAO,IAAI,OAAO,CAAC,QAAQ;IAG7B,OAAO,KAAK;AACd;AAEO,SAAS,0CAAqB,KAAoB,EAAE,SAAc;IACvE,IAAI,SAAS,0CAAQ,GAAG,CAAC;IACzB,IAAI,CAAC,QACH,MAAM,IAAI,MAAM;IAGlB,OAAO,GAAG,OAAO,CAAC,EAAE,mCAAa,YAAY;AAC/C;AAEO,SAAS,0CAAa,KAAoB,EAAE,MAAW,EAAE,SAAc;IAC5E,IAAI,SAAS,0CAAQ,GAAG,CAAC;IACzB,IAAI,CAAC,QACH,MAAM,IAAI,MAAM;IAGlB,OAAO,GAAG,OAAO,CAAC,EAAE,mCAAa,QAAQ,CAAC,EAAE,mCAAa,YAAY;AACvE;AAEO,SAAS,yCAAoB,KAAoB,EAAE,MAAW;IACnE,yCAAyC;IACzC,OAAO;WAAI,MAAM,UAAU,CAAC,mBAAmB;KAAC,CAAC,GAAG,CAAC,CAAA,YACnD,0CAAU,OAAO,QAAQ,YACzB,IAAI,CAAC;AACT","sources":["packages/@react-aria/table/src/utils.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Key} from '@react-types/shared';\nimport {TableState} from '@react-stately/table';\n\nexport const gridIds: WeakMap<TableState<unknown>, string> = new WeakMap<TableState<unknown>, string>();\n\nfunction normalizeKey(key: Key): string {\n if (typeof key === 'string') {\n return key.replace(/\\s*/g, '');\n }\n\n return '' + key;\n}\n\nexport function getColumnHeaderId<T>(state: TableState<T>, columnKey: Key): string {\n let gridId = gridIds.get(state);\n if (!gridId) {\n throw new Error('Unknown grid');\n }\n\n return `${gridId}-${normalizeKey(columnKey)}`;\n}\n\nexport function getCellId<T>(state: TableState<T>, rowKey: Key, columnKey: Key): string {\n let gridId = gridIds.get(state);\n if (!gridId) {\n throw new Error('Unknown grid');\n }\n\n return `${gridId}-${normalizeKey(rowKey)}-${normalizeKey(columnKey)}`;\n}\n\nexport function getRowLabelledBy<T>(state: TableState<T>, rowKey: Key): string {\n // A row is labelled by it's row headers.\n return [...state.collection.rowHeaderColumnKeys].map(columnKey =>\n getCellId(state, rowKey, columnKey)\n ).join(' ');\n}\n"],"names":[],"version":3,"file":"utils.main.js.map"}
@@ -0,0 +1,170 @@
import { EmbedBlot, Scope } from 'parchment';
import TextBlot from './text.js';
class Cursor extends EmbedBlot {
static blotName = 'cursor';
static className = 'ql-cursor';
static tagName = 'span';
static CONTENTS = '\uFEFF'; // Zero width no break space
static value() {
return undefined;
}
constructor(scroll, domNode, selection) {
super(scroll, domNode);
this.selection = selection;
this.textNode = document.createTextNode(Cursor.CONTENTS);
this.domNode.appendChild(this.textNode);
this.savedLength = 0;
}
detach() {
// super.detach() will also clear domNode.__blot
if (this.parent != null) this.parent.removeChild(this);
}
format(name, value) {
if (this.savedLength !== 0) {
super.format(name, value);
return;
}
// TODO: Fix this next time the file is edited.
// eslint-disable-next-line @typescript-eslint/no-this-alias
let target = this;
let index = 0;
while (target != null && target.statics.scope !== Scope.BLOCK_BLOT) {
index += target.offset(target.parent);
target = target.parent;
}
if (target != null) {
this.savedLength = Cursor.CONTENTS.length;
// @ts-expect-error TODO: allow empty context in Parchment
target.optimize();
target.formatAt(index, Cursor.CONTENTS.length, name, value);
this.savedLength = 0;
}
}
index(node, offset) {
if (node === this.textNode) return 0;
return super.index(node, offset);
}
length() {
return this.savedLength;
}
position() {
return [this.textNode, this.textNode.data.length];
}
remove() {
super.remove();
// @ts-expect-error Fix me later
this.parent = null;
}
restore() {
if (this.selection.composing || this.parent == null) return null;
const range = this.selection.getNativeRange();
// Browser may push down styles/nodes inside the cursor blot.
// https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#push-down-values
while (this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode) {
// @ts-expect-error Fix me later
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
}
const prevTextBlot = this.prev instanceof TextBlot ? this.prev : null;
const prevTextLength = prevTextBlot ? prevTextBlot.length() : 0;
const nextTextBlot = this.next instanceof TextBlot ? this.next : null;
// @ts-expect-error TODO: make TextBlot.text public
const nextText = nextTextBlot ? nextTextBlot.text : '';
const {
textNode
} = this;
// take text from inside this blot and reset it
const newText = textNode.data.split(Cursor.CONTENTS).join('');
textNode.data = Cursor.CONTENTS;
// proactively merge TextBlots around cursor so that optimization
// doesn't lose the cursor. the reason we are here in cursor.restore
// could be that the user clicked in prevTextBlot or nextTextBlot, or
// the user typed something.
let mergedTextBlot;
if (prevTextBlot) {
mergedTextBlot = prevTextBlot;
if (newText || nextTextBlot) {
prevTextBlot.insertAt(prevTextBlot.length(), newText + nextText);
if (nextTextBlot) {
nextTextBlot.remove();
}
}
} else if (nextTextBlot) {
mergedTextBlot = nextTextBlot;
nextTextBlot.insertAt(0, newText);
} else {
const newTextNode = document.createTextNode(newText);
mergedTextBlot = this.scroll.create(newTextNode);
this.parent.insertBefore(mergedTextBlot, this);
}
this.remove();
if (range) {
// calculate selection to restore
const remapOffset = (node, offset) => {
if (prevTextBlot && node === prevTextBlot.domNode) {
return offset;
}
if (node === textNode) {
return prevTextLength + offset - 1;
}
if (nextTextBlot && node === nextTextBlot.domNode) {
return prevTextLength + newText.length + offset;
}
return null;
};
const start = remapOffset(range.start.node, range.start.offset);
const end = remapOffset(range.end.node, range.end.offset);
if (start !== null && end !== null) {
return {
startNode: mergedTextBlot.domNode,
startOffset: start,
endNode: mergedTextBlot.domNode,
endOffset: end
};
}
}
return null;
}
update(mutations, context) {
if (mutations.some(mutation => {
return mutation.type === 'characterData' && mutation.target === this.textNode;
})) {
const range = this.restore();
if (range) context.range = range;
}
}
// Avoid .ql-cursor being a descendant of `<a/>`.
// The reason is Safari pushes down `<a/>` on text insertion.
// That will cause DOM nodes not sync with the model.
//
// For example ({I} is the caret), given the markup:
// <a><span class="ql-cursor">\uFEFF{I}</span></a>
// When typing a char "x", `<a/>` will be pushed down inside the `<span>` first:
// <span class="ql-cursor"><a>\uFEFF{I}</a></span>
// And then "x" will be inserted after `<a/>`:
// <span class="ql-cursor"><a>\uFEFF</a>d{I}</span>
optimize(context) {
// @ts-expect-error Fix me later
super.optimize(context);
let {
parent
} = this;
while (parent) {
if (parent.domNode.tagName === 'A') {
this.savedLength = Cursor.CONTENTS.length;
// @ts-expect-error TODO: make isolate generic
parent.isolate(this.offset(parent), this.length()).unwrap();
this.savedLength = 0;
break;
}
parent = parent.parent;
}
}
value() {
return '';
}
}
export default Cursor;
//# sourceMappingURL=cursor.js.map
@@ -0,0 +1,281 @@
/**
* @fileoverview Translates CLI options into ESLint constructor options.
* @author Nicholas C. Zakas
* @author Francesco Trotta
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const { normalizeSeverityToString } = require("./severity");
const { getShorthandName, normalizePackageName } = require("./naming");
const { ModuleImporter } = require("@humanwhocodes/module-importer");
//------------------------------------------------------------------------------
// Types
//------------------------------------------------------------------------------
/** @typedef {import("../types").ESLint.Options} ESLintOptions */
/** @typedef {import("../types").ESLint.LegacyOptions} LegacyESLintOptions */
/** @typedef {import("../types").Linter.LintMessage} LintMessage */
/** @typedef {import("../options").ParsedCLIOptions} ParsedCLIOptions */
/** @typedef {import("../types").ESLint.Plugin} Plugin */
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/**
* Loads plugins with the specified names.
* @param {{ "import": (name: string) => Promise<any> }} importer An object with an `import` method called once for each plugin.
* @param {string[]} pluginNames The names of the plugins to be loaded, with or without the "eslint-plugin-" prefix.
* @returns {Promise<Record<string, Plugin>>} A mapping of plugin short names to implementations.
*/
async function loadPlugins(importer, pluginNames) {
const plugins = {};
await Promise.all(
pluginNames.map(async pluginName => {
const longName = normalizePackageName(pluginName, "eslint-plugin");
const module = await importer.import(longName);
if (!("default" in module)) {
throw new Error(
`"${longName}" cannot be used with the \`--plugin\` option because its default module does not provide a \`default\` export`,
);
}
const shortName = getShorthandName(pluginName, "eslint-plugin");
plugins[shortName] = module.default;
}),
);
return plugins;
}
/**
* Predicate function for whether or not to apply fixes in quiet mode.
* If a message is a warning, do not apply a fix.
* @param {LintMessage} message The lint result.
* @returns {boolean} True if the lint message is an error (and thus should be
* autofixed), false otherwise.
*/
function quietFixPredicate(message) {
return message.severity === 2;
}
/**
* Predicate function for whether or not to run a rule in quiet mode.
* If a rule is set to warning, do not run it.
* @param {{ ruleId: string; severity: number; }} rule The rule id and severity.
* @returns {boolean} True if the lint rule should run, false otherwise.
*/
function quietRuleFilter(rule) {
return rule.severity === 2;
}
//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
/**
* Translates the CLI options into the options expected by the ESLint constructor.
* @param {ParsedCLIOptions} cliOptions The CLI options to translate.
* @param {"flat"|"eslintrc"} [configType="eslintrc"] The format of the config to generate.
* @returns {Promise<ESLintOptions | LegacyESLintOptions>} The options object for the ESLint constructor.
*/
async function translateOptions(
{
cache,
cacheFile,
cacheLocation,
cacheStrategy,
concurrency,
config,
configLookup,
env,
errorOnUnmatchedPattern,
eslintrc,
ext,
fix,
fixDryRun,
fixType,
flag,
global,
ignore,
ignorePath,
ignorePattern,
inlineConfig,
parser,
parserOptions,
plugin,
quiet,
reportUnusedDisableDirectives,
reportUnusedDisableDirectivesSeverity,
reportUnusedInlineConfigs,
resolvePluginsRelativeTo,
rule,
rulesdir,
stats,
warnIgnored,
passOnNoPatterns,
maxWarnings,
},
configType,
) {
let overrideConfig, overrideConfigFile;
const importer = new ModuleImporter();
if (configType === "flat") {
overrideConfigFile =
typeof config === "string" ? config : !configLookup;
if (overrideConfigFile === false) {
overrideConfigFile = void 0;
}
const languageOptions = {};
if (global) {
languageOptions.globals = global.reduce((obj, name) => {
if (name.endsWith(":true")) {
obj[name.slice(0, -5)] = "writable";
} else {
obj[name] = "readonly";
}
return obj;
}, {});
}
if (parserOptions) {
languageOptions.parserOptions = parserOptions;
}
if (parser) {
languageOptions.parser = await importer.import(parser);
}
overrideConfig = [
{
...(Object.keys(languageOptions).length > 0
? { languageOptions }
: {}),
rules: rule ? rule : {},
},
];
if (
reportUnusedDisableDirectives ||
reportUnusedDisableDirectivesSeverity !== void 0
) {
overrideConfig[0].linterOptions = {
reportUnusedDisableDirectives: reportUnusedDisableDirectives
? "error"
: normalizeSeverityToString(
reportUnusedDisableDirectivesSeverity,
),
};
}
if (reportUnusedInlineConfigs !== void 0) {
overrideConfig[0].linterOptions = {
...overrideConfig[0].linterOptions,
reportUnusedInlineConfigs: normalizeSeverityToString(
reportUnusedInlineConfigs,
),
};
}
if (plugin) {
overrideConfig[0].plugins = await loadPlugins(importer, plugin);
}
if (ext) {
overrideConfig.push({
files: ext.map(
extension =>
`**/*${extension.startsWith(".") ? "" : "."}${extension}`,
),
});
}
} else {
overrideConfigFile = config;
overrideConfig = {
env:
env &&
env.reduce((obj, name) => {
obj[name] = true;
return obj;
}, {}),
globals:
global &&
global.reduce((obj, name) => {
if (name.endsWith(":true")) {
obj[name.slice(0, -5)] = "writable";
} else {
obj[name] = "readonly";
}
return obj;
}, {}),
ignorePatterns: ignorePattern,
parser,
parserOptions,
plugins: plugin,
rules: rule,
};
}
const options = {
allowInlineConfig: inlineConfig,
cache,
cacheLocation: cacheLocation || cacheFile,
cacheStrategy,
errorOnUnmatchedPattern,
fix: (fix || fixDryRun) && (quiet ? quietFixPredicate : true),
fixTypes: fixType,
ignore,
overrideConfig,
overrideConfigFile,
passOnNoPatterns,
};
if (configType === "flat") {
options.concurrency = concurrency;
options.flags = flag;
options.ignorePatterns = ignorePattern;
options.stats = stats;
options.warnIgnored = warnIgnored;
/*
* For performance reasons rules not marked as 'error' are filtered out in quiet mode. As maxWarnings
* requires rules set to 'warn' to be run, we only filter out 'warn' rules if maxWarnings is not specified.
*/
options.ruleFilter =
quiet && maxWarnings === -1 ? quietRuleFilter : () => true;
} else {
options.resolvePluginsRelativeTo = resolvePluginsRelativeTo;
options.rulePaths = rulesdir;
options.useEslintrc = eslintrc;
options.extensions = ext;
options.ignorePath = ignorePath;
if (
reportUnusedDisableDirectives ||
reportUnusedDisableDirectivesSeverity !== void 0
) {
options.reportUnusedDisableDirectives =
reportUnusedDisableDirectives
? "error"
: normalizeSeverityToString(
reportUnusedDisableDirectivesSeverity,
);
}
}
return options;
}
module.exports = translateOptions;
@@ -0,0 +1,341 @@
<p align="center">
<a href="http://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>
# vinyl-fs
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
[Vinyl][vinyl] adapter for the file system.
## What is Vinyl?
[Vinyl][vinyl] is a very simple metadata object that describes a file. When you think of a file, two attributes come to mind: `path` and `contents`. These are the main attributes on a [Vinyl][vinyl] object. A file does not necessarily represent something on your computer’s file system. You have files on S3, FTP, Dropbox, Box, CloudThingly.io and other services. [Vinyl][vinyl] can be used to describe files from all of these sources.
## What is a Vinyl Adapter?
While Vinyl provides a clean way to describe a file, we now need a way to access these files. Each file source needs what we call a "Vinyl adapter". A Vinyl adapter simply exposes a `src(globs)` and a `dest(folder)` method. Each return a stream. The `src` stream produces Vinyl objects, and the `dest` stream consumes Vinyl objects. Vinyl adapters can expose extra methods that might be specific to their input/output medium, such as the `symlink` method `vinyl-fs` provides.
## Usage
```javascript
var map = require('map-stream');
var vfs = require('vinyl-fs');
var log = function(file, cb) {
console.log(file.path);
cb(null, file);
};
vfs.src(['./js/**/*.js', '!./js/vendor/*.js'])
.pipe(map(log))
.pipe(vfs.dest('./output'));
```
## API
### `src(globs[, options])`
Takes a glob string or an array of glob strings as the first argument and an options object as the second.
Returns a stream of [vinyl] `File` objects.
__Note: UTF-8 BOM will be removed from all UTF-8 files read with `.src` unless disabled in the options.__
#### Globs
Globs are executed in order, so negations should follow positive globs.
For example:
```js
fs.src(['!b*', '*'])
```
would not exclude any files, but the following would exclude all files starting with "b":
```js
fs.src(['*', '!b*'])
```
#### Options
- Values passed to the options must be of the expected type, otherwise they will be ignored.
- All options can be passed a function instead of a value. The function will be called with the [vinyl] `File` object as its only argument and must return a value of the expected type for that option.
##### `options.buffer`
Whether or not you want to buffer the file contents into memory. Setting to `false` will make `file.contents` a paused Stream.
Type: `Boolean`
Default: `true`
##### `options.read`
Whether or not you want the file to be read at all. Useful for stuff like removing files. Setting to `false` will make `file.contents = null` and will disable writing the file to disk via `.dest()`.
Type: `Boolean`
Default: `true`
##### `options.since`
Only streams files that have been modified since the time specified.
Type: `Date` or `Number`
Default: `undefined`
##### `options.removeBOM`
Causes the BOM to be removed on UTF-8 encoded files. Set to `false` if you need the BOM for some reason.
Type: `Boolean`
Default: `true`
##### `options.sourcemaps`
Enables sourcemap support on files passed through the stream. Will load inline sourcemaps and resolve sourcemap links from files.
Type: `Boolean`
Default: `false`
##### `options.resolveSymlinks`
Whether or not to recursively resolve symlinks to their targets. Set to `false` to preserve them as symlinks and make `file.symlink` equal the original symlink's target path.
Type: `Boolean`
Default: `true`
##### `options.dot`
Whether or not you want globs to match on dot files (e.g. `.gitignore`).
__Note: This option is not resolved from a function because it is passed verbatim to node-glob.__
Type: `Boolean`
Default: `false`
##### other
Any glob-related options are documented in [glob-stream] and [node-glob] and are forwarded verbatim.
### `dest(folder[, options])`
Takes a folder path string or a function as the first argument and an options object as the second. If given a function, it will be called with each [vinyl] `File` object and must return a folder path.
Returns a stream that accepts [vinyl] `File` objects, writes them to disk at the folder/cwd specified, and passes them downstream so you can keep piping these around.
Once the file is written to disk, an attempt is made to determine if the `stat.mode`, `stat.mtime` and `stat.atime` of the [vinyl] `File` object differ from the file on the filesystem.
If they differ and the running process owns the file, the corresponding filesystem metadata is updated.
If they don't differ or the process doesn't own the file, the attempt is skipped silently.
__This functionality is disabled on Windows operating systems or any other OS that doesn't support `process.getuid` or `process.geteuid` in node. This is due to Windows having very unexpected results through usage of `fs.fchmod` and `fs.futimes`.__
__Note: The `fs.futimes()` method internally converts `stat.mtime` and `stat.atime` timestamps to seconds; this division by `1000` may cause some loss of precision in 32-bit Node.js.__
If the file has a `symlink` attribute specifying a target path, then a symlink will be created.
__Note: The file will be modified after being written to this stream.__
- `cwd`, `base`, and `path` will be overwritten to match the folder.
- `stat` will be updated to match the file on the filesystem.
- `contents` will have it's position reset to the beginning if it is a stream.
#### Options
- Values passed to the options must be of the expected type, otherwise they will be ignored.
- All options can be passed a function instead of a value. The function will be called with the [vinyl] `File` object as its only argument and must return a value of the expected type for that option.
##### `options.cwd`
The working directory the folder is relative to.
Type: `String`
Default: `process.cwd()`
##### `options.mode`
The mode the files should be created with. This option is only resolved if the [vinyl] `File` is not symbolic.
Type: `Number`
Default: The `mode` of the input file (`file.stat.mode`) if any, or the process mode if the input file has no `mode` property.
##### `options.dirMode`
The mode directories should be created with.
Type: `Number`
Default: The process `mode`.
##### `options.overwrite`
Whether or not existing files with the same path should be overwritten.
Type: `Boolean`
Default: `true` (always overwrite existing files)
##### `options.append`
Whether or not new data should be appended after existing file contents (if any).
Type: `Boolean`
Default: `false` (always replace existing contents, if any)
##### `options.sourcemaps`
Enables sourcemap support on files passed through the stream. Will write inline soucemaps if specified as `true`.
Specifying a `String` path will write external sourcemaps at the given path.
Examples:
```js
// Write as inline comments
vfs.dest('./', { sourcemaps: true });
// Write as files in the same folder
vfs.dest('./', { sourcemaps: '.' });
```
Type: `Boolean` or `String`
Default: `undefined` (do not write sourcemaps)
##### `options.relativeSymlinks`
When creating a symlink, whether or not the created symlink should be relative. If `false`, the symlink will be absolute.
__Note: This option will be ignored if a `junction` is being created, as they must be absolute.__
Type: `Boolean`
Default: `false`
##### `options.useJunctions`
When creating a symlink, whether or not a directory symlink should be created as a `junction`.
This option is only relevant on Windows and ignored elsewhere. Please refer to the [Symbolic Links on Windows][symbolic-caveats] section below.
Type: `Boolean`
Default: `true`
### `symlink(folder[, options])`
Takes a folder path string or a function as the first argument and an options object as the second. If given a function, it will be called with each [vinyl] `File` object and must return a folder path.
Returns a stream that accepts [vinyl] `File` objects, creates a symbolic link (i.e. symlink) at the folder/cwd specified, and passes them downstream so you can keep piping these around.
__Note: The file will be modified after being written to this stream.__
- `cwd`, `base`, and `path` will be overwritten to match the folder.
- `stat` will be updated to match the symlink on the filesystem.
- `contents` will be set to `null`.
- `symlink` will be added or replaced to be the original path.
__Note: On Windows, directory links are created using Junctions by default. Use the `useJunctions` option to disable this behavior.__
#### Options
- Values passed to the options must be of the expected type, otherwise they will be ignored.
- All options can be passed a function instead of a value. The function will be called with the [vinyl] `File` object as its only argument and must return a value of the expected type for that option.
##### `options.cwd`
The working directory the folder is relative to.
Type: `String`
Default: `process.cwd()`
##### `options.dirMode`
The mode directories should be created with.
Type: `Number`
Default: The process mode.
##### `options.overwrite`
Whether or not existing files with the same path should be overwritten.
Type: `Boolean`
Default: `true` (always overwrite existing files)
##### `options.relativeSymlinks`
Whether or not the created symlinks should be relative. If `false`, the symlink will be absolute.
__Note: This option will be ignored if a `junction` is being created, as they must be absolute.__
Type: `Boolean`
Default: `false`
##### `options.useJunctions`
When creating a symlink, whether or not a directory symlink should be created as a `junction`.
This option is only relevant on Windows and ignored elsewhere. Please refer to the [Symbolic Links on Windows][symbolic-caveats] section below.
Type: `Boolean`
Default: `true`
#### Symbolic Links on Windows
When creating symbolic links on Windows, we pass a `type` argument to Node's
`fs` module which specifies the kind of target we link to (one of `'file'`,
`'dir'` or `'junction'`). Specifically, this will be `'file'` when the target
is a regular file, `'junction'` if the target is a directory, or `'dir'` if
the target is a directory and the user overrides the `useJunctions` option
default.
However, if the user tries to make a "dangling" link (pointing to a non-existent
target) we won't be able to determine automatically which type we should use.
In these cases, `vinyl-fs` will behave slightly differently depending on
whether the dangling link is being created via `symlink()` or via `dest()`.
For dangling links created via `symlink()`, the incoming vinyl represents the
target and so we will look to its stats to guess the desired type. In
particular, if `isDirectory()` returns false then we'll create a `'file'` type
link, otherwise we will create a `'junction'` or a `'dir'` type link depending
on the value of the `useJunctions` option.
For dangling links created via `dest()`, the incoming vinyl represents the link -
typically read off disk via `src()` with the `resolveSymlinks` option set to
false. In this case, we won't be able to make any reasonable guess as to the
type of link and we default to using `'file'`, which may cause unexpected behavior
if you are creating a "dangling" link to a directory. It is advised to avoid this
scenario.
[symbolic-caveats]: #symbolic-links-on-windows
[glob-stream]: https://github.com/gulpjs/glob-stream
[node-glob]: https://github.com/isaacs/node-glob
[gaze]: https://github.com/shama/gaze
[glob-watcher]: https://github.com/wearefractal/glob-watcher
[vinyl]: https://github.com/wearefractal/vinyl
[downloads-image]: http://img.shields.io/npm/dm/vinyl-fs.svg
[npm-url]: https://www.npmjs.com/package/vinyl-fs
[npm-image]: http://img.shields.io/npm/v/vinyl-fs.svg
[travis-url]: https://travis-ci.org/gulpjs/vinyl-fs
[travis-image]: http://img.shields.io/travis/gulpjs/vinyl-fs.svg?label=travis-ci
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/vinyl-fs
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/vinyl-fs.svg?label=appveyor
[coveralls-url]: https://coveralls.io/r/gulpjs/vinyl-fs
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/vinyl-fs/master.svg
[gitter-url]: https://gitter.im/gulpjs/gulp
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
@@ -0,0 +1 @@
{"version":3,"file":"isRadioInput.d.ts","sourceRoot":"","sources":["../../src/utils/isRadioInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;yBAE7B,SAAS,YAAY,KAAG,OAAO,IAAI,gBAAgB;AAAnE,wBAC2B"}
@@ -0,0 +1,12 @@
import * as _heroui_system from '@heroui/system';
import { UseAvatarProps } from './use-avatar.js';
import 'tailwind-variants';
import 'react';
import '@heroui/theme';
import '@heroui/react-utils';
interface AvatarProps extends UseAvatarProps {
}
declare const Avatar: _heroui_system.InternalForwardRefRenderFunction<"span", AvatarProps, never>;
export { AvatarProps, Avatar as default };
@@ -0,0 +1 @@
{"mappings":"AAAA;;;;;;;;;;CAUC,GAED,IAAI,yCAAmB;AACvB,IAAI,mCAAa;AAEV,SAAS;IACd,yCAAmB;AACrB;AAEO,SAAS;IACd,OAAO;AACT;AAEO,SAAS;IACd,mCAAa;AACf;AAEO,SAAS;IACd,OAAO;AACT","sources":["packages/@react-stately/flags/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nlet _tableNestedRows = false;\nlet _shadowDOM = false;\n\nexport function enableTableNestedRows(): void {\n _tableNestedRows = true;\n}\n\nexport function tableNestedRows(): boolean {\n return _tableNestedRows;\n}\n\nexport function enableShadowDOM(): void {\n _shadowDOM = true;\n}\n\nexport function shadowDOM(): boolean {\n return _shadowDOM;\n}\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1 @@
{"name":"micromark-extension-gfm-task-list-item","version":"2.1.0","requiresBuild":false,"files":{"license":{"checkedAt":1794532116209,"integrity":"sha512-fzvkEDDVqhfCJpKNt4nSfCdql95dXnYBu6QTwaEDV5dX/EtSGYys2u3y/9LaRjp4jUgB4qbz5csHGjJjcZAb2Q==","mode":420,"size":1099},"dev/lib/html.js":{"checkedAt":1794532116209,"integrity":"sha512-0iUGl5Fk3DYHEfeaj1oFxpbR07U+6CCUut6AzHq1S+ELwuV5SQk5lmyguyInbV+rd/nBlQToYzKfjZL9/7pQWQ==","mode":420,"size":654},"lib/html.js":{"checkedAt":1794532116209,"integrity":"sha512-i+iTE1u8QydBQf8Am8qOL8HTU0w9epNJ7/ouWAikZvYUR7ZcQgr3ZkFB8Ns6lrX+dJej7T7tjdSwO/JtEvp5VA==","mode":420,"size":657},"dev/index.js":{"checkedAt":1794532116210,"integrity":"sha512-ISrCGJ0xiKq53osnooXSPnJe0ZXrZaWiXlGqw1yfIVAfKEQ+ubhJ2DLNwNftmn+vylaGucEDkwezWusO17QgLQ==","mode":420,"size":98},"index.js":{"checkedAt":1794532116210,"integrity":"sha512-melxmEO88XGomBkviOUUtaXvVgP6e7THcwaJ9nrLMo/REo32OBu0GKPM5PaAccbSGAFk07KMc99JJfNdhGsO1g==","mode":420,"size":103},"dev/lib/syntax.js":{"checkedAt":1794532116210,"integrity":"sha512-Zdc+6uf+IMQV/jpVYJpVBcgUfjnDvCfcBL3cIwFm2I8cxLInEp7GHgIszrcaVU0voWh6fNtQg8+wH6Ta/ngz8w==","mode":420,"size":3756},"lib/syntax.js":{"checkedAt":1794532116210,"integrity":"sha512-UpjY5CVlEOhGuQVghqD3IQJB2O8AIxcFhfCF+DRrndEK4m58wst9J8p6Y4An9zjZFJk125zptJKUBo6QWMxZAg==","mode":420,"size":3563},"package.json":{"checkedAt":1794532116210,"integrity":"sha512-HN3yPb9w3WVN7m1c1jiZIiyC7ZrjmYtKlj0PnLdTcLGtLgvSx5hwUoKDO2EoXiowlo5YHt6qinL8eU3cCPc0pA==","mode":420,"size":3295},"readme.md":{"checkedAt":1794532116210,"integrity":"sha512-Mw1NJ6NpeRY996r38B/pNGGJPfzK/YHN0vec+6+n5HTRo2o4m9SCQhJ938vYDmyfdeTq5Z49scYyYWx36RL/vg==","mode":420,"size":8711},"dev/lib/html.d.ts":{"checkedAt":1794532116210,"integrity":"sha512-eVQVhLDW49O2Xe++OSlCGZA7frZ4F1XQODXJQtq5BWi9opqg5Ht+CJxAGi8x4QxN49oCx2s71RSRzPLMSUc5ow==","mode":420,"size":451},"lib/html.d.ts":{"checkedAt":1794532116210,"integrity":"sha512-eVQVhLDW49O2Xe++OSlCGZA7frZ4F1XQODXJQtq5BWi9opqg5Ht+CJxAGi8x4QxN49oCx2s71RSRzPLMSUc5ow==","mode":420,"size":451},"dev/index.d.ts":{"checkedAt":1794532116211,"integrity":"sha512-kkiDxXeMasW+1MJO1KiA1yspIpbPAjw672J5nZtPi6QHxMbNNFwaBnXsXALgNXNBHLkrnc0fAD/3Ck/N7Bt77g==","mode":420,"size":432},"index.d.ts":{"checkedAt":1794532116211,"integrity":"sha512-kkiDxXeMasW+1MJO1KiA1yspIpbPAjw672J5nZtPi6QHxMbNNFwaBnXsXALgNXNBHLkrnc0fAD/3Ck/N7Bt77g==","mode":420,"size":432},"dev/lib/syntax.d.ts":{"checkedAt":1794532116211,"integrity":"sha512-HW93kXvVsKUqSlvL+Tvb40Pee/dp8dAw/AnXMFDml5qCURwFaAiKLctEY7o1v3An/AgyHz6H5b//Fs3uuerwkQ==","mode":420,"size":354},"lib/syntax.d.ts":{"checkedAt":1794532116211,"integrity":"sha512-HW93kXvVsKUqSlvL+Tvb40Pee/dp8dAw/AnXMFDml5qCURwFaAiKLctEY7o1v3An/AgyHz6H5b//Fs3uuerwkQ==","mode":420,"size":354}}}
@@ -0,0 +1,46 @@
# String.prototype.trimEnd <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
An ES2019-spec-compliant `String.prototype.trimEnd` shim. Invoke its "shim" method to shim `String.prototype.trimEnd` if it is unavailable.
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://www.ecma-international.org/ecma-262/6.0/#sec-object.assign). In an ES6 environment, it will also work properly with `Symbol`s.
Most common usage:
```js
var trimEnd = require('string.prototype.trimend');
assert(trimEnd(' \t\na \t\n') === 'a \t\n');
if (!String.prototype.trimEnd) {
trimEnd.shim();
}
assert(trimEnd(' \t\na \t\n ') === ' \t\na \t\n '.trimEnd());
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.com/package/string.prototype.trimend
[npm-version-svg]: https://vb.teelaun.ch/es-shims/String.prototype.trimEnd.svg
[deps-svg]: https://david-dm.org/es-shims/String.prototype.trimEnd.svg
[deps-url]: https://david-dm.org/es-shims/String.prototype.trimEnd
[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.trimEnd/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.trimEnd#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/string.prototype.trimend.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/string.prototype.trimend.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/string.prototype.trimend.svg
[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.trimend
[codecov-image]: https://codecov.io/gh/es-shims/String.prototype.trimEnd/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/String.prototype.trimEnd/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/String.prototype.trimEnd
[actions-url]: https://github.com/es-shims/String.prototype.trimEnd/actions
@@ -0,0 +1,86 @@
A handful of native addons require linking to OpenSSL in one way or another. This introduces a small challenge since node will sometimes bundle OpenSSL statically (the default for node >= v0.8.x), or sometimes dynamically link to the system OpenSSL (default for node <= v0.6.x).
Good native addons should account for both scenarios. It's recommended that you use the `binding.gyp` file provided below as a starting-point for any addon that needs to use OpenSSL:
``` python
{
'variables': {
# node v0.6.x doesn't give us its build variables,
# but on Unix it was only possible to use the system OpenSSL library,
# so default the variable to "true", v0.8.x node and up will overwrite it.
'node_shared_openssl%': 'true'
},
'targets': [
{
'target_name': 'binding',
'sources': [
'src/binding.cc'
],
'conditions': [
['node_shared_openssl=="false"', {
# so when "node_shared_openssl" is "false", then OpenSSL has been
# bundled into the node executable. So we need to include the same
# header files that were used when building node.
'include_dirs': [
'<(node_root_dir)/deps/openssl/openssl/include'
],
"conditions" : [
["target_arch=='ia32'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
}],
["target_arch=='x64'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
}],
["target_arch=='arm'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
}]
]
}]
]
}
]
}
```
This ensures that when OpenSSL is statically linked into `node` then, the bundled OpenSSL headers are included, but when the system OpenSSL is in use, then only those headers will be used.
## Windows?
As you can see this baseline `binding.gyp` file only accounts for the Unix scenario. Currently on Windows the situation is a little less ideal. On Windows, OpenSSL is _always_ statically compiled into the `node` executable, so ideally it would be possible to use that copy of OpenSSL when building native addons.
Unfortunately it doesn't seem like that is possible at the moment, as there would need to be tweaks made to the generated `node.lib` file to include the openssl glue functions, or a new `openssl.lib` file would need to be created during the node build. I'm not sure which is the easiest/most feasible.
In the meantime, one possible solution is using another copy of OpenSSL, which is what [`node-bcrypt`](https://github.com/ncb000gt/node.bcrypt.js) currently does. Adding something like this to your `binding.gyp` file's `"conditions"` block would enable this:
``` python
[ 'OS=="win"', {
'conditions': [
# "openssl_root" is the directory on Windows of the OpenSSL files.
# Check the "target_arch" variable to set good default values for
# both 64-bit and 32-bit builds of the module.
['target_arch=="x64"', {
'variables': {
'openssl_root%': 'C:/OpenSSL-Win64'
},
}, {
'variables': {
'openssl_root%': 'C:/OpenSSL-Win32'
},
}],
],
'libraries': [
'-l<(openssl_root)/lib/libeay32.lib',
],
'include_dirs': [
'<(openssl_root)/include',
],
}]
```
Now you can direct your users to install OpenSSL on Windows from here (be sure to tell them to install the 64-bit version if they're compiling against a 64-bit version of node): http://slproweb.com/products/Win32OpenSSL.html
Also note that both `node-gyp` and `npm` allow you to overwrite that default `openssl_root` variable on the command line:
``` bash
$ node-gyp rebuild --openssl-root="C:\Users\Nathan\Desktop\openssl"
```
@@ -0,0 +1,5 @@
import { ClassElementMetadata } from '../models/ClassElementMetadata';
import { ClassMetadata } from '../models/ClassMetadata';
import { InjectFromOptions } from '../models/InjectFromOptions';
export declare function getExtendedProperties(options: InjectFromOptions, baseTypeClassMetadata: ClassMetadata, typeMetadata: ClassMetadata): Map<string | symbol, ClassElementMetadata>;
//# sourceMappingURL=getExtendedProperties.d.ts.map
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB 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 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 0C 1C"},D:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"A B C L M G aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D E F 2C ZC 3C 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB FD GD HD ID NC uC JD OC"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC","2":"E ZC KD vC LD MD ND OD PD QD"},H:{"2":"hD"},I:{"1":"I","2":"TC J iD jD kD lD vC mD nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD","2":"J"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:6,C:"Arrow functions",D:true};
@@ -0,0 +1,117 @@
/**
* @author Toru Nagashima
* See LICENSE file in root directory for full license.
*/
"use strict"
const path = require("path")
const globrex = require("globrex")
/** @typedef {import("../util/import-target")} ImportTarget */
/**
* @typedef DefinitionData
* @property {string | string[]} name The name to disallow.
* @property {string} [message] The custom message to show.
*/
/**
* Check if matched or not.
* @param {globrex.Results} matcher The globrex "matcher".
* @param {boolean} absolute The flag that the matcher is for absolute paths.
* @param {import('./import-target.js')} importee The importee information.
*/
function match(matcher, absolute, { filePath, name }) {
if (absolute) {
return filePath != null && matcher.regex.test(filePath)
}
return matcher.regex.test(name)
}
/** Restriction. */
class Restriction {
/**
* Initialize this restriction.
* @param {DefinitionData} def The definition of a restriction.
*/
constructor({ name, message }) {
const names = Array.isArray(name) ? name : [name]
const matchers = names.map(raw => {
const negate = raw[0] === "!" && raw[1] !== "("
const pattern = negate ? raw.slice(1) : raw
const absolute = path.isAbsolute(pattern)
const matcher = globrex(pattern, { globstar: true })
return { absolute, matcher, negate }
})
this.matchers = matchers
this.message = message ? ` ${message}` : ""
}
/**
* Check if a given importee is disallowed.
* @param {import('./import-target.js')} importee The importee to check.
* @returns {boolean} `true` if the importee is disallowed.
*/
match(importee) {
return this.matchers.reduce(
(ret, { absolute, matcher, negate }) =>
negate
? ret && !match(matcher, absolute, importee)
: ret || match(matcher, absolute, importee),
false
)
}
}
/**
* Create a restriction.
* @param {string | DefinitionData} def A definition.
* @returns {Restriction} Created restriction.
*/
function createRestriction(def) {
if (typeof def === "string") {
return new Restriction({ name: def })
}
return new Restriction(def)
}
/**
* Create restrictions.
* @param {(string | DefinitionData)[]} defs Definitions.
* @returns {(Restriction)[]} Created restrictions.
*/
function createRestrictions(defs) {
return (defs || []).map(createRestriction)
}
/**
* Checks if given importees are disallowed or not.
* @param {import('eslint').Rule.RuleContext} context - A context to report.
* @param {import('./import-target.js')[]} targets - A list of target information to check.
* @returns {void}
*/
exports.checkForRestriction = function checkForRestriction(context, targets) {
const restrictions = createRestrictions(
/** @type {string[]} */ (context.options[0])
)
for (const target of targets) {
const restriction = restrictions.find(r => r.match(target))
if (restriction) {
context.report({
node: target.node,
messageId: "restricted",
data: {
name: target.name,
customMessage: restriction.message,
},
})
}
}
}
exports.messages = {
restricted:
"'{{name}}' module is restricted from being used.{{customMessage}}",
}
@@ -0,0 +1 @@
{"name":"axobject-query","version":"4.1.0","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532118128,"integrity":"sha512-RlKUwbPCXPsGYr/W8GM75I5vA4jSRfqFWDn0+oVmgY3yzzClO/nQ7AQZPxym2Xjv6Ww768aj3Ncsme3MHeT1Gw==","mode":493,"size":10236},"lib/etc/objects/AbbrRole.js":{"checkedAt":1794532118128,"integrity":"sha512-P7li9ppKE2UMad3pBQtpJYIFX9TtXUGFemIvvKUd05jzfc+afTl9UhuzRbN1VyA+BgNvLWqG7zjTL0nD58MtFA==","mode":420,"size":286},"lib/etc/objects/AlertDialogRole.js":{"checkedAt":1794532118129,"integrity":"sha512-UnNCIu6KFpYOzBfpGgw+7Ll1FBHDXu99dIoBv8nCw1sN+YC1a+2bz7jr9zWjEZVCPWGNrTL6nakDSHw9rVZ7/g==","mode":420,"size":304},"lib/etc/objects/AlertRole.js":{"checkedAt":1794532118129,"integrity":"sha512-+/PodfxLbKQwBZYxTIEwohelc2WY92KQjyupXNeZ3XFFIVN9GBRAP26++kDStOy/RCFLBVIOwdXdGmyyjIiKyA==","mode":420,"size":289},"lib/etc/objects/AnnotationRole.js":{"checkedAt":1794532118129,"integrity":"sha512-kBgWOW3mIs/D0z4r/16JaMXr2rr6r12Y1sCWOnIPI6kjzzMFo21CNtXlsELZYRavYRN9SxJWda+fesLn+VSsiA==","mode":420,"size":233},"lib/etc/objects/ApplicationRole.js":{"checkedAt":1794532118129,"integrity":"sha512-9+kTaT8/aujmC7YwvBjYUbhVB9yzz/ZdMEyivtIrQqJxJIJZIJbcI6Nj0Jjgixc/kJ2RWNZj3lNdPS817BwMEg==","mode":420,"size":304},"lib/etc/objects/ArticleRole.js":{"checkedAt":1794532118129,"integrity":"sha512-diEcgk3R385PgnxEeS70zlBMTmofevoG0fXWC/trK6tCTA8br4PlalNklbvNNKhOWyZEDzp4UmlFZVMYXfkwFA==","mode":420,"size":365},"lib/etc/objects/AudioRole.js":{"checkedAt":1794532118129,"integrity":"sha512-KBDcIfzmA5jeGM49SR1kTP6JQ4oC6/6h9dNYpWM7WRPSc0SpPJD/OECaRZjhkhslD5PzEHiTfdCdg+vE2BXhgA==","mode":420,"size":286},"lib/AXObjectElementMap.js":{"checkedAt":1794532118129,"integrity":"sha512-NxjnYuFxv34fRJxoEoYBKlSJAc2RnDEyQzw0tikN9gerwoZAeP06xyxnyGBJKSTXNw5Bh2YqdKqSitBNJfNKEw==","mode":420,"size":5272},"lib/AXObjectRoleMap.js":{"checkedAt":1794532118129,"integrity":"sha512-WZrmZqlpOhWL8Piy/SP3B7TbpoEJM/zBVmVahIVr4MAULt0hoUESRCo6gjgam32+uAMvFfdlXuRzA27lQ6AKmA==","mode":420,"size":5322},"lib/AXObjectsMap.js":{"checkedAt":1794532118130,"integrity":"sha512-9esOVozjoPHnEt9UB3KxcPVvnYmbDitfo6sGEomcN+IYe1Tlw8adBo8zv/fIgcZGzCVnPIBW3I742zQx1+g2Yw==","mode":420,"size":18581},"lib/etc/objects/BannerRole.js":{"checkedAt":1794532118130,"integrity":"sha512-iTUPPm5VCAlkZ79Lr2h5IjRcoTmN50y0xNfEhCtoOrc32mqDDwF6OnG/q5qH6d6MfdpfmJlrMWntNtrrcEuPuw==","mode":420,"size":292},"lib/etc/objects/BlockquoteRole.js":{"checkedAt":1794532118130,"integrity":"sha512-ZBuH2y4fVIyq+DgglRFpG24TUsvcAu3oxV99vVaU+eS2Kc5YjI5z9iWFatHB60/foFtcbJARPYuEmYT2cZrZuw==","mode":420,"size":304},"lib/etc/objects/BusyIndicatorRole.js":{"checkedAt":1794532118130,"integrity":"sha512-YwChPmh8sGXY8/2O6t+Vo2uG0W54RGcAHiddDpPNV0wRTjXRV9DZJMfMqKupj0JKntwxYyy6Tpw9u4HLvKC2Sg==","mode":420,"size":361},"lib/etc/objects/ButtonRole.js":{"checkedAt":1794532118130,"integrity":"sha512-XkuH1F5gmI1cBOioc/wBrp1H0uksf005w1PUFiPwStbG0Uq79LegvCeH74vpKlQq0XX2NDoKNw1HIj4rexieAQ==","mode":420,"size":358},"lib/etc/objects/CanvasRole.js":{"checkedAt":1794532118130,"integrity":"sha512-m3TtDCkI7FAwwC93/4Jv44M5HBEAxv+8v6ndCo61LqpCMXMZKMCBwdRrN5wyt6/6+UFPo/ACiv40RgLiMSoZtg==","mode":420,"size":289},"lib/etc/objects/CaptionRole.js":{"checkedAt":1794532118130,"integrity":"sha512-w9AQOS3zHsEqCzYX2Ip0SwYw/g/W3C2ZAKAZyS/7ls+rPABeQs3gpKB7ksm+A5o0+pWGhXswlKHOF4DhRsiXzA==","mode":420,"size":295},"lib/etc/objects/CellRole.js":{"checkedAt":1794532118131,"integrity":"sha512-yVIer2pxu+LyKkp7pfwjDpZoh4xWFOKNzkXWSnpDVyW5dVU3FWDaQ+OJUExggy1vHlFzMqDTDdubXbIWGYtU0w==","mode":420,"size":419},"lib/etc/objects/CheckBoxRole.js":{"checkedAt":1794532118131,"integrity":"sha512-ECnRmi1fElUjQFEPDeOfNPLoXmC8WSZilOaegm5e0Kq1EdTyxTuBkJ+ZUpKFL341M/keIrzDZnVAnBQbBfT6QA==","mode":420,"size":442},"lib/etc/objects/ColorWellRole.js":{"checkedAt":1794532118131,"integrity":"sha512-cm9HZq4C/ivO0q7nHPyR7lgS0KnBPleBf6e/OwO+jMVtTHjnT11pd5qlHCK+BoCF3KgCjKsssD8RsSrygkJwPQ==","mode":420,"size":370},"lib/etc/objects/ColumnHeaderRole.js":{"checkedAt":1794532118131,"integrity":"sha512-MFSvxmjlJ9iekc2lD9IoVyXK5ibLKYrhdL0ttOIXqKZQw5ws+QA+iHv4ZeTtMHjgin0u07ji8o3+Wy6mQfErLw==","mode":420,"size":372},"lib/etc/objects/ColumnRole.js":{"checkedAt":1794532118131,"integrity":"sha512-Yvkwz+aND+l6ES8vthXyR9hPgUaKSO90LJ3pjZNb0pWPb/KaVG6vlkh1fU2NaXwZXkPRjKJqCMrzPIWU7GW6YA==","mode":420,"size":225},"lib/etc/objects/ComboBoxRole.js":{"checkedAt":1794532118131,"integrity":"sha512-IxBsEbGV0VMisHVNMS6tZjm70bSEk1Mbku8Vjxib0Q4+qVGAKktwXQaWXVQurOtTCW8+vZcEk8YdoPMxdNjyaQ==","mode":420,"size":364},"lib/etc/objects/ComplementaryRole.js":{"checkedAt":1794532118131,"integrity":"sha512-q+9MxfB68HiLLYGiWqiZOqWn4ThagHgAJhHapxX/6ihNuLRkslG+ZOeIk3IpdgGVy/vjVAyq+NJlaF50Dowvmg==","mode":420,"size":313},"lib/etc/objects/ContentInfoRole.js":{"checkedAt":1794532118131,"integrity":"sha512-XHfuKbN1UJdSPpgarLuQCHxG0fYobQSNyGj2OorT1RV/wQXAiNqf1N9doHMyuXrSc/UuiYn1jQ1/4NJLLDcE8A==","mode":420,"size":309},"lib/etc/objects/DateRole.js":{"checkedAt":1794532118132,"integrity":"sha512-/sy/rlMmyk2WL40Uf6m27yNG/9Di7S5QexKNZk1Line truncated
@@ -0,0 +1,68 @@
/**
* @fileoverview Disallow sparse arrays
* @author Nicholas C. Zakas
*/
"use strict";
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
type: "problem",
docs: {
description: "Disallow sparse arrays",
recommended: true,
url: "https://eslint.org/docs/latest/rules/no-sparse-arrays",
},
schema: [],
messages: {
unexpectedSparseArray: "Unexpected comma in middle of array.",
},
},
create(context) {
//--------------------------------------------------------------------------
// Public
//--------------------------------------------------------------------------
return {
ArrayExpression(node) {
if (!node.elements.includes(null)) {
return;
}
const { sourceCode } = context;
let commaToken;
for (const [index, element] of node.elements.entries()) {
if (index === node.elements.length - 1 && element) {
return;
}
commaToken = sourceCode.getTokenAfter(
element ?? commaToken ?? sourceCode.getFirstToken(node),
astUtils.isCommaToken,
);
if (element) {
continue;
}
context.report({
node,
loc: commaToken.loc,
messageId: "unexpectedSparseArray",
});
}
},
};
},
};
@@ -0,0 +1,824 @@
flf2a$ 8 7 20 -1 7
NIPPLES by Ron Fritz 8/94
Figlet Release 2.0
---
Font modified June 17, 2007 by patorjk
This was to widen the space character.
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@@
{__@
{__@
{__@
{_ @
{_ @
@
{__@
@@
{_ {_@
{_ {_@
@
@
@
@
@
@@
@
{__ {__ @
{______ {____@
{__ {__ @
{__ {__ @
{______ {____@
{__ {__ @
@@
{__ @
{_ {__ @
{__ @
{__ @
{__@
{__ {__ @
{__ @
@@
@
{__ {__ @
{__ @
{__ @
{__ @
{__ @
{__ {__ @
@@
{_ @
{__ {__@
{__ @
{___ @
{__ @
{__ {__@
{_ @
@@
{__@
{_@
@
@
@
@
@
@@
{__@
{__ @
{__ @
{__ @
{__ @
{__ @
{__@
@@
{__ @
{__ @
{__@
{__@
{__@
{__ @
{__ @
@@
{__ @
{__ {__ {__@
{_ {_ {__ @
{____ {_______@
{_ {_ {__ @
{__ {__ {__@
{__ @
@@
@
{__ @
{__ @
{___ {_____@
{__ @
{__ @
@
@@
@
@
@
@
@
@
{__@
{_@@
@
@
@
{_____@
@
@
@
@@
@
@
@
@
@
@
{__@
@@
{__@
{__ @
{__ @
{__ @
{__ @
{__ @
{__ @
@@
@
{__ @
{__ {__ @
{__ {__ @
{__ {__@
{__ {__ @
{___ @
@@
@
{__ @
{__ @
{__ @
{__ @
{__ @
{____@
@@
@
{__ {_ @
{_ {__@
{__ @
{__ @
{__ @
{________ @
@@
@
{__ {__ @
{__ @
{__ @
{__ @
{__@
{_____ @
@@
@
{__ @
{ {__ @
{_ {__ @
{__ {__ @
{____ {_ {__@
{__ @
@@
@
{__ {___ @
{__ @
{___ @
{__ @
{__@
{___ {__ @
@@
@
{__ @
{__ @
{__ @
{_ {__ @
{__ {__@
{__ {__ @
@@
@
{_____ {__@
{__ @
{__ @
{__ @
{__ @
{__ @
@@
@
{_ @
{__ {__ @
{__ {_ @
{__ {_ @
{__ {__@
{____ @
@@
@
{_ {__ @
{__ {__@
{_ {__ @
{_ {__ @
{__ @
{__ @
@@
@
@
@
@
{__@
@
{__@
@@
@
@
@
@
{__@
@
{__@
{_@@
{__@
{__ @
{__ @
{__ @
{__ @
{__ @
{__@
@@
@
@
{______@
@
{______@
@
@
@@
{__ @
{__ @
{__ @
{__@
{__ @
{__ @
{__ @
@@
{___ @
{__ @
{__@
{__ @
{__ @
@
{__ @
@@
@
{___ @
{_ {__ @
{_ {__ {__@
{__ {__{ {__@
{__ ``` @
{__ @
@@
{_ @
{_ __ @
{_ {__ @
{__ {__ @
{______ {__ @
{__ {__ @
{__ {__@
@@
{__ {__ @
{_ {__ @
{_ {__@
{___ {_ @
{_ {__@
{_ {_@
{____ {__ @
@@
{__ @
{__ {__@
{__ @
{__ @
{__ @
{__ {__@
{____ @
@@
{_____ @
{__ {__ @
{__ {__@
{__ {__@
{__ {__@
{__ {__ @
{_____ @
@@
{________@
{__ @
{__ @
{______ @
{__ @
{__ @
{________@
@@
{________@
{__ @
{__ @
{______ @
{__ @
{__ @
{__ @
@@
{____ @
{_ {__ @
{__ @
{__ @
{__ {____@
{__ {_ @
{_____ @
@@
{__ {__@
{__ {__@
{__ {__@
{______ {__@
{__ {__@
{__ {__@
{__ {__@
@@
{__@
{__@
{__@
{__@
{__@
{__@
{__@
@@
{__@
{__@
{__@
{__@
{__@
{_ {__@
{____ @
@@
{__ {__ @
{__ {__ @
{__ {__ @
{_ {_ @
{__ {__ @
{__ {__ @
{__ {__@
@@
{__ @
{__ @
{__ @
{__ @
{__ @
{__ @
{________@
@@
{__ {__@
{_ {__ {___@
{__ {__ { {__@
{__ {__ {__@
{__ {_ {__@
{__ {__@
{__ {__@
@@
{___ {__@
{_ {__ {__@
{__ {__ {__@
{__ {__ {__@
{__ {_ {__@
{__ {_ __@
{__ {__@
@@
{____ @
{__ {__ @
{__ {__@
{__ {__@
{__ {__@
{__ {__ @
{____ @
@@
{_______ @
{__ {__@
{__ {__@
{_______ @
{__ @
{__ @
{__ @
@@
{____ @
{__ {__ @
{__ {__@
{__ {__@
{__ {__@
{__ {_ {__ @
{__ __ @
{_ @@
{_______ @
{__ {__ @
{__ {__ @
{_ {__ @
{__ {__ @
{__ {__ @
{__ {__@
@@
{__ __ @
{__ {__@
{__ @
{__ @
{__ @
{__ {__@
{__ __ @
@@
{___ {______@
{__ @
{__ @
{__ @
{__ @
{__ @
{__ @
@@
{__ {__@
{__ {__@
{__ {__@
{__ {__@
{__ {__@
{__ {__@
{_____ @
@@
{__ {__@
{__ {__ @
{__ {__ @
{__ {__ @
{__ {__ @
{____ @
{__ @
@@
{__ {__@
{__ {__@
{__ {_ {__@
{__ {__ {__@
{__ {_ {__ {__@
{_ {_ {____@
{__ {__@
@@
{__ {__@
{__ {__ @
{__ {__ @
{__ @
{__ {__ @
{__ {__ @
{__ {__@
@@
{__ {__@
{__ {__ @
{__ {__ @
{__ @
{__ @
{__ @
{__ @
@@
{_______ {__@
{__ @
{__ @
{__ @
{__ @
{__ @
{___________@
@@
{____@
{__ @
{__ @
{__ @
{__ @
{__ @
{____@
@@
{__ @
{__ @
{__ @
{__ @
{__ @
{__ @
{__@
@@
{____@
{__@
{__@
{__@
{__@
{__@
{____@
@@
{__ @
{__ {__ @
{__ {__@
@
@
@
@
@@
@
@
@
@
@
@
@
{_____@@
{__@
{_ @
@
@
@
@
@
@@
@
@
{__ @
{__ {__ @
{__ {__ @
{__ {__ @
{__ {___@
@@
{__ @
{__ @
{__ @
{__ {__ @
{__ {__@
{__ {__@
{__ {__ @
@@
@
@
{___@
{__ @
{__ @
{__ @
{___@
@@
{__@
{__@
{__@
{__ {__@
{_ {__@
{_ {__@
{__ {__@
@@
@
@
{__ @
{_ {__ @
{_____ {__@
{_ @
{____ @
@@
{__@
{_ @
{_{_ {_@
{__ @
{__ @
{__ @
{__ @
@@
@
@
{__ @
{__ {__@
{__ {__@
{__ {__@
{__ @
{__ @@
@
{__ @
{__ @
{_ {_ @
{__ {__@
{_ {__@
{__ {__@
@@
@
{_@
@
{__@
{__@
{__@
{__@
@@
@
{__@
@
{__@
{__@
{__@
{__@
{___ @@
{__ @
{__ @
{__ {__@
{__ {__ @
{_{__ @
{__ {__ @
{__ {__@
@@
{__@
{__@
{__@
{__@
{__@
{__@
{___@
@@
@
@
{___ {__ {__ @
{__ {_ {__@
{__ {_ {__@
{__ {_ {__@
{___ {_ {__@
@@
@
@
{__ {__ @
{__ {__@
{__ {__@
{__ {__@
{___ {__@
@@
@
@
{__ @
{__ {__ @
{__ {__@
{__ {__ @
{__ @
@@
@
@
{_ {__ @
{_ {__ @
{_ {__@
{__ {__ @
{__ @
{__ @@
@
@
{__ @
{_ {__ @
{_ {__ @
{__{__ @
{__ @
{___@@
@
@
{_ {___@
{__ @
{__ @
{__ @
{___ @
@@
@
@
{____ @
{__ @
{___ @
{__@
{__ {__@
@@
{__ @
{__ @
{_{_ {_@
{__ @
{__ @
{__ @
{__ @
@@
@
@
{__ {__@
{__ {__@
{__ {__@
{__ {__@
{__{__@
@@
@
@
{__ {__@
{__ {__ @
{__ {__ @
{_{__ @
{__ @
@@
@
@
{__ {___@
{__ _ {__@
{__ {_ {__@
{_ {_ {_{__@
{___ {___@
@@
@
@
{__ {__@
{_ {__ @
{_ @
{_ {__ @
{__ {__@
@@
@
@
{__ {__@
{__ {__ @
{___ @
{__ @
{__ @
{__ @@
@
@
{____ {__@
{__ @
{__ @
{__ @
{________@
@@
{__@
{__ @
{__ @
{__ @
{__ @
{__ @
{__@
@@
{_@
{_@
{_@
@
{_@
{_@
{_@
@@
__} @
__} @
__} @
__}@
__} @
__} @
__} @
@@
{__ {_ @
{_ {__@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@@
@@ -0,0 +1,53 @@
import {useRef as $gbmns$useRef, useCallback as $gbmns$useCallback, useMemo as $gbmns$useMemo} from "react";
/*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $df56164dff5785e2$export$4338b53315abf666(ref) {
const objRef = (0, $gbmns$useRef)(null);
const cleanupRef = (0, $gbmns$useRef)(undefined);
const refEffect = (0, $gbmns$useCallback)((instance)=>{
if (typeof ref === 'function') {
const refCallback = ref;
const refCleanup = refCallback(instance);
return ()=>{
if (typeof refCleanup === 'function') refCleanup();
else refCallback(null);
};
} else if (ref) {
ref.current = instance;
return ()=>{
ref.current = null;
};
}
}, [
ref
]);
return (0, $gbmns$useMemo)(()=>({
get current () {
return objRef.current;
},
set current (value){
objRef.current = value;
if (cleanupRef.current) {
cleanupRef.current();
cleanupRef.current = undefined;
}
if (value != null) cleanupRef.current = refEffect(value);
}
}), [
refEffect
]);
}
export {$df56164dff5785e2$export$4338b53315abf666 as useObjectRef};
//# sourceMappingURL=useObjectRef.module.js.map
@@ -0,0 +1,128 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v1.0.9](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.8...v1.0.9) - 2024-12-11
### Commits
- [actions] split out node 10-20, and 20+ [`7e5ffdc`](https://github.com/es-shims/String.prototype.trimEnd/commit/7e5ffdc2ab30b09e19773f35df5dceffddc660d4)
- [meta] sort package.json mildly [`2f99c8b`](https://github.com/es-shims/String.prototype.trimEnd/commit/2f99c8bc69d50dc0c56af3900cc31129ef42bc1b)
- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `auto-changelog`, `tape` [`2774fe6`](https://github.com/es-shims/String.prototype.trimEnd/commit/2774fe6660c9de92eacf2a8173f494aa151b1fc1)
- [Refactor] use `call-bound` directly [`9e3bbec`](https://github.com/es-shims/String.prototype.trimEnd/commit/9e3bbec66695b715ec38f832aa472e1a82ffe095)
- [Tests] replace `aud` with `npm audit` [`cb9a462`](https://github.com/es-shims/String.prototype.trimEnd/commit/cb9a4623b86d2a91cb0a5b704739b6fe43078abd)
- [meta] add missing `engines.node` [`f46c829`](https://github.com/es-shims/String.prototype.trimEnd/commit/f46c829985a3c78e92482247fe30800781b4a9e3)
- [Deps] update `call-bind` [`e892c32`](https://github.com/es-shims/String.prototype.trimEnd/commit/e892c32d30aaaee372c8159b7ac94d564cf7f0e9)
- [Dev Deps] add missing peer dep [`e1a59da`](https://github.com/es-shims/String.prototype.trimEnd/commit/e1a59da39cc18bbe546371b12d39f86b4c947896)
## [v1.0.8](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.7...v1.0.8) - 2024-03-16
### Commits
- [Refactor] replace `es-abstract` with `es-object-atoms` [`0df2b01`](https://github.com/es-shims/String.prototype.trimEnd/commit/0df2b018d3ba214e2435b9841a7a03fc06c24fd0)
- [Dev Deps] update `aud`, `npmignore`, `tape` [`190e9c5`](https://github.com/es-shims/String.prototype.trimEnd/commit/190e9c5d74f84d8f90f61c9e9ad4b05f657df830)
## [v1.0.7](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.6...v1.0.7) - 2023-09-07
### Commits
- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `tape` [`1a10293`](https://github.com/es-shims/String.prototype.trimEnd/commit/1a102935636b564cd346d83666f62a9398864081)
- [Deps] update `define-properties`, `es-abstract` [`6ba2e19`](https://github.com/es-shims/String.prototype.trimEnd/commit/6ba2e19a78f9c63bad2daf0627ce7f2e33f1aeb9)
## [v1.0.6](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.5...v1.0.6) - 2022-11-07
### Commits
- [meta] use `npmignore` to autogenerate an npmignore file [`1d1e717`](https://github.com/es-shims/String.prototype.trimEnd/commit/1d1e71720ada81e484c9bffb386f65d7a6a1335e)
- [actions] update rebase action to use reusable workflow [`83f2683`](https://github.com/es-shims/String.prototype.trimEnd/commit/83f268325cc37ca72bea995281167a9d2821810b)
- [Dev Deps] update `aud`, `tape` [`a3a9129`](https://github.com/es-shims/String.prototype.trimEnd/commit/a3a9129dd995a949bdb93d278f403aa400e088ed)
- [Deps] update `es-abstract` [`a6e476d`](https://github.com/es-shims/String.prototype.trimEnd/commit/a6e476dc0120a41a22e66b5079bf3b407da387fa)
## [v1.0.5](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.4...v1.0.5) - 2022-05-02
### Commits
- [actions] reuse common workflows [`69a56ce`](https://github.com/es-shims/String.prototype.trimEnd/commit/69a56ce95343848d5e498f8e939a0697db8ac9f2)
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`5d7db31`](https://github.com/es-shims/String.prototype.trimEnd/commit/5d7db314948faac975705db56305b6cc3dae7ba9)
- [Fix] ensure main entry point properly checks the receiver in ES3 engines [`bb1983d`](https://github.com/es-shims/String.prototype.trimEnd/commit/bb1983dc27504733ab883a42f55b134f679a642d)
- [Fix] as of unicode v6, the mongolian vowel separator is no longer whitespace [`10a1091`](https://github.com/es-shims/String.prototype.trimEnd/commit/10a10916e1ffc8cdab78515b2cc521cc74c08277)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `safe-publish-latest`, `tape` [`a08e14b`](https://github.com/es-shims/String.prototype.trimEnd/commit/a08e14bfea5e27d419ef742e83f467a169a69971)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `functions-have-names`, `tape` [`1c4c8da`](https://github.com/es-shims/String.prototype.trimEnd/commit/1c4c8dab4aefc1c5823a61b5a0286bb6fe1e036c)
- [actions] update codecov uploader [`70c4a7c`](https://github.com/es-shims/String.prototype.trimEnd/commit/70c4a7c566fd5bf72475df9318ec2cd218ceca26)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `auto-changelog`, `tape` [`4b08ed7`](https://github.com/es-shims/String.prototype.trimEnd/commit/4b08ed78a579585b593b3ca4ac7919d13906e840)
- [readme] add github actions/codecov badges [`9805501`](https://github.com/es-shims/String.prototype.trimEnd/commit/980550105b304385bcccb8ec05a247e02c24d04a)
- [Dev Deps] update `eslint`, `tape` [`50ec335`](https://github.com/es-shims/String.prototype.trimEnd/commit/50ec335ed42b59d1ab626dbe412f4ae23ab99b4b)
- [actions] update workflows [`bf9c32e`](https://github.com/es-shims/String.prototype.trimEnd/commit/bf9c32efe08e98b53302df67581dc971b7a758cd)
- [meta] use `prepublishOnly` script for npm 7+ [`9d921bd`](https://github.com/es-shims/String.prototype.trimEnd/commit/9d921bdbcaf8cebebbc302e6df518cbc3e4907bd)
- [Deps] update `define-properties` [`15617ce`](https://github.com/es-shims/String.prototype.trimEnd/commit/15617ced8ac2ea3ab8324a04d16fd294b12059b5)
## [v1.0.4](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.3...v1.0.4) - 2021-02-23
### Commits
- [meta] do not publish github action workflow files [`08e735c`](https://github.com/es-shims/String.prototype.trimEnd/commit/08e735cd55b00ae78a9dc16c6b4e786f7931085b)
- [readme] remove travis badge [`10e0e47`](https://github.com/es-shims/String.prototype.trimEnd/commit/10e0e47cb2ecfd171e68b40f8486c5d007dcf3ef)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `functions-have-names`, `has-strict-mode`, `tape` [`0871432`](https://github.com/es-shims/String.prototype.trimEnd/commit/0871432c70c2f6a3929acd740a5d1f57c939f345)
- [Tests] increase coverage [`711e6a6`](https://github.com/es-shims/String.prototype.trimEnd/commit/711e6a66660f30f7a30fef536be435af1a13d05c)
- [actions] update workflows [`deb0d06`](https://github.com/es-shims/String.prototype.trimEnd/commit/deb0d06f41ac1c3e1e640ecd1cf0e69303ab5799)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`e250b4a`](https://github.com/es-shims/String.prototype.trimEnd/commit/e250b4a38401e7c02a067dab26cc68316da47ef7)
- [meta] gitignore coverage output [`55231df`](https://github.com/es-shims/String.prototype.trimEnd/commit/55231dfd9829277ba5c3f07be5434dc385703ca9)
- [Deps] update `call-bind` [`0580f5f`](https://github.com/es-shims/String.prototype.trimEnd/commit/0580f5f915ecb87677764d03fe3cf023e3bee7d8)
## [v1.0.3](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.2...v1.0.3) - 2020-11-21
### Commits
- [Tests] migrate tests to Github Actions [`23e7a09`](https://github.com/es-shims/String.prototype.trimEnd/commit/23e7a09a4ad37c21c3db3d7761212c7d84a371a2)
- [Tests] add `implementation` test; run `es-shim-api` in postlint; use `tape` runner [`26e8623`](https://github.com/es-shims/String.prototype.trimEnd/commit/26e8623cf35c1859d0b482d4bb5b3450d101a810)
- [Tests] run `nyc` on all tests [`a72a546`](https://github.com/es-shims/String.prototype.trimEnd/commit/a72a546f671c5d3ac65dff68b4db1a1cc7089bfd)
- [Deps] replace `es-abstract` with `call-bind` [`f07b87d`](https://github.com/es-shims/String.prototype.trimEnd/commit/f07b87dd452090a2601d666edceb1daa90d45f24)
- [Dev Deps] update `eslint`, `aud`; add `safe-publish-latest` [`122ecb7`](https://github.com/es-shims/String.prototype.trimEnd/commit/122ecb726b1dc043b9ef27fa5a7b4172a4d5df37)
## [v1.0.2](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.1...v1.0.2) - 2020-10-20
### Commits
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`a003e71`](https://github.com/es-shims/String.prototype.trimEnd/commit/a003e7166d8de16c551a14b0ec855187357cce43)
- [actions] add "Allow Edits" workflow [`0b4b43c`](https://github.com/es-shims/String.prototype.trimEnd/commit/0b4b43cb605f7b3532e61c43dfc7f1795296c5a4)
- [Deps] update `es-abstract` [`75ca6b0`](https://github.com/es-shims/String.prototype.trimEnd/commit/75ca6b0e9757d64013ae863cfaac49ebcb36f1cf)
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`552016c`](https://github.com/es-shims/String.prototype.trimEnd/commit/552016cb631ac13c12bbbc0d6dd65012e5e79583)
## [v1.0.1](https://github.com/es-shims/String.prototype.trimEnd/compare/v1.0.0...v1.0.1) - 2020-04-09
### Commits
- [meta] add some missing repo metadata [`6abe248`](https://github.com/es-shims/String.prototype.trimEnd/commit/6abe248ba0b57a8b0e16bbe01de07a4d37c421bc)
- [Dev Deps] update `auto-changelog` [`e2eaab2`](https://github.com/es-shims/String.prototype.trimEnd/commit/e2eaab2fd1bc27a3d224b3d76db16190c1dd6d08)
## [v1.0.0](https://github.com/es-shims/String.prototype.trimEnd/compare/v0.1.0...v1.0.0) - 2020-03-30
### Commits
- [Breaking] convert to es-shim API [`2c6ef13`](https://github.com/es-shims/String.prototype.trimEnd/commit/2c6ef13d3f0b07a9bc55e367b311dbb731780405)
- [meta] add `auto-changelog` [`6f1fcc1`](https://github.com/es-shims/String.prototype.trimEnd/commit/6f1fcc1739de1e9541bd603b659807646a13dd7f)
- [meta] update readme [`ed4ce0d`](https://github.com/es-shims/String.prototype.trimEnd/commit/ed4ce0d84d53e626b48375c5959be20332464eaf)
- [Tests] add `npm run lint` [`eadaf2c`](https://github.com/es-shims/String.prototype.trimEnd/commit/eadaf2c83f2d791b54d80d7b30a9961ebc0f246f)
- Only apps should have lockfiles [`44d355f`](https://github.com/es-shims/String.prototype.trimEnd/commit/44d355f7dafcb0b51c5001824b07f7a2b9f1d06e)
- [actions] add automatic rebasing / merge commit blocking [`e78bf8e`](https://github.com/es-shims/String.prototype.trimEnd/commit/e78bf8e5fc04fcb3379dd1c98360d7df4f9ea7d6)
- [Tests] use shared travis-ci configs [`983c563`](https://github.com/es-shims/String.prototype.trimEnd/commit/983c5639efca2c9bb8b93ebbb917fbcb2561b94c)
- [meta] add `funding` field [`35139d6`](https://github.com/es-shims/String.prototype.trimEnd/commit/35139d6236ceacfc1501d08fb196d18a936ee583)
- [meta] fix non-updated version number [`a2d308b`](https://github.com/es-shims/String.prototype.trimEnd/commit/a2d308b99967ca427936c54747175794ca7336e1)
## [v0.1.0](https://github.com/es-shims/String.prototype.trimEnd/compare/v0.0.1...v0.1.0) - 2017-12-19
### Commits
- updated README [`f1c71a0`](https://github.com/es-shims/String.prototype.trimEnd/commit/f1c71a0a882e89e1c207ed2b316d91670be2b075)
## v0.0.1 - 2017-12-19
### Commits
- finished polyfill [`e58d550`](https://github.com/es-shims/String.prototype.trimEnd/commit/e58d550ab8695924ff4221ebe91f00f29801aa4b)
- created README file [`f78628a`](https://github.com/es-shims/String.prototype.trimEnd/commit/f78628ab123171f8b7759bba331d6a589702584f)
- Initial commit [`9199478`](https://github.com/es-shims/String.prototype.trimEnd/commit/9199478256da953e2f5bddfc4d82a161f4537e85)
- typo [`d1f4558`](https://github.com/es-shims/String.prototype.trimEnd/commit/d1f4558a51157833f14d8a424426d038d06576ce)
@@ -0,0 +1 @@
export { _lt as lt, _lte as lte, _gt as gt, _gte as gte, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
@@ -0,0 +1,21 @@
import fs from 'node:fs';
import { pkgUp } from './pkg-up.js';
function stripBOM(str) {
return str.replace(/^\uFEFF/, '');
}
export function readPkgUp(opts) {
const fp = pkgUp(opts);
if (!fp) {
return {};
}
try {
return {
pkg: JSON.parse(stripBOM(fs.readFileSync(fp, { encoding: 'utf8' }))),
path: fp,
};
}
catch {
return {};
}
}
//# sourceMappingURL=read-pkg-up.js.map
@@ -0,0 +1,11 @@
3.3.1 / 2020-06-18
==================
**fixes**
* [[`0d94a24`](http://github.com/thenables/thenify/commit/0d94a24eb933bc835d568f3009f4d269c4c4c17a)] - fix: remove eval (#30) (Yiyu He <<dead_horse@qq.com>>)
3.3.0 / 2017-05-19
==================
* feat: support options.multiArgs and options.withCallback (#27)
@@ -0,0 +1,28 @@
import { useEffect, useRef } from 'react';
import useUnmount from '../../../useUnmount';
import limit from '../utils/limit';
import subscribeFocus from '../utils/subscribeFocus';
var useRefreshOnWindowFocusPlugin = function (fetchInstance, _a) {
var refreshOnWindowFocus = _a.refreshOnWindowFocus, _b = _a.focusTimespan, focusTimespan = _b === void 0 ? 5000 : _b;
var unsubscribeRef = useRef(undefined);
var stopSubscribe = function () {
var _a;
(_a = unsubscribeRef.current) === null || _a === void 0 ? void 0 : _a.call(unsubscribeRef);
};
useEffect(function () {
if (refreshOnWindowFocus) {
var limitRefresh_1 = limit(fetchInstance.refresh.bind(fetchInstance), focusTimespan);
unsubscribeRef.current = subscribeFocus(function () {
limitRefresh_1();
});
}
return function () {
stopSubscribe();
};
}, [refreshOnWindowFocus, focusTimespan]);
useUnmount(function () {
stopSubscribe();
});
return {};
};
export default useRefreshOnWindowFocusPlugin;
@@ -0,0 +1,13 @@
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
this.size = 0;
}
export default listCacheClear;
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=resolveBindingServiceDeactivations.spec.d.ts.map
@@ -0,0 +1,4 @@
import { IHighwayUploader } from '../../../packet/highway/uploader/highwayUploader';
export declare class HighwayTcpUploader extends IHighwayUploader {
upload(): Promise<void>;
}
@@ -0,0 +1,564 @@
flf2a$ 5 5 10 -1 53
by Jerrad Pierce [http://www.pthbb.org/software/figlet/tsalagi.html]
11/97, 2/02, 8/02
Permission to modify granted, but please send me a copy or notify me.
Also available: best fit/match of characters, allow punctuation like . " ' ?
_______________________________________________________
( )
( __ _ _ _ __ __ )
( / _'_ | | | \ / )
( | | | | \/ )
( | @ \ \ / / )
( \__/ \/\/ @ )
( )
( Syllabry Conversion Table )
( )
( a, a e, ` i, ~ o, q u, Q v, A )
( ------+-------+--------+-------+------+------ ) There is
( ga, s ) rhyme and
( ka, n ge, 1 gi, ! go, w gu, W gv, S ) reason
( ------+-------+--------+-------+------+------ )
( ha, d he, 2 hi, @ ho, e hu, E hv, D ) a ` ~ q Q A
( ------+-------+--------+-------+------+------ ) s
( la, f le, 3 li, # lo, r lu, R lv, F ) n 1 ! w W S
( ------+-------+--------+-------+------+------ ) d 2 @ e E D
( ma, g me, 4 mi, $ mo, t mu, T ) f 3 # r R F
( ------+-------+--------+-------+------+------ ) g 4 $ t T
( na, h ) h
( hna, m ) m
( nah, X ne, 5 ni, % no, y nu, Y nv, G ) X 5 % y Y G
( ------+-------+--------+-------+------+------ ) j 6 ^ u U H
( qua, j que, 6 qui, ^ quo, u quu, U quv, H ) k
( ------+-------+--------+-------+------+------ ) C 7 & i I J
( sa, k ) l 8 * o O K
( s, C se, 7 si, & so, i su, I sv, J ) / 9 (
( ------+-------+--------+-------+------+------ ) V
( da, l de, 8 di, * do, o du, O dv, K ) Z 0 ) p P L
( ta, / te, 9 ti, ( ) B < _ [ { N
( ------+-------+--------+-------+------+------ ) v > + ] } M
( dla, V ) b \ | z x c
( tla, Z tle, 0 tli, ) tlo, p tlu, P tlv, L )
( ------+-------+--------+-------+------+------ )
( tsa, B tse, < tsi, _ tso, [ tsu, { tsv, N )
( ------+-------+--------+-------+------+------ )
( wa, v we, > wi, + wo, ] wu, } wv, M )
( ------+-------+--------+-------+------+------ )
( ya, b ye, \ yi, | yo, z yu, x yv, c )
( )
(_______________________________________________________)
This uses the mapping of Joan Touzet's Freeware Cherokee font v1.02
font: http://www.atypical.net//Cherokee.html
keymap: http://www.atypical.net//CherTabl.html
$$ #
$$ #
$$ #
$$ #
$$ ##
__ __ #
\ / #
\/ #
/ #
@ ##
| | #
` ' #
#
#
##
__ #
| | #
| `' #
| #
_|_ ##
_ _ #
| | #
|__| #
| | #
| | ##
___ #
| #
|__ #
| | #
_| |_ ##
___ #
| #
|_ #
| \ #
_|_/ ##
| | #
^ #
#
#
##
___ #
| | #
| #
/| #
@/ |_ ##
__, #
/ ' #
| #
| #
\__/ ##
___ #
| #
| #
/| #
@/ |_ ##
_ #
/ \ #
|~| | #
| |_| #
\_/ ##
#
#
#
| #
/ ##
#
#
--- #
#
##
#
#
#
/\ #
\/ ##
#
| | | |#
| | | |#
| \ /#
\/ \/ ##
___ #
| #
| #
| #
_|__| ##
_____ #
| #
|/u #
| #
__|__ ##
____ #
`___ \ #
| | #
|--' #
_|_ ##
/\ #
_| @#
/ | #
| | #
\_| ##
_ #
/ \ | #
| \| #
| /| #
\_/ | ##
#
/\ #
| \ #
| \ #
@| _|_##
#
__ #
/ \ #
| #
(_|_/ ##
#
/| #
/_|_, #
| ' #
_|_ ##
__ #
/ ' #
\_ #
\ #
`__/ ##
____ #
| | #
| _ #
| \ #
\_/ ##
/\ #
\/ #
#
/\ #
\/ ##
/\ #
\/ #
#
| #
/ ##
___ #
| | | #
| / #
| / #
|/ ##
#
#
--- #
--- #
##
/\#
/\ `|#
/ | | |#
| |/ |#
\|__/ ##
/~~\ #
| #
~~ #
/\ #
\/ ##
_ #
/ \ #
|_| #
| | #
@/ @/ ##
_ #
<_> #
#
| #
_|_ ##
__ #
/ _'_ #
| #
| @ #
\__/ ##
__ #
/ \ #
_ |#
/\| |#
\/ \_/ ##
#
/\ #
| | #
| | | _#
\_\'_/##
____ #
| | #
| #
| #
_|_ ##
_ #
` | #
|-_| #
| #
_|_ ##
__ #
/ \ #
| |"#
| | #
\__/ ##
__ #
/ ' #
\_ #
/ _ #
\__, ##
_ #
() / '#
/~\ #
| | #
\_/ ##
_____ #
| \ #
|__/ #
| \ #
_| \_ ##
_ #
/\/ '#
/\ #
| | #
\/ ##
____ #
| \ #
|__/ #
| #
.|__ ##
_ #
/ ' #
| __ #
|' \ #
\__/ ##
__ #
/ ~~ #
| #
| ~ #
\__/ ##
__ #
/ | #
\_ #
\ #
|__/ ##
_ #
/\/ \ #
_| \ ' #
/| #
\/ ##
_ #
/ \ #
| |) #
| | #
\_/ ##
_ #
|\ /| #
| | | #
| | #
.| |_##
#
|--\ #
|_ #
| #
|--/ ##
__ #
\ / #
\/ #
_ / #
\/ ##
_ #
/ ` \ #
| _ |#
| | ' |#
\_\_/ ##
/\ #
\/\_ #
/ / \#
/\ | |#
\/ \_/##
___ #
| #
| #
. | #
\_/ ##
__, #
/ ' #
| #
| -+- #
\__| ##
_ #
/ | #
_ | #
`-| #
_|_ ##
_ #
| ' #
| #
| #
_|__| ##
___ _ #
| / #
|/\ #
| \ #
_|_ _\_##
__ #
| | #
|-< #
| | #
>|__' ##
_ _ #
/| ` \#
|/ |#
| |#
\___/ ##
_ #
/ \/\ #
/\' #
| | #
\/ ##
___ #
| #
| #
|/|' #
_| | ##
___ #
| \ #
|__/ #
| \ #
| \ ##
__ #
| \ #
| \ #
| / #
|__/ ##
__ #
` \ #
_ |#
| | |#
\_|_/ ##
____ #
| > #
|-< #
| \ #
_|__/ ##
___ #
| #
(>|__ #
| / #
|/ ##
___ #
| #
|_, #
| ' #
_|_ ##
_ _ _ #
| | | #
| | | #
\ \ / #
\/\/ ##
___ #
|_-_#
`\/\ #
| | #
\/ ##
__ #
/ \ #
|____| #
| | #
\__/ ##
___ #
| #
.|() #
()|' #
_|_ ##
___ #
| | | #
| #
| #
|_|_| ##
___ _ #
| | #
|---| #
| | #
\_/ ##
___ #
| #
| #
| . #
`__' ##
-|- #
| #
| #
| _ #
_| ##
__ #
` \ #
| #
|) / #
\_/ ##
___ __#
| |#
\ |#
\ / #
\/ ##
___ #
| #
(|_|_ #
| | #
`_' ##
___ #
|__ #
_/ \#
/ \ |#
\ / `_/##
__ #
/ ' #
| ,_ #
| ' | #
\__/ ##
__ #
/ \ #
__\___ #
\ #
\__/ ##
___ #
/ \ #
` | #
| #
\_/ ##
#
, |~,#
@| | #
| / #
\/ ##
__ #
/ ' #
| _ #
| | #
\_/|` ##
#
#
/| #
/_| #
_/ \_##
__ #
/ '~ #
| #
| _ #
\__| ##
____ #
| / #
/ #
/ #
/___| ##
_ #
/ ' #
/_ #
| | #
_| | ##
___ #
| #
_| #
/ | #
\_' ##
___ #
| #
/ \ #
/ |#
\/ ('/ ##
_ #
/ \ #
| | #
\ | #
@_/ ##
_____ #
| | |#
| #
| #
_|_ ##
#
#
#
#
Ä ##
#
#
#
#
Ö ##
#
#
#
#
Ü ##
#
#
#
#
ä ##
#
#
#
#
ö ##
#
#
#
#
ü ##
#
#
#
#
ß ##
@@ -0,0 +1,191 @@
/**
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { ILinkifier2 } from 'browser/Types';
import { removeTerminalFromCache } from 'browser/renderer/shared/CharAtlasCache';
import { observeDevicePixelDimensions } from 'browser/renderer/shared/DevicePixelObserver';
import { createRenderDimensions } from 'browser/renderer/shared/RendererUtils';
import { IRenderDimensions, IRenderer, IRequestRedrawEvent } from 'browser/renderer/shared/Types';
import { ICharSizeService, ICharacterJoinerService, ICoreBrowserService, IThemeService } from 'browser/services/Services';
import { EventEmitter, forwardEvent } from 'common/EventEmitter';
import { Disposable, MutableDisposable, toDisposable } from 'common/Lifecycle';
import { IBufferService, ICoreService, IDecorationService, IOptionsService } from 'common/services/Services';
import { Terminal } from '@xterm/xterm';
import { CursorRenderLayer } from './CursorRenderLayer';
import { LinkRenderLayer } from './LinkRenderLayer';
import { SelectionRenderLayer } from './SelectionRenderLayer';
import { TextRenderLayer } from './TextRenderLayer';
import { IRenderLayer } from './Types';
export class CanvasRenderer extends Disposable implements IRenderer {
private _renderLayers: IRenderLayer[];
private _devicePixelRatio: number;
private _observerDisposable = this.register(new MutableDisposable());
public dimensions: IRenderDimensions;
private readonly _onRequestRedraw = this.register(new EventEmitter<IRequestRedrawEvent>());
public readonly onRequestRedraw = this._onRequestRedraw.event;
private readonly _onChangeTextureAtlas = this.register(new EventEmitter<HTMLCanvasElement>());
public readonly onChangeTextureAtlas = this._onChangeTextureAtlas.event;
private readonly _onAddTextureAtlasCanvas = this.register(new EventEmitter<HTMLCanvasElement>());
public readonly onAddTextureAtlasCanvas = this._onAddTextureAtlasCanvas.event;
constructor(
private readonly _terminal: Terminal,
private readonly _screenElement: HTMLElement,
linkifier2: ILinkifier2,
private readonly _bufferService: IBufferService,
private readonly _charSizeService: ICharSizeService,
private readonly _optionsService: IOptionsService,
characterJoinerService: ICharacterJoinerService,
coreService: ICoreService,
private readonly _coreBrowserService: ICoreBrowserService,
decorationService: IDecorationService,
private readonly _themeService: IThemeService
) {
super();
const allowTransparency = this._optionsService.rawOptions.allowTransparency;
this._renderLayers = [
new TextRenderLayer(this._terminal, this._screenElement, 0, allowTransparency, this._bufferService, this._optionsService, characterJoinerService, decorationService, this._coreBrowserService, _themeService),
new SelectionRenderLayer(this._terminal, this._screenElement, 1, this._bufferService, this._coreBrowserService, decorationService, this._optionsService, _themeService),
new LinkRenderLayer(this._terminal, this._screenElement, 2, linkifier2, this._bufferService, this._optionsService, decorationService, this._coreBrowserService, _themeService),
new CursorRenderLayer(this._terminal, this._screenElement, 3, this._onRequestRedraw, this._bufferService, this._optionsService, coreService, this._coreBrowserService, decorationService, _themeService)
];
for (const layer of this._renderLayers) {
forwardEvent(layer.onAddTextureAtlasCanvas, this._onAddTextureAtlasCanvas);
}
this.dimensions = createRenderDimensions();
this._devicePixelRatio = this._coreBrowserService.dpr;
this._updateDimensions();
this._observerDisposable.value = observeDevicePixelDimensions(this._renderLayers[0].canvas, this._coreBrowserService.window, (w, h) => this._setCanvasDevicePixelDimensions(w, h));
this.register(this._coreBrowserService.onWindowChange(w => {
this._observerDisposable.value = observeDevicePixelDimensions(this._renderLayers[0].canvas, w, (w, h) => this._setCanvasDevicePixelDimensions(w, h));
}));
this.register(toDisposable(() => {
for (const l of this._renderLayers) {
l.dispose();
}
removeTerminalFromCache(this._terminal);
}));
}
public get textureAtlas(): HTMLCanvasElement | undefined {
return this._renderLayers[0].cacheCanvas;
}
public handleDevicePixelRatioChange(): void {
// If the device pixel ratio changed, the char atlas needs to be regenerated
// and the terminal needs to refreshed
if (this._devicePixelRatio !== this._coreBrowserService.dpr) {
this._devicePixelRatio = this._coreBrowserService.dpr;
this.handleResize(this._bufferService.cols, this._bufferService.rows);
}
}
public handleResize(cols: number, rows: number): void {
// Update character and canvas dimensions
this._updateDimensions();
// Resize all render layers
for (const l of this._renderLayers) {
l.resize(this.dimensions);
}
// Resize the screen
this._screenElement.style.width = `${this.dimensions.css.canvas.width}px`;
this._screenElement.style.height = `${this.dimensions.css.canvas.height}px`;
}
public handleCharSizeChanged(): void {
this.handleResize(this._bufferService.cols, this._bufferService.rows);
}
public handleBlur(): void {
this._runOperation(l => l.handleBlur());
}
public handleFocus(): void {
this._runOperation(l => l.handleFocus());
}
public handleSelectionChanged(start: [number, number] | undefined, end: [number, number] | undefined, columnSelectMode: boolean = false): void {
this._runOperation(l => l.handleSelectionChanged(start, end, columnSelectMode));
// Selection foreground requires a full re-render
if (this._themeService.colors.selectionForeground) {
this._onRequestRedraw.fire({ start: 0, end: this._bufferService.rows - 1 });
}
}
public handleCursorMove(): void {
this._runOperation(l => l.handleCursorMove());
}
public clear(): void {
this._runOperation(l => l.reset());
}
private _runOperation(operation: (layer: IRenderLayer) => void): void {
for (const l of this._renderLayers) {
operation(l);
}
}
/**
* Performs the refresh loop callback, calling refresh only if a refresh is
* necessary before queueing up the next one.
*/
public renderRows(start: number, end: number): void {
for (const l of this._renderLayers) {
l.handleGridChanged(start, end);
}
}
public clearTextureAtlas(): void {
for (const layer of this._renderLayers) {
layer.clearTextureAtlas();
}
}
/**
* Recalculates the character and canvas dimensions.
*/
private _updateDimensions(): void {
if (!this._charSizeService.hasValidSize) {
return;
}
// See the WebGL renderer for an explanation of this section.
const dpr = this._coreBrowserService.dpr;
this.dimensions.device.char.width = Math.floor(this._charSizeService.width * dpr);
this.dimensions.device.char.height = Math.ceil(this._charSizeService.height * dpr);
this.dimensions.device.cell.height = Math.floor(this.dimensions.device.char.height * this._optionsService.rawOptions.lineHeight);
this.dimensions.device.char.top = this._optionsService.rawOptions.lineHeight === 1 ? 0 : Math.round((this.dimensions.device.cell.height - this.dimensions.device.char.height) / 2);
this.dimensions.device.cell.width = this.dimensions.device.char.width + Math.round(this._optionsService.rawOptions.letterSpacing);
this.dimensions.device.char.left = Math.floor(this._optionsService.rawOptions.letterSpacing / 2);
this.dimensions.device.canvas.height = this._bufferService.rows * this.dimensions.device.cell.height;
this.dimensions.device.canvas.width = this._bufferService.cols * this.dimensions.device.cell.width;
this.dimensions.css.canvas.height = Math.round(this.dimensions.device.canvas.height / dpr);
this.dimensions.css.canvas.width = Math.round(this.dimensions.device.canvas.width / dpr);
this.dimensions.css.cell.height = this.dimensions.css.canvas.height / this._bufferService.rows;
this.dimensions.css.cell.width = this.dimensions.css.canvas.width / this._bufferService.cols;
}
private _setCanvasDevicePixelDimensions(width: number, height: number): void {
this.dimensions.device.canvas.height = height;
this.dimensions.device.canvas.width = width;
// Resize all render layers
for (const l of this._renderLayers) {
l.resize(this.dimensions);
}
this._requestRedrawViewport();
}
private _requestRedrawViewport(): void {
this._onRequestRedraw.fire({ start: 0, end: this._bufferService.rows - 1 });
}
}
@@ -0,0 +1,11 @@
import Inline from '../blots/inline.js';
declare class Bold extends Inline {
static blotName: string;
static tagName: string[];
static create(): HTMLElement;
static formats(): boolean;
optimize(context: {
[key: string]: any;
}): void;
}
export default Bold;
@@ -0,0 +1 @@
{"name":"eslint-plugin-prettier","version":"5.2.3","requiresBuild":false,"files":{"eslint-plugin-prettier.js":{"checkedAt":1794532118403,"integrity":"sha512-c3VkjYEUthqQ2tExw02SC2uZ34FDbnG7cTpjovB9f2xMMzhSQ8acC59WaphFmgoKgGoMubvvhGrb8UPqyQD5vA==","mode":420,"size":8973},"recommended.js":{"checkedAt":1794532118403,"integrity":"sha512-QsN77LtDenskvJ33YIZ9wO9inzA9YPjJTLHiR2oLh+8Mn8Z2hXDo6UghR9PJbIKxskMojgiyKsxPuFBNRRECNQ==","mode":420,"size":529},"worker.js":{"checkedAt":1794532118403,"integrity":"sha512-XNB/6dYtIk6z5BEKwqJ2enV29Wac3kyPxkySlrScOVU4M0Q5YuNeP8iBgr/wfU2Nym7+6G/gOZ2ATY/EWSibWg==","mode":420,"size":6727},"package.json":{"checkedAt":1794532118403,"integrity":"sha512-DcBdsTSsm73NFxanHeBGs7VtXaMrUEu2WjfVdj62uKp3d0njqmSBam9T9UCznQl+wzKaVs7g8RTlWaRi4OZBpQ==","mode":420,"size":3012},"LICENSE.md":{"checkedAt":1794532118403,"integrity":"sha512-+7xsHGiml7w7SiejfO/0/DMCNl25aUP7EDd5wlFZFNoRY5Wzrz5fPTUIWWVH8l0J/eYkTRTiDUz4RgHpXFwE8g==","mode":420,"size":1104},"README.md":{"checkedAt":1794532118403,"integrity":"sha512-IiXquqnrFjtmdvVSzqkKFG8LYTRxAYQqW4xkZP/gGXmBQI0ws7MYO+S7PbXmuld26nzPmNtERFWB81cRlSvaEg==","mode":420,"size":13944},"eslint-plugin-prettier.d.ts":{"checkedAt":1794532118403,"integrity":"sha512-eD+fW4KJ8pMb4ykLVSAlxf69VpmgTozrKg3g/d07dTiWDFGQO8lL9hybl+ebbUea8gsEJ5W7FhJxWEp/7Yk22g==","mode":420,"size":117},"recommended.d.ts":{"checkedAt":1794532118404,"integrity":"sha512-KkvA+qetCAYhsw1bWzKgvitpbCWJG2xtJ5O7tCsjnK1zuRzrkWhP0QMNXnnNSG5Aw2LPxP9Nd4UCihesjNv9MQ==","mode":420,"size":115}}}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ResolvedValueBindingNode.js.map
@@ -0,0 +1,167 @@
# [4.3.1](https://github.com/TehShrike/deepmerge/releases/tag/v4.3.1)
- Fix type definition for arrayMerge options. [#239](https://github.com/TehShrike/deepmerge/pull/239)
# [4.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.3.0)
- Avoid thrown errors if the target doesn't have `propertyIsEnumerable`. [#252](https://github.com/TehShrike/deepmerge/pull/252)
# [4.2.2](https://github.com/TehShrike/deepmerge/releases/tag/v4.2.2)
- `isMergeableObject` is now only called if there are two values that could be merged. [a34dd4d2](https://github.com/TehShrike/deepmerge/commit/a34dd4d25bf5e250653540a2022bc832c7b00a19)
# [4.2.1](https://github.com/TehShrike/deepmerge/releases/tag/v4.2.1)
- Fix: falsey values can now be merged. [#170](https://github.com/TehShrike/deepmerge/issues/170)
# [4.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.2.0)
- Properties are now only overwritten if they exist on the target object and are enumerable. [#164](https://github.com/TehShrike/deepmerge/pull/164)
Technically this could probably be a patch release since "which properties get overwritten" wasn't documented and accidentally overwriting a built-in function or some function up the property chain would almost certainly be undesirable, but it feels like a gray area, so here we are with a feature version bump.
# [4.1.2](https://github.com/TehShrike/deepmerge/releases/tag/v4.1.2)
- Rolled back #167 since `Object.assign` breaks ES5 support. [55067352](https://github.com/TehShrike/deepmerge/commit/55067352a92c65a6c44a5165f3387720aae1e192)
# [4.1.1](https://github.com/TehShrike/deepmerge/releases/tag/v4.1.1)
- The `options` argument is no longer mutated [#167](https://github.com/TehShrike/deepmerge/pull/167)
# [4.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.1.0)
- `cloneUnlessOtherwiseSpecified` is now exposed to the `arrayMerge` function [#165](https://github.com/TehShrike/deepmerge/pull/165)
# [4.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.0.0)
- The `main` entry point in `package.json` is now a CommonJS module instead of a UMD module [#155](https://github.com/TehShrike/deepmerge/pull/155)
# [3.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.3.0)
- Enumerable Symbol properties are now copied [#151](https://github.com/TehShrike/deepmerge/pull/151)
# [3.2.1](https://github.com/TehShrike/deepmerge/releases/tag/v3.2.1)
- bumping dev dependency versions to try to shut up bogus security warnings from Github/npm [#149](https://github.com/TehShrike/deepmerge/pull/149)
# [3.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.2.0)
- feature: added the [`customMerge`](https://github.com/TehShrike/deepmerge#custommerge) option [#133](https://github.com/TehShrike/deepmerge/pull/133)
# [3.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.1.0)
- typescript typing: make the `all` function generic [#129](https://github.com/TehShrike/deepmerge/pull/129)
# [3.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.0.0)
- drop ES module build [#123](https://github.com/TehShrike/deepmerge/issues/123)
# [2.2.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.2.1)
- bug: typescript export type was wrong [#121](https://github.com/TehShrike/deepmerge/pull/121)
# [2.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.2.0)
- feature: added TypeScript typings [#119](https://github.com/TehShrike/deepmerge/pull/119)
# [2.1.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.1.1)
- documentation: Rename "methods" to "api", note ESM syntax [#103](https://github.com/TehShrike/deepmerge/pull/103)
- documentation: Fix grammar [#107](https://github.com/TehShrike/deepmerge/pull/107)
- documentation: Restructure headers for clarity + some wording tweaks [108](https://github.com/TehShrike/deepmerge/pull/108) + [109](https://github.com/TehShrike/deepmerge/pull/109)
# [2.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.1.0)
- feature: Support a custom `isMergeableObject` function [#96](https://github.com/TehShrike/deepmerge/pull/96)
- documentation: note a Webpack bug that some users might need to work around [#100](https://github.com/TehShrike/deepmerge/pull/100)
# [2.0.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.0.1)
- documentation: fix the old array merge algorithm in the readme. [#84](https://github.com/TehShrike/deepmerge/pull/84)
# [2.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.0.0)
- breaking: the array merge algorithm has changed from a complicated thing to `target.concat(source).map(element => cloneUnlessOtherwiseSpecified(element, optionsArgument))`
- breaking: The `clone` option now defaults to `true`
- feature: `merge.all` now accepts an array of any size, even 0 or 1 elements
See [pull request 77](https://github.com/TehShrike/deepmerge/pull/77).
# [1.5.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.2)
- fix: no longer attempts to merge React elements [#76](https://github.com/TehShrike/deepmerge/issues/76)
# [1.5.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.1)
- bower support: officially dropping bower support. If you use bower, please depend on the [unpkg distribution](https://unpkg.com/deepmerge/dist/umd.js). See [#63](https://github.com/TehShrike/deepmerge/issues/63)
# [1.5.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.0)
- bug fix: merging objects into arrays was allowed, and doesn't make any sense. [#65](https://github.com/TehShrike/deepmerge/issues/65) published as a feature release instead of a patch because it is a decent behavior change.
# [1.4.4](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.4)
- bower support: updated `main` in bower.json
# [1.4.3](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.3)
- bower support: inline is-mergeable-object in a new CommonJS build, so that people using both bower and CommonJS can bundle the library [0b34e6](https://github.com/TehShrike/deepmerge/commit/0b34e6e95f989f2fc8091d25f0d291c08f3d2d24)
# [1.4.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.2)
- performance: bump is-mergeable-object dependency version for a slight performance improvement [5906c7](https://github.com/TehShrike/deepmerge/commit/5906c765d691d48e83d76efbb0d4b9ca150dc12c)
# [1.4.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.1)
- documentation: fix unpkg link [acc45b](https://github.com/TehShrike/deepmerge/commit/acc45be85519c1df906a72ecb24764b622d18d47)
# [1.4.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.0)
- api: instead of only exporting a UMD module, expose a UMD module with `pkg.main`, a CJS module with `pkg.browser`, and an ES module with `pkg.module` [#62](https://github.com/TehShrike/deepmerge/pull/62)
# [1.3.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.2)
- documentation: note the minified/gzipped file sizes [56](https://github.com/TehShrike/deepmerge/pull/56)
- documentation: make data structures more readable in merge example: pull request [57](https://github.com/TehShrike/deepmerge/pull/57)
# [1.3.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.1)
- documentation: clarify and test some array merging documentation: pull request [51](https://github.com/TehShrike/deepmerge/pull/51)
# [1.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.0)
- feature: `merge.all`, a merge function that merges any number of objects: pull request [50](https://github.com/TehShrike/deepmerge/pull/50)
# [1.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.2.0)
- fix: an error that would be thrown when an array would be merged onto a truthy non-array value: pull request [46](https://github.com/TehShrike/deepmerge/pull/46)
- feature: the ability to clone: Issue [28](https://github.com/TehShrike/deepmerge/issues/28), pull requests [44](https://github.com/TehShrike/deepmerge/pull/44) and [48](https://github.com/TehShrike/deepmerge/pull/48)
- maintenance: added tests + travis to `.npmignore`: pull request [47](https://github.com/TehShrike/deepmerge/pull/47)
# [1.1.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.1.1)
- fix an issue where an error was thrown when merging an array onto a non-array: [Pull request 46](https://github.com/TehShrike/deepmerge/pull/46)
# [1.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.1.0)
- allow consumers to specify their own array merging algorithm: [Pull request 37](https://github.com/TehShrike/deepmerge/pull/37)
# [1.0.3](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.3)
- adding bower.json back: [Issue 38](https://github.com/TehShrike/deepmerge/pull/38)
- updating keywords and Github links in package.json [bc3898e](https://github.com/TehShrike/deepmerge/commit/bc3898e587a56f74591328f40f656b0152c1d5eb)
# [1.0.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.2)
- Updating the readme: dropping bower, testing that the example works: [7102fc](https://github.com/TehShrike/deepmerge/commit/7102fcc4ddec11e2d33205866f9f18df14e5aeb5)
# [1.0.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.1)
- `null`, dates, and regular expressions are now properly merged in arrays: [Issue 18](https://github.com/TehShrike/deepmerge/pull/18), plus commit: [ef1c6b](https://github.com/TehShrike/deepmerge/commit/ef1c6bac8350ba12a24966f0bc7da02560827586)
# 1.0.0
- Should only be a patch change, because this module is READY. [Issue 15](https://github.com/TehShrike/deepmerge/issues/15)
- Regular expressions are now treated like primitive values when merging: [Issue 30](https://github.com/TehShrike/deepmerge/pull/30)
- Dates are now treated like primitives when merging: [Issue 31](https://github.com/TehShrike/deepmerge/issues/31)
@@ -0,0 +1,59 @@
{
"name": "@types/js-cookie",
"version": "3.0.6",
"description": "TypeScript definitions for js-cookie",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-cookie",
"license": "MIT",
"contributors": [
{
"name": "Theodore Brown",
"githubUsername": "theodorejb",
"url": "https://github.com/theodorejb"
},
{
"name": "BendingBender",
"githubUsername": "BendingBender",
"url": "https://github.com/BendingBender"
},
{
"name": "Antoine Lépée",
"githubUsername": "alepee",
"url": "https://github.com/alepee"
},
{
"name": "Yuto Doi",
"githubUsername": "yutod",
"url": "https://github.com/yutod"
},
{
"name": "Nicolas Reynis",
"githubUsername": "nreynis",
"url": "https://github.com/nreynis"
},
{
"name": "Piotr Błażejewicz",
"githubUsername": "peterblazejewicz",
"url": "https://github.com/peterblazejewicz"
}
],
"main": "",
"types": "index.d.ts",
"exports": {
".": {
"types": {
"import": "./index.d.mts",
"require": "./index.d.ts"
}
},
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/js-cookie"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "d8a8b39fde98e89be2790dfbecea0ff8e70cd2773a5149120bae93ccf439920c",
"typeScriptVersion": "4.5"
}
@@ -0,0 +1,27 @@
import {Item as $c1d7fb2ec91bae71$export$6d08773d2e66f8f2} from "./Item.module.js";
import {Section as $9fc4852771d079eb$export$6e2c8f0811a474ce} from "./Section.module.js";
import {useCollection as $7613b1592d41b092$export$6cd28814d92fa9c9} from "./useCollection.module.js";
import {getItemCount as $453cc9f0df89c0a5$export$77d5aafae4e095b2} from "./getItemCount.module.js";
import {compareNodeOrder as $c5a24bc478652b5f$export$8c434b3a7a4dad6, getChildNodes as $c5a24bc478652b5f$export$1005530eda016c13, getFirstItem as $c5a24bc478652b5f$export$fbdeaa6a76694f71, getLastItem as $c5a24bc478652b5f$export$7475b2c64539e4cf, getNthItem as $c5a24bc478652b5f$export$5f3398f8733f90e2} from "./getChildNodes.module.js";
import {CollectionBuilder as $eb2240fc39a57fa5$export$bf788dd355e3a401} from "./CollectionBuilder.module.js";
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
export {$c1d7fb2ec91bae71$export$6d08773d2e66f8f2 as Item, $9fc4852771d079eb$export$6e2c8f0811a474ce as Section, $7613b1592d41b092$export$6cd28814d92fa9c9 as useCollection, $453cc9f0df89c0a5$export$77d5aafae4e095b2 as getItemCount, $c5a24bc478652b5f$export$1005530eda016c13 as getChildNodes, $c5a24bc478652b5f$export$fbdeaa6a76694f71 as getFirstItem, $c5a24bc478652b5f$export$7475b2c64539e4cf as getLastItem, $c5a24bc478652b5f$export$5f3398f8733f90e2 as getNthItem, $c5a24bc478652b5f$export$8c434b3a7a4dad6 as compareNodeOrder, $eb2240fc39a57fa5$export$bf788dd355e3a401 as CollectionBuilder};
//# sourceMappingURL=module.js.map
@@ -0,0 +1,23 @@
function _class_apply_descriptor_destructure(receiver, descriptor) {
if (descriptor.set) {
if (!("__destrObj" in descriptor)) {
descriptor.__destrObj = {
set value(v) {
descriptor.set.call(receiver, v);
}
};
}
return descriptor.__destrObj;
} else {
if (!descriptor.writable) {
// This should only throw in strict mode, but class bodies are
// always strict and private fields can only be used inside
// class bodies.
throw new TypeError("attempted to set read only private field");
}
return descriptor;
}
}
export { _class_apply_descriptor_destructure as _ };
@@ -0,0 +1,279 @@
/// <reference path="./types/importMeta.d.ts" />
// CSS modules
type CSSModuleClasses = { readonly [key: string]: string }
declare module '*.module.css' {
const classes: CSSModuleClasses
export default classes
}
declare module '*.module.scss' {
const classes: CSSModuleClasses
export default classes
}
declare module '*.module.sass' {
const classes: CSSModuleClasses
export default classes
}
declare module '*.module.less' {
const classes: CSSModuleClasses
export default classes
}
declare module '*.module.styl' {
const classes: CSSModuleClasses
export default classes
}
declare module '*.module.stylus' {
const classes: CSSModuleClasses
export default classes
}
declare module '*.module.pcss' {
const classes: CSSModuleClasses
export default classes
}
declare module '*.module.sss' {
const classes: CSSModuleClasses
export default classes
}
// CSS
declare module '*.css' {}
declare module '*.scss' {}
declare module '*.sass' {}
declare module '*.less' {}
declare module '*.styl' {}
declare module '*.stylus' {}
declare module '*.pcss' {}
declare module '*.sss' {}
// Built-in asset types
// see `src/node/constants.ts`
// images
declare module '*.apng' {
const src: string
export default src
}
declare module '*.bmp' {
const src: string
export default src
}
declare module '*.png' {
const src: string
export default src
}
declare module '*.jpg' {
const src: string
export default src
}
declare module '*.jpeg' {
const src: string
export default src
}
declare module '*.jfif' {
const src: string
export default src
}
declare module '*.pjpeg' {
const src: string
export default src
}
declare module '*.pjp' {
const src: string
export default src
}
declare module '*.gif' {
const src: string
export default src
}
declare module '*.svg' {
const src: string
export default src
}
declare module '*.ico' {
const src: string
export default src
}
declare module '*.webp' {
const src: string
export default src
}
declare module '*.avif' {
const src: string
export default src
}
declare module '*.cur' {
const src: string
export default src
}
declare module '*.jxl' {
const src: string
export default src
}
// media
declare module '*.mp4' {
const src: string
export default src
}
declare module '*.webm' {
const src: string
export default src
}
declare module '*.ogg' {
const src: string
export default src
}
declare module '*.mp3' {
const src: string
export default src
}
declare module '*.wav' {
const src: string
export default src
}
declare module '*.flac' {
const src: string
export default src
}
declare module '*.aac' {
const src: string
export default src
}
declare module '*.opus' {
const src: string
export default src
}
declare module '*.mov' {
const src: string
export default src
}
declare module '*.m4a' {
const src: string
export default src
}
declare module '*.vtt' {
const src: string
export default src
}
// fonts
declare module '*.woff' {
const src: string
export default src
}
declare module '*.woff2' {
const src: string
export default src
}
declare module '*.eot' {
const src: string
export default src
}
declare module '*.ttf' {
const src: string
export default src
}
declare module '*.otf' {
const src: string
export default src
}
// other
declare module '*.webmanifest' {
const src: string
export default src
}
declare module '*.pdf' {
const src: string
export default src
}
declare module '*.txt' {
const src: string
export default src
}
// wasm?init
declare module '*.wasm?init' {
const initWasm: (
options?: WebAssembly.Imports,
) => Promise<WebAssembly.Instance>
export default initWasm
}
// web worker
declare module '*?worker' {
const workerConstructor: {
new (options?: { name?: string }): Worker
}
export default workerConstructor
}
declare module '*?worker&inline' {
const workerConstructor: {
new (options?: { name?: string }): Worker
}
export default workerConstructor
}
declare module '*?worker&url' {
const src: string
export default src
}
declare module '*?sharedworker' {
const sharedWorkerConstructor: {
new (options?: { name?: string }): SharedWorker
}
export default sharedWorkerConstructor
}
declare module '*?sharedworker&inline' {
const sharedWorkerConstructor: {
new (options?: { name?: string }): SharedWorker
}
export default sharedWorkerConstructor
}
declare module '*?sharedworker&url' {
const src: string
export default src
}
declare module '*?raw' {
const src: string
export default src
}
declare module '*?url' {
const src: string
export default src
}
declare module '*?inline' {
const src: string
export default src
}
declare module '*?no-inline' {
const src: string
export default src
}
declare module '*?url&inline' {
const src: string
export default src
}
declare module '*?url&no-inline' {
const src: string
export default src
}
declare interface VitePreloadErrorEvent extends Event {
payload: Error
}
declare interface WindowEventMap {
'vite:preloadError': VitePreloadErrorEvent
}
@@ -0,0 +1,54 @@
var SignerInfos_1;
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes, AsnArray, AsnType, AsnTypeTypes, OctetString, } from "@peculiar/asn1-schema";
import { SignerIdentifier } from "./signer_identifier";
import { CMSVersion, SignatureAlgorithmIdentifier, DigestAlgorithmIdentifier } from "./types";
import { Attribute } from "./attribute";
export class SignerInfo {
constructor(params = {}) {
this.version = CMSVersion.v0;
this.sid = new SignerIdentifier();
this.digestAlgorithm = new DigestAlgorithmIdentifier();
this.signatureAlgorithm = new SignatureAlgorithmIdentifier();
this.signature = new OctetString();
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: AsnPropTypes.Integer })
], SignerInfo.prototype, "version", void 0);
__decorate([
AsnProp({ type: SignerIdentifier })
], SignerInfo.prototype, "sid", void 0);
__decorate([
AsnProp({ type: DigestAlgorithmIdentifier })
], SignerInfo.prototype, "digestAlgorithm", void 0);
__decorate([
AsnProp({
type: Attribute,
repeated: "set",
context: 0,
implicit: true,
optional: true,
raw: true,
})
], SignerInfo.prototype, "signedAttrs", void 0);
__decorate([
AsnProp({ type: SignatureAlgorithmIdentifier })
], SignerInfo.prototype, "signatureAlgorithm", void 0);
__decorate([
AsnProp({ type: OctetString })
], SignerInfo.prototype, "signature", void 0);
__decorate([
AsnProp({ type: Attribute, repeated: "set", context: 1, implicit: true, optional: true })
], SignerInfo.prototype, "unsignedAttrs", void 0);
let SignerInfos = SignerInfos_1 = class SignerInfos extends AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, SignerInfos_1.prototype);
}
};
SignerInfos = SignerInfos_1 = __decorate([
AsnType({ type: AsnTypeTypes.Set, itemType: SignerInfo })
], SignerInfos);
export { SignerInfos };
@@ -0,0 +1,57 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _tslib = require("tslib");
var _react = require("react");
var _utils = require("../utils");
var _useMemoizedFn = _interopRequireDefault(require("../useMemoizedFn"));
var _useUpdate = _interopRequireDefault(require("../useUpdate"));
function useControllableValue(defaultProps, options) {
if (options === void 0) {
options = {};
}
var props = defaultProps !== null && defaultProps !== void 0 ? defaultProps : {};
var defaultValue = options.defaultValue,
_a = options.defaultValuePropName,
defaultValuePropName = _a === void 0 ? 'defaultValue' : _a,
_b = options.valuePropName,
valuePropName = _b === void 0 ? 'value' : _b,
_c = options.trigger,
trigger = _c === void 0 ? 'onChange' : _c;
var value = props[valuePropName];
var isControlled = Object.prototype.hasOwnProperty.call(props, valuePropName);
var initialValue = (0, _react.useMemo)(function () {
if (isControlled) {
return value;
}
if (Object.prototype.hasOwnProperty.call(props, defaultValuePropName)) {
return props[defaultValuePropName];
}
return defaultValue;
}, []);
var stateRef = (0, _react.useRef)(initialValue);
if (isControlled) {
stateRef.current = value;
}
var update = (0, _useUpdate["default"])();
function setState(v) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
var r = (0, _utils.isFunction)(v) ? v(stateRef.current) : v;
if (!isControlled) {
stateRef.current = r;
update();
}
if (props[trigger]) {
props[trigger].apply(props, (0, _tslib.__spreadArray)([r], (0, _tslib.__read)(args), false));
}
}
return [stateRef.current, (0, _useMemoizedFn["default"])(setState)];
}
var _default = exports["default"] = useControllableValue;
@@ -0,0 +1,99 @@
// Russian [ru]
import dayjs from '../index';
var monthFormat = 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_');
var monthStandalone = 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_');
var monthShortFormat = 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_');
var monthShortStandalone = 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_');
var MONTHS_IN_FORMAT = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
function plural(word, num) {
var forms = word.split('_');
return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]; // eslint-disable-line
}
function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = {
mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
hh: 'час_часа_часов',
dd: 'день_дня_дней',
MM: 'месяц_месяца_месяцев',
yy: 'год_года_лет'
};
if (key === 'm') {
return withoutSuffix ? 'минута' : 'минуту';
}
return number + " " + plural(format[key], +number);
}
var months = function months(dayjsInstance, format) {
if (MONTHS_IN_FORMAT.test(format)) {
return monthFormat[dayjsInstance.month()];
}
return monthStandalone[dayjsInstance.month()];
};
months.s = monthStandalone;
months.f = monthFormat;
var monthsShort = function monthsShort(dayjsInstance, format) {
if (MONTHS_IN_FORMAT.test(format)) {
return monthShortFormat[dayjsInstance.month()];
}
return monthShortStandalone[dayjsInstance.month()];
};
monthsShort.s = monthShortStandalone;
monthsShort.f = monthShortFormat;
var locale = {
name: 'ru',
weekdays: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
weekdaysShort: 'вск_пнд_втр_срд_чтв_птн_сбт'.split('_'),
weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
months: months,
monthsShort: monthsShort,
weekStart: 1,
yearStart: 4,
formats: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY г.',
LLL: 'D MMMM YYYY г., H:mm',
LLLL: 'dddd, D MMMM YYYY г., H:mm'
},
relativeTime: {
future: 'через %s',
past: '%s назад',
s: 'несколько секунд',
m: relativeTimeWithPlural,
mm: relativeTimeWithPlural,
h: 'час',
hh: relativeTimeWithPlural,
d: 'день',
dd: relativeTimeWithPlural,
M: 'месяц',
MM: relativeTimeWithPlural,
y: 'год',
yy: relativeTimeWithPlural
},
ordinal: function ordinal(n) {
return n;
},
meridiem: function meridiem(hour) {
if (hour < 4) {
return 'ночи';
} else if (hour < 12) {
return 'утра';
} else if (hour < 17) {
return 'дня';
}
return 'вечера';
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1,167 @@
#!/bin/bash
#
# Copyright (c) 2011-2015 Ryan Prichard
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
# findTool(desc, commandList)
#
# Searches commandLine for the first command in the PATH and returns it.
# Prints an error and aborts the script if no match is found.
#
FINDTOOL_OUT=""
function findTool {
DESC=$1
OPTIONS=$2
for CMD in ${OPTIONS}; do
if (which $CMD &>/dev/null) then
echo "Found $DESC: $CMD"
FINDTOOL_OUT="$CMD"
return
fi
done
echo "Error: could not find $DESC. One of these should be in your PATH:"
for CMD in ${OPTIONS}; do
echo " * $CMD"
done
exit 1
}
IS_CYGWIN=0
IS_MSYS1=0
IS_MSYS2=0
# Link parts of the Cygwin binary statically to aid in redistribution? The
# binary still links dynamically against the main DLL. The MinGW binaries are
# also statically linked and therefore depend only on Windows DLLs. I started
# linking the Cygwin/MSYS binary statically, because G++ 4.7 changed the
# Windows C++ ABI.
UNIX_LDFLAGS_STATIC='-static -static-libgcc -static-libstdc++'
# Detect the environment -- Cygwin or MSYS.
case $(uname -s) in
CYGWIN*)
echo 'uname -s identifies a Cygwin environment.'
IS_CYGWIN=1
case $(uname -m) in
i686)
echo 'uname -m identifies an i686 environment.'
UNIX_CXX=i686-pc-cygwin-g++
MINGW_CXX=i686-w64-mingw32-g++
;;
x86_64)
echo 'uname -m identifies an x86_64 environment.'
UNIX_CXX=x86_64-pc-cygwin-g++
MINGW_CXX=x86_64-w64-mingw32-g++
;;
*)
echo 'Error: uname -m did not match either i686 or x86_64.'
exit 1
;;
esac
;;
MSYS*|MINGW*)
# MSYS2 notes:
# - MSYS2 offers two shortcuts to open an environment:
# - MinGW-w64 Win32 Shell. This env reports a `uname -s` of
# MINGW32_NT-6.1 on 32-bit Win7. The MinGW-w64 compiler
# (i686-w64-mingw32-g++.exe) is in the PATH.
# - MSYS2 Shell. `uname -s` instead reports MSYS_NT-6.1.
# The i686-w64-mingw32-g++ compiler is not in the PATH.
# - MSYS2 appears to use MinGW-w64, not the older mingw.org.
# MSYS notes:
# - `uname -s` is always MINGW32_NT-6.1 on Win7.
echo 'uname -s identifies an MSYS/MSYS2 environment.'
case $(uname -m) in
i686)
echo 'uname -m identifies an i686 environment.'
UNIX_CXX=i686-pc-msys-g++
if echo "$(uname -r)" | grep '^1[.]' > /dev/null; then
# The MSYS-targeting compiler for the original 32-bit-only
# MSYS does not recognize the -static-libstdc++ flag, and
# it does not work with -static, because it tries to link
# statically with the core MSYS library and fails.
#
# Distinguish between the two using the major version
# number of `uname -r`:
#
# MSYS uname -r: 1.0.18(0.48/3/2)
# MSYS2 uname -r: 2.0.0(0.284/5/3)
#
# This is suboptimal because MSYS2 is not actually the
# second version of MSYS--it's a brand-new fork of Cygwin.
#
IS_MSYS1=1
UNIX_LDFLAGS_STATIC=
MINGW_CXX=mingw32-g++
else
IS_MSYS2=1
MINGW_CXX=i686-w64-mingw32-g++.exe
fi
;;
x86_64)
echo 'uname -m identifies an x86_64 environment.'
IS_MSYS2=1
UNIX_CXX=x86_64-pc-msys-g++
MINGW_CXX=x86_64-w64-mingw32-g++
;;
*)
echo 'Error: uname -m did not match either i686 or x86_64.'
exit 1
;;
esac
;;
*)
echo 'Error: uname -s did not match either CYGWIN* or MINGW*.'
exit 1
;;
esac
# Search the PATH and pick the first match.
findTool "Cygwin/MSYS G++ compiler" "$UNIX_CXX"
UNIX_CXX=$FINDTOOL_OUT
findTool "MinGW G++ compiler" "$MINGW_CXX"
MINGW_CXX=$FINDTOOL_OUT
# Write config files.
echo Writing config.mk
echo UNIX_CXX=$UNIX_CXX > config.mk
echo UNIX_LDFLAGS_STATIC=$UNIX_LDFLAGS_STATIC >> config.mk
echo MINGW_CXX=$MINGW_CXX >> config.mk
if test $IS_MSYS1 = 1; then
echo UNIX_CXXFLAGS += -DWINPTY_TARGET_MSYS1 >> config.mk
# The MSYS1 MinGW compiler has a bug that prevents inclusion of algorithm
# and math.h in normal C++11 mode. The workaround is to enable the gnu++11
# mode instead. The bug was fixed on 2015-07-31, but as of 2016-02-26, the
# fix apparently hasn't been released. See
# http://ehc.ac/p/mingw/bugs/2250/.
echo MINGW_ENABLE_CXX11_FLAG := -std=gnu++11 >> config.mk
fi
if test -d .git -a -f .git/HEAD -a -f .git/index && git rev-parse HEAD >&/dev/null; then
echo "Commit info: git"
echo 'COMMIT_HASH = $(shell git rev-parse HEAD)' >> config.mk
echo 'COMMIT_HASH_DEP := config.mk .git/HEAD .git/index' >> config.mk
else
echo "Commit info: none"
echo 'COMMIT_HASH := none' >> config.mk
echo 'COMMIT_HASH_DEP := config.mk' >> config.mk
fi
@@ -0,0 +1,9 @@
import extractValueFromTemplateLiteral from './TemplateLiteral';
/**
* Returns the string value of a tagged template literal object.
* Redirects the bulk of the work to `TemplateLiteral`.
*/
export default function extractValueFromTaggedTemplateExpression(value) {
return extractValueFromTemplateLiteral(value.quasi);
}
@@ -0,0 +1,47 @@
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.
'use strict';
module.exports = PassThrough;
var Transform = require('./_stream_transform');
/*<replacement>*/
var util = Object.create(require('core-util-is'));
util.inherits = require('inherits');
/*</replacement>*/
util.inherits(PassThrough, Transform);
function PassThrough(options) {
if (!(this instanceof PassThrough)) return new PassThrough(options);
Transform.call(this, options);
}
PassThrough.prototype._transform = function (chunk, encoding, cb) {
cb(null, chunk);
};
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more