update
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// Generated by LiveScript 1.6.0
|
||||
(function(){
|
||||
var prelude, map, sortBy, fl, closestString, nameToRaw, dasherize, naturalJoin;
|
||||
prelude = require('prelude-ls'), map = prelude.map, sortBy = prelude.sortBy;
|
||||
fl = require('fast-levenshtein');
|
||||
closestString = function(possibilities, input){
|
||||
var distances, ref$, string, distance;
|
||||
if (!possibilities.length) {
|
||||
return;
|
||||
}
|
||||
distances = map(function(it){
|
||||
var ref$, longer, shorter;
|
||||
ref$ = input.length > it.length
|
||||
? [input, it]
|
||||
: [it, input], longer = ref$[0], shorter = ref$[1];
|
||||
return {
|
||||
string: it,
|
||||
distance: fl.get(longer, shorter)
|
||||
};
|
||||
})(
|
||||
possibilities);
|
||||
ref$ = sortBy(function(it){
|
||||
return it.distance;
|
||||
}, distances)[0], string = ref$.string, distance = ref$.distance;
|
||||
return string;
|
||||
};
|
||||
nameToRaw = function(name){
|
||||
if (name.length === 1 || name === 'NUM') {
|
||||
return "-" + name;
|
||||
} else {
|
||||
return "--" + name;
|
||||
}
|
||||
};
|
||||
dasherize = function(string){
|
||||
if (/^[A-Z]/.test(string)) {
|
||||
return string;
|
||||
} else {
|
||||
return prelude.dasherize(string);
|
||||
}
|
||||
};
|
||||
naturalJoin = function(array){
|
||||
if (array.length < 3) {
|
||||
return array.join(' or ');
|
||||
} else {
|
||||
return array.slice(0, -1).join(', ') + ", or " + array[array.length - 1];
|
||||
}
|
||||
};
|
||||
module.exports = {
|
||||
closestString: closestString,
|
||||
nameToRaw: nameToRaw,
|
||||
dasherize: dasherize,
|
||||
naturalJoin: naturalJoin
|
||||
};
|
||||
}).call(this);
|
||||
@@ -0,0 +1,271 @@
|
||||
{
|
||||
"name": "rollup",
|
||||
"version": "4.39.0",
|
||||
"description": "Next-generation ES module bundler",
|
||||
"main": "dist/rollup.js",
|
||||
"module": "dist/es/rollup.js",
|
||||
"types": "dist/rollup.d.ts",
|
||||
"bin": {
|
||||
"rollup": "dist/bin/rollup"
|
||||
},
|
||||
"napi": {
|
||||
"name": "rollup",
|
||||
"package": {
|
||||
"name": "@rollup/rollup"
|
||||
},
|
||||
"triples": {
|
||||
"defaults": false,
|
||||
"additional": [
|
||||
"aarch64-apple-darwin",
|
||||
"aarch64-linux-android",
|
||||
"aarch64-pc-windows-msvc",
|
||||
"aarch64-unknown-freebsd",
|
||||
"aarch64-unknown-linux-gnu",
|
||||
"aarch64-unknown-linux-musl",
|
||||
"armv7-linux-androideabi",
|
||||
"armv7-unknown-linux-gnueabihf",
|
||||
"armv7-unknown-linux-musleabihf",
|
||||
"i686-pc-windows-msvc",
|
||||
"loongarch64-unknown-linux-gnu",
|
||||
"riscv64gc-unknown-linux-gnu",
|
||||
"riscv64gc-unknown-linux-musl",
|
||||
"powerpc64le-unknown-linux-gnu",
|
||||
"s390x-unknown-linux-gnu",
|
||||
"x86_64-apple-darwin",
|
||||
"x86_64-pc-windows-msvc",
|
||||
"x86_64-unknown-freebsd",
|
||||
"x86_64-unknown-linux-gnu",
|
||||
"x86_64-unknown-linux-musl"
|
||||
]
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "concurrently -c green,blue \"npm run build:wasm\" \"npm:build:ast-converters\" && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native",
|
||||
"build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
|
||||
"build:napi": "napi build --platform --dts native.d.ts --js false --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
|
||||
"build:wasm": "cross-env RUSTFLAGS=\"-C opt-level=z\" wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
|
||||
"build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",
|
||||
"update:napi": "npm run build:napi && npm run build:copy-native",
|
||||
"build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit",
|
||||
"build:js:node": "rollup --config rollup.config.ts --configPlugin typescript --configIsBuildNode --forceExit",
|
||||
"build:prepare": "concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js:node\" && npm run build:copy-native",
|
||||
"update:js": "npm run build:js && npm run build:copy-native",
|
||||
"build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
|
||||
"dev": "concurrently -kc green,blue 'nodemon --watch rust -e rs --exec \"npm run build:wasm\"' 'vitepress dev docs'",
|
||||
"build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
|
||||
"build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
|
||||
"build:bootstrap:cjs": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit && shx rm -rf dist-build",
|
||||
"build:docs": "vitepress build docs",
|
||||
"build:ast-converters": "node scripts/generate-ast-converters.js",
|
||||
"preview:docs": "vitepress preview docs",
|
||||
"ci:artifacts": "napi artifacts",
|
||||
"ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
|
||||
"ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && npm run test:only",
|
||||
"ci:test:all": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
|
||||
"ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && NODE_OPTIONS=--no-experimental-detect-module nyc --reporter lcovonly mocha",
|
||||
"lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
|
||||
"lint:js": "eslint . --fix --cache",
|
||||
"lint:js:nofix": "eslint . --cache",
|
||||
"lint:native-js": "node scripts/lint-native-js.js",
|
||||
"lint:markdown": "prettier --write \"**/*.md\"",
|
||||
"lint:markdown:nofix": "prettier --check \"**/*.md\"",
|
||||
"lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
|
||||
"lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
|
||||
"perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
|
||||
"prepare": "husky && node scripts/check-release.js || npm run build:prepare",
|
||||
"prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
|
||||
"postpublish": "node scripts/postpublish.js",
|
||||
"prepublish:napi": "napi prepublish --skip-gh-release",
|
||||
"release": "node scripts/prepare-release.js",
|
||||
"release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
|
||||
"check-audit": "check-audit",
|
||||
"resolve-audit": "resolve-audit",
|
||||
"test": "npm run build && npm run test:all",
|
||||
"test:update-snapshots": "node scripts/update-snapshots.js",
|
||||
"test:cjs": "npm run build:cjs && npm run test:only",
|
||||
"test:quick": "mocha -b test/test.js",
|
||||
"test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan,red 'npm:test:only' 'npm:test:browser' 'npm:test:typescript' 'npm:test:package' 'npm:test:options'",
|
||||
"test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
|
||||
"test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
|
||||
"test:leak": "npm install --no-save weak-napi && node --expose-gc test/leak/index.js",
|
||||
"test:package": "node scripts/test-package.js",
|
||||
"test:options": "node scripts/test-options.js",
|
||||
"test:only": "mocha test/test.js",
|
||||
"test:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/ && tsc --noEmit -p test/typescript && tsc --noEmit && tsc --noEmit -p scripts",
|
||||
"test:browser": "mocha test/browser/index.js",
|
||||
"watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
|
||||
},
|
||||
"repository": "rollup/rollup",
|
||||
"keywords": [
|
||||
"modules",
|
||||
"bundler",
|
||||
"bundling",
|
||||
"es6",
|
||||
"optimizer"
|
||||
],
|
||||
"author": "Rich Harris",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/rollup/rollup/issues"
|
||||
},
|
||||
"homepage": "https://rollupjs.org/",
|
||||
"optionalDependencies": {
|
||||
"fsevents": "~2.3.2",
|
||||
"@rollup/rollup-darwin-arm64": "4.39.0",
|
||||
"@rollup/rollup-android-arm64": "4.39.0",
|
||||
"@rollup/rollup-win32-arm64-msvc": "4.39.0",
|
||||
"@rollup/rollup-freebsd-arm64": "4.39.0",
|
||||
"@rollup/rollup-linux-arm64-gnu": "4.39.0",
|
||||
"@rollup/rollup-linux-arm64-musl": "4.39.0",
|
||||
"@rollup/rollup-android-arm-eabi": "4.39.0",
|
||||
"@rollup/rollup-linux-arm-gnueabihf": "4.39.0",
|
||||
"@rollup/rollup-linux-arm-musleabihf": "4.39.0",
|
||||
"@rollup/rollup-win32-ia32-msvc": "4.39.0",
|
||||
"@rollup/rollup-linux-loongarch64-gnu": "4.39.0",
|
||||
"@rollup/rollup-linux-riscv64-gnu": "4.39.0",
|
||||
"@rollup/rollup-linux-riscv64-musl": "4.39.0",
|
||||
"@rollup/rollup-linux-powerpc64le-gnu": "4.39.0",
|
||||
"@rollup/rollup-linux-s390x-gnu": "4.39.0",
|
||||
"@rollup/rollup-darwin-x64": "4.39.0",
|
||||
"@rollup/rollup-win32-x64-msvc": "4.39.0",
|
||||
"@rollup/rollup-freebsd-x64": "4.39.0",
|
||||
"@rollup/rollup-linux-x64-gnu": "4.39.0",
|
||||
"@rollup/rollup-linux-x64-musl": "4.39.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/estree": "1.0.7"
|
||||
},
|
||||
"devDependenciesComments": {
|
||||
"core-js": "We only update manually as every update requires a snapshot update"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codemirror/commands": "^6.8.0",
|
||||
"@codemirror/lang-javascript": "^6.2.3",
|
||||
"@codemirror/language": "^6.11.0",
|
||||
"@codemirror/search": "^6.5.10",
|
||||
"@codemirror/state": "^6.5.2",
|
||||
"@codemirror/view": "^6.36.4",
|
||||
"@eslint/js": "^9.23.0",
|
||||
"@inquirer/prompts": "^7.4.0",
|
||||
"@jridgewell/sourcemap-codec": "^1.5.0",
|
||||
"@mermaid-js/mermaid-cli": "^11.4.2",
|
||||
"@napi-rs/cli": "^2.18.4",
|
||||
"@rollup/plugin-alias": "^5.1.1",
|
||||
"@rollup/plugin-buble": "^1.0.3",
|
||||
"@rollup/plugin-commonjs": "^28.0.3",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@rollup/plugin-node-resolve": "^16.0.1",
|
||||
"@rollup/plugin-replace": "^6.0.2",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"@rollup/plugin-typescript": "^12.1.2",
|
||||
"@rollup/pluginutils": "^5.1.4",
|
||||
"@shikijs/vitepress-twoslash": "^3.2.1",
|
||||
"@types/mocha": "^10.0.10",
|
||||
"@types/node": "^18.19.83",
|
||||
"@types/picomatch": "^3.0.2",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/yargs-parser": "^21.0.3",
|
||||
"@vue/language-server": "^2.2.8",
|
||||
"acorn": "^8.14.1",
|
||||
"acorn-import-assertions": "^1.9.0",
|
||||
"acorn-jsx": "^5.3.2",
|
||||
"buble": "^0.20.0",
|
||||
"builtin-modules": "^5.0.0",
|
||||
"chokidar": "^3.6.0",
|
||||
"concurrently": "^9.1.2",
|
||||
"core-js": "3.38.1",
|
||||
"cross-env": "^7.0.3",
|
||||
"date-time": "^4.0.0",
|
||||
"es5-shim": "^4.6.7",
|
||||
"es6-shim": "^0.35.8",
|
||||
"eslint": "^9.23.0",
|
||||
"eslint-config-prettier": "^10.1.1",
|
||||
"eslint-plugin-prettier": "^5.2.4",
|
||||
"eslint-plugin-unicorn": "^58.0.0",
|
||||
"eslint-plugin-vue": "^10.0.0",
|
||||
"fixturify": "^3.0.0",
|
||||
"flru": "^1.0.2",
|
||||
"fs-extra": "^11.3.0",
|
||||
"github-api": "^3.4.0",
|
||||
"globals": "^16.0.0",
|
||||
"husky": "^9.1.7",
|
||||
"is-reference": "^3.0.3",
|
||||
"lint-staged": "^15.5.0",
|
||||
"locate-character": "^3.0.0",
|
||||
"magic-string": "^0.30.17",
|
||||
"mocha": "^11.1.0",
|
||||
"nodemon": "^3.1.9",
|
||||
"npm-audit-resolver": "^3.0.0-RC.0",
|
||||
"nyc": "^17.1.0",
|
||||
"picocolors": "^1.1.1",
|
||||
"picomatch": "^4.0.2",
|
||||
"pinia": "^3.0.1",
|
||||
"prettier": "^3.5.3",
|
||||
"prettier-plugin-organize-imports": "^4.1.0",
|
||||
"pretty-bytes": "^6.1.1",
|
||||
"pretty-ms": "^9.2.0",
|
||||
"requirejs": "^2.3.7",
|
||||
"rollup": "^4.37.0",
|
||||
"rollup-plugin-license": "^3.6.0",
|
||||
"rollup-plugin-string": "^3.0.0",
|
||||
"semver": "^7.7.1",
|
||||
"shx": "^0.4.0",
|
||||
"signal-exit": "^4.1.0",
|
||||
"source-map": "^0.7.4",
|
||||
"source-map-support": "^0.5.21",
|
||||
"systemjs": "^6.15.1",
|
||||
"terser": "^5.39.0",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.8.2",
|
||||
"typescript-eslint": "^8.28.0",
|
||||
"vite": "^6.2.3",
|
||||
"vitepress": "^1.6.3",
|
||||
"vue": "^3.5.13",
|
||||
"vue-tsc": "^2.2.8",
|
||||
"wasm-pack": "^0.13.1",
|
||||
"yargs-parser": "^21.1.1"
|
||||
},
|
||||
"overrides": {
|
||||
"axios": "^1.8.4",
|
||||
"semver": "^7.7.1",
|
||||
"readable-stream": "npm:@built-in/readable-stream@1",
|
||||
"esbuild": ">0.24.2"
|
||||
},
|
||||
"comments": {
|
||||
"vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges"
|
||||
},
|
||||
"files": [
|
||||
"dist/*.node",
|
||||
"dist/**/*.js",
|
||||
"dist/*.d.ts",
|
||||
"dist/bin/rollup",
|
||||
"dist/es/package.json"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18.0.0",
|
||||
"npm": ">=8.0.0"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/rollup.d.ts",
|
||||
"require": "./dist/rollup.js",
|
||||
"import": "./dist/es/rollup.js"
|
||||
},
|
||||
"./loadConfigFile": {
|
||||
"types": "./dist/loadConfigFile.d.ts",
|
||||
"require": "./dist/loadConfigFile.js",
|
||||
"default": "./dist/loadConfigFile.js"
|
||||
},
|
||||
"./getLogFilter": {
|
||||
"types": "./dist/getLogFilter.d.ts",
|
||||
"require": "./dist/getLogFilter.js",
|
||||
"import": "./dist/es/getLogFilter.js"
|
||||
},
|
||||
"./parseAst": {
|
||||
"types": "./dist/parseAst.d.ts",
|
||||
"require": "./dist/parseAst.js",
|
||||
"import": "./dist/es/parseAst.js"
|
||||
},
|
||||
"./dist/*": "./dist/*"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
/*!
|
||||
* ISC License
|
||||
*
|
||||
* Copyright (c) 2018-2021, Andrea Giammarchi, @WebReflection
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
class FlattedString {
|
||||
public $value = '';
|
||||
public function __construct($value) {
|
||||
$this->value = $value;
|
||||
}
|
||||
}
|
||||
|
||||
class Flatted {
|
||||
|
||||
// public utilities
|
||||
public static function parse($json, $assoc = false, $depth = 512, $options = 0) {
|
||||
$input = array_map(
|
||||
'Flatted::asString',
|
||||
array_map(
|
||||
'Flatted::wrap',
|
||||
json_decode($json, $assoc, $depth, $options)
|
||||
)
|
||||
);
|
||||
$value = &$input[0];
|
||||
$set = array();
|
||||
$set[] = &$value;
|
||||
if (is_array($value))
|
||||
return Flatted::loop(false, array_keys($value), $input, $set, $value);
|
||||
if (is_object($value))
|
||||
return Flatted::loop(true, Flatted::keys($value), $input, $set, $value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
public static function stringify($value, $options = 0, $depth = 512) {
|
||||
$known = new stdClass;
|
||||
$known->key = array();
|
||||
$known->value = array();
|
||||
$input = array();
|
||||
$output = array();
|
||||
$i = intval(Flatted::index($known, $input, $value));
|
||||
while ($i < count($input)) {
|
||||
$output[$i] = Flatted::transform($known, $input, $input[$i]);
|
||||
$i++;
|
||||
}
|
||||
return json_encode($output, $options, $depth);
|
||||
}
|
||||
|
||||
// private helpers
|
||||
private static function asString($value) {
|
||||
return $value instanceof FlattedString ? $value->value : $value;
|
||||
}
|
||||
|
||||
private static function index(&$known, &$input, &$value) {
|
||||
$input[] = &$value;
|
||||
$index = strval(count($input) - 1);
|
||||
$known->key[] = &$value;
|
||||
$known->value[] = &$index;
|
||||
return $index;
|
||||
}
|
||||
|
||||
private static function keys(&$value) {
|
||||
$obj = new ReflectionObject($value);
|
||||
$props = $obj->getProperties();
|
||||
$keys = array();
|
||||
foreach ($props as $prop)
|
||||
$keys[] = $prop->getName();
|
||||
return $keys;
|
||||
}
|
||||
|
||||
private static function loop($obj, $keys, &$input, &$set, &$output) {
|
||||
foreach ($keys as $key) {
|
||||
$value = $obj ? $output->$key : $output[$key];
|
||||
if ($value instanceof FlattedString)
|
||||
Flatted::ref($obj, $key, $input[$value->value], $input, $set, $output);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
private static function relate(&$known, &$input, &$value) {
|
||||
if (is_string($value) || is_array($value) || is_object($value)) {
|
||||
$key = array_search($value, $known->key, true);
|
||||
if ($key !== false)
|
||||
return $known->value[$key];
|
||||
return Flatted::index($known, $input, $value);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
private static function ref($obj, &$key, &$value, &$input, &$set, &$output) {
|
||||
if (is_array($value) && !in_array($value, $set, true)) {
|
||||
$set[] = $value;
|
||||
$value = Flatted::loop(false, array_keys($value), $input, $set, $value);
|
||||
}
|
||||
elseif (is_object($value) && !in_array($value, $set, true)) {
|
||||
$set[] = $value;
|
||||
$value = Flatted::loop(true, Flatted::keys($value), $input, $set, $value);
|
||||
}
|
||||
if ($obj) {
|
||||
$output->$key = &$value;
|
||||
}
|
||||
else {
|
||||
$output[$key] = &$value;
|
||||
}
|
||||
}
|
||||
|
||||
private static function transform(&$known, &$input, &$value) {
|
||||
if (is_array($value)) {
|
||||
return array_map(
|
||||
function ($value) use(&$known, &$input) {
|
||||
return Flatted::relate($known, $input, $value);
|
||||
},
|
||||
$value
|
||||
);
|
||||
}
|
||||
if (is_object($value)) {
|
||||
$object = new stdClass;
|
||||
$keys = Flatted::keys($value);
|
||||
foreach ($keys as $key)
|
||||
$object->$key = Flatted::relate($known, $input, $value->$key);
|
||||
return $object;
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
private static function wrap($value) {
|
||||
if (is_string($value)) {
|
||||
return new FlattedString($value);
|
||||
}
|
||||
if (is_array($value)) {
|
||||
return array_map('Flatted::wrap', $value);
|
||||
}
|
||||
if (is_object($value)) {
|
||||
$keys = Flatted::keys($value);
|
||||
foreach ($keys as $key) {
|
||||
$value->$key = self::wrap($value->$key);
|
||||
}
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"F A B","2":"K D E mC"},B:{"1":"0 9 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC","2":"nC LC J PB K qC rC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC","2":"J PB","33":"K D E F A B C"},E:{"1":"E F A B C L M G wC TC FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"J PB K D sC SC tC uC vC"},F:{"1":"0 1 2 3 4 5 6 7 8 G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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":"F B C 4C 5C 6C 7C FC kC 8C GC"},G:{"1":"E ED FD GD HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","2":"SC 9C lC AD BD CD DD"},H:{"2":"WD"},I:{"1":"J I aD lC bD cD","2":"LC XD YD ZD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"1":"A B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"1":"oD"},R:{"1":"pD"},S:{"1":"qD rD"}},B:2,C:"Navigation Timing API",D:true};
|
||||
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _get;
|
||||
var _superPropBase = require("./superPropBase.js");
|
||||
function _get() {
|
||||
if (typeof Reflect !== "undefined" && Reflect.get) {
|
||||
exports.default = _get = Reflect.get.bind();
|
||||
} else {
|
||||
exports.default = _get = function _get(target, property, receiver) {
|
||||
var base = (0, _superPropBase.default)(target, property);
|
||||
if (!base) return;
|
||||
var desc = Object.getOwnPropertyDescriptor(base, property);
|
||||
if (desc.get) {
|
||||
return desc.get.call(arguments.length < 3 ? target : receiver);
|
||||
}
|
||||
return desc.value;
|
||||
};
|
||||
}
|
||||
return _get.apply(null, arguments);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=get.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"B","2":"K D E F A mC"},B:{"1":"0 9 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 nC LC J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC qC rC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC"},E:{"1":"J PB K D E F A B C L M G sC SC tC uC vC wC TC FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C"},F:{"1":"0 1 2 3 4 5 6 7 8 F B C G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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 4C 5C 6C 7C FC kC 8C GC"},G:{"1":"KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","130":"E SC 9C lC AD BD CD DD ED FD GD HD ID JD"},H:{"130":"WD"},I:{"1":"LC J I XD YD ZD aD lC bD cD"},J:{"1":"D","130":"A"},K:{"1":"H","130":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"130":"A B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"1":"oD"},R:{"1":"pD"},S:{"1":"qD rD"}},B:1,C:"PNG favicons",D:true};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F A B mC"},B:{"1":"0 9 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC","2":"nC LC J PB K D E F A B C L M G N O qC rC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC","2":"J PB K D E F A B C L M G","16":"N O P QB"},E:{"1":"D E F A B C L M G uC vC wC TC FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"J PB sC SC tC","16":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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 GC","2":"F B 4C 5C 6C 7C FC kC 8C","16":"C"},G:{"1":"E BD CD DD ED FD GD HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","2":"SC 9C lC AD"},H:{"1":"WD"},I:{"1":"I bD cD","2":"LC J XD YD ZD aD lC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"2":"A B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"1":"oD"},R:{"1":"pD"},S:{"1":"qD rD"}},B:1,C:"Reversed attribute of ordered lists",D:true};
|
||||
@@ -0,0 +1,67 @@
|
||||
'use strict'
|
||||
|
||||
let Document = require('./document')
|
||||
let LazyResult = require('./lazy-result')
|
||||
let NoWorkResult = require('./no-work-result')
|
||||
let Root = require('./root')
|
||||
|
||||
class Processor {
|
||||
constructor(plugins = []) {
|
||||
this.version = '8.5.3'
|
||||
this.plugins = this.normalize(plugins)
|
||||
}
|
||||
|
||||
normalize(plugins) {
|
||||
let normalized = []
|
||||
for (let i of plugins) {
|
||||
if (i.postcss === true) {
|
||||
i = i()
|
||||
} else if (i.postcss) {
|
||||
i = i.postcss
|
||||
}
|
||||
|
||||
if (typeof i === 'object' && Array.isArray(i.plugins)) {
|
||||
normalized = normalized.concat(i.plugins)
|
||||
} else if (typeof i === 'object' && i.postcssPlugin) {
|
||||
normalized.push(i)
|
||||
} else if (typeof i === 'function') {
|
||||
normalized.push(i)
|
||||
} else if (typeof i === 'object' && (i.parse || i.stringify)) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
throw new Error(
|
||||
'PostCSS syntaxes cannot be used as plugins. Instead, please use ' +
|
||||
'one of the syntax/parser/stringifier options as outlined ' +
|
||||
'in your PostCSS runner documentation.'
|
||||
)
|
||||
}
|
||||
} else {
|
||||
throw new Error(i + ' is not a PostCSS plugin')
|
||||
}
|
||||
}
|
||||
return normalized
|
||||
}
|
||||
|
||||
process(css, opts = {}) {
|
||||
if (
|
||||
!this.plugins.length &&
|
||||
!opts.parser &&
|
||||
!opts.stringifier &&
|
||||
!opts.syntax
|
||||
) {
|
||||
return new NoWorkResult(this, css, opts)
|
||||
} else {
|
||||
return new LazyResult(this, css, opts)
|
||||
}
|
||||
}
|
||||
|
||||
use(plugin) {
|
||||
this.plugins = this.plugins.concat(this.normalize([plugin]))
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Processor
|
||||
Processor.default = Processor
|
||||
|
||||
Root.registerProcessor(Processor)
|
||||
Document.registerProcessor(Processor)
|
||||
@@ -0,0 +1,218 @@
|
||||
# eslint-plugin-react-refresh [](https://www.npmjs.com/package/eslint-plugin-react-refresh)
|
||||
|
||||
Validate that your components can safely be updated with Fast Refresh.
|
||||
|
||||
## Explainer
|
||||
|
||||
"Fast Refresh", also known as "hot reloading", is a feature in many modern bundlers.
|
||||
If you update some React component(s) on disk, then the bundler will know to update only the impacted parts of your page -- without a full page reload.
|
||||
|
||||
`eslint-plugin-react-refresh` enforces that your components are structured in a way that integrations such as [react-refresh](https://www.npmjs.com/package/react-refresh) expect.
|
||||
|
||||
### Limitations
|
||||
|
||||
⚠️ To avoid false positives, by default this plugin is only applied on `tsx` & `jsx` files. See [Options](#options) to run on JS files. ⚠️
|
||||
|
||||
The plugin relies on naming conventions (i.e. use PascalCase for components, camelCase for util functions). This is why there are some limitations:
|
||||
|
||||
- `export *` are not supported and will be reported as an error
|
||||
- Anonymous function are not supported (i.e `export default function() {}`)
|
||||
- Class components are not supported
|
||||
- All-uppercase function export is considered an error when not using direct named export (ex `const CMS = () => <></>; export { CMS }`)
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm i -D eslint-plugin-react-refresh
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
This plugin provides a single rule, `react-refresh/only-export-components`. There are multiple ways to enable it.
|
||||
|
||||
### Recommended config
|
||||
|
||||
```js
|
||||
import reactRefresh from "eslint-plugin-react-refresh";
|
||||
|
||||
export default [
|
||||
/* Main config */
|
||||
reactRefresh.configs.recommended,
|
||||
];
|
||||
```
|
||||
|
||||
### Vite config
|
||||
|
||||
This enables the `allowConstantExport` option which is supported by Vite React plugins.
|
||||
|
||||
```js
|
||||
import reactRefresh from "eslint-plugin-react-refresh";
|
||||
|
||||
export default [
|
||||
/* Main config */
|
||||
reactRefresh.configs.vite,
|
||||
];
|
||||
```
|
||||
|
||||
### Without config
|
||||
|
||||
```js
|
||||
import reactRefresh from "eslint-plugin-react-refresh";
|
||||
|
||||
export default [
|
||||
{
|
||||
// in main config for TSX/JSX source files
|
||||
plugins: {
|
||||
"react-refresh": reactRefresh,
|
||||
},
|
||||
rules: {
|
||||
"react-refresh/only-export-components": "error",
|
||||
},
|
||||
},
|
||||
];
|
||||
```
|
||||
|
||||
### Legacy config
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"plugins": ["react-refresh"],
|
||||
"rules": {
|
||||
"react-refresh/only-export-components": "error"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
These examples are from enabling `react-refresh/only-exports-components`.
|
||||
|
||||
### Fail
|
||||
|
||||
```jsx
|
||||
export const foo = () => {};
|
||||
export const Bar = () => <></>;
|
||||
```
|
||||
|
||||
```jsx
|
||||
export default function () {}
|
||||
export default compose()(MainComponent)
|
||||
```
|
||||
|
||||
```jsx
|
||||
export * from "./foo";
|
||||
```
|
||||
|
||||
```jsx
|
||||
const Tab = () => {};
|
||||
export const tabs = [<Tab />, <Tab />];
|
||||
```
|
||||
|
||||
```jsx
|
||||
const App = () => {};
|
||||
createRoot(document.getElementById("root")).render(<App />);
|
||||
```
|
||||
|
||||
### Pass
|
||||
|
||||
```jsx
|
||||
export default function Foo() {
|
||||
return <></>;
|
||||
}
|
||||
```
|
||||
|
||||
```jsx
|
||||
const foo = () => {};
|
||||
export const Bar = () => <></>;
|
||||
```
|
||||
|
||||
```jsx
|
||||
import { App } from "./App";
|
||||
createRoot(document.getElementById("root")).render(<App />);
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
These options are all present on `react-refresh/only-exports-components`.
|
||||
|
||||
```ts
|
||||
interface Options {
|
||||
allowExportNames?: string[];
|
||||
allowConstantExport?: boolean;
|
||||
customHOCs?: string[];
|
||||
checkJS?: boolean;
|
||||
}
|
||||
|
||||
const defaultOptions: Options = {
|
||||
allowExportNames: [],
|
||||
allowConstantExport: false,
|
||||
customHOCs: [],
|
||||
checkJS: false,
|
||||
};
|
||||
```
|
||||
|
||||
### allowExportNames <small>(v0.4.4)</small>
|
||||
|
||||
> Default: `[]`
|
||||
|
||||
If you use a framework that handles HMR of some specific exports, you can use this option to avoid warning for them.
|
||||
|
||||
Example for [Remix](https://remix.run/docs/en/main/discussion/hot-module-replacement#supported-exports):
|
||||
|
||||
```json
|
||||
{
|
||||
"react-refresh/only-export-components": [
|
||||
"error",
|
||||
{ "allowExportNames": ["meta", "links", "headers", "loader", "action"] }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### allowConstantExport <small>(v0.4.0)</small>
|
||||
|
||||
> Default: `false` (`true` in `vite` config)
|
||||
|
||||
Don't warn when a constant (string, number, boolean, templateLiteral) is exported aside one or more components.
|
||||
|
||||
This should be enabled if the fast refresh implementation correctly handles this case (HMR when the constant doesn't change, propagate update to importers when the constant changes.). Vite supports it, PR welcome if you notice other integrations works well.
|
||||
|
||||
```json
|
||||
{
|
||||
"react-refresh/only-export-components": [
|
||||
"error",
|
||||
{ "allowConstantExport": true }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Enabling this option allows code such as the following:
|
||||
|
||||
```jsx
|
||||
export const CONSTANT = 3;
|
||||
export const Foo = () => <></>;
|
||||
```
|
||||
|
||||
### checkJS <small>(v0.3.3)</small>
|
||||
|
||||
> Default: `false`
|
||||
|
||||
If your using JSX inside `.js` files (which I don't recommend because it forces you to configure every tool you use to switch the parser), you can still use the plugin by enabling this option. To reduce the number of false positive, only files importing `react` are checked.
|
||||
|
||||
```json
|
||||
{
|
||||
"react-refresh/only-export-components": ["error", { "checkJS": true }]
|
||||
}
|
||||
```
|
||||
|
||||
### customHOCs <small>(v0.4.15)</small>
|
||||
|
||||
If you're exporting a component wrapped in a custom HOC, you can use this option to avoid false positives.
|
||||
|
||||
```json
|
||||
{
|
||||
"react-refresh/only-export-components": [
|
||||
"error",
|
||||
{ "customHOCs": ["observer", "withAuth"] }
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F A B mC"},B:{"1":"0 9 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I","2":"C L M G N"},C:{"1":"0 9 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC","2":"1 2 3 4 5 6 7 8 nC LC J PB K D E F A B C L M G N O P QB RB qC rC","132":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB"},D:{"1":"0 9 mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC","2":"1 2 3 4 5 6 7 8 J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"B C L M G TC FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"J PB K D E F A sC SC tC uC vC wC"},F:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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":"1 2 3 4 5 6 7 8 F B C G N O P QB RB SB TB UB VB WB XB YB 4C 5C 6C 7C FC kC 8C GC"},G:{"1":"HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","2":"E SC 9C lC AD BD CD DD ED FD GD"},H:{"2":"WD"},I:{"1":"I","2":"LC J XD YD ZD aD lC bD cD"},J:{"2":"D A"},K:{"1":"H","2":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"2":"A B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD","2":"J"},Q:{"1":"oD"},R:{"1":"pD"},S:{"1":"qD rD"}},B:1,C:"URLSearchParams",D:true};
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./uri";
|
||||
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright {yyyy} {name of copyright owner}
|
||||
|
||||
Licensed 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 CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -0,0 +1,21 @@
|
||||
(MIT)
|
||||
|
||||
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
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 @@
|
||||
module.exports={C:{"45":0.00587,"52":0.13499,"68":0.20542,"78":0.00587,"88":0.00587,"102":0.00587,"105":0.36975,"113":0.00587,"114":0.00587,"115":1.02121,"123":0.02935,"125":0.05869,"127":0.02935,"128":0.11738,"130":0.00587,"131":0.00587,"132":0.01174,"133":0.05869,"134":0.03521,"135":0.78645,"136":3.20447,"137":0.00587,"138":0.01761,_:"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 43 44 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 106 107 108 109 110 111 112 116 117 118 119 120 121 122 124 126 129 139 140 3.5 3.6"},D:{"38":0.00587,"47":0.21128,"49":0.04108,"56":0.00587,"57":0.04695,"58":0.00587,"68":0.38735,"73":0.19955,"75":0.00587,"76":0.01761,"79":0.05869,"81":0.00587,"83":0.00587,"87":0.02348,"88":0.59864,"89":0.02348,"91":0.00587,"92":0.00587,"93":0.00587,"94":0.00587,"95":0.00587,"97":0.00587,"99":0.00587,"101":0.01761,"102":0.15846,"103":0.05869,"105":0.02935,"106":0.00587,"107":0.01174,"108":0.01174,"109":5.52273,"110":0.00587,"111":0.01174,"112":0.00587,"113":0.00587,"114":0.01761,"115":0.00587,"116":0.07043,"118":0.00587,"119":0.01174,"120":0.02348,"121":0.02348,"122":0.0939,"123":0.01761,"124":0.12912,"125":0.02348,"126":0.08804,"127":0.0763,"128":0.0939,"129":0.07043,"130":0.09977,"131":0.18781,"132":0.68667,"133":9.98904,"134":21.4688,"135":0.01761,"136":0.00587,_:"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 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 59 60 61 62 63 64 65 66 67 69 70 71 72 74 77 78 80 84 85 86 90 96 98 100 104 117 137 138"},F:{"31":0.48126,"36":0.01761,"40":0.53995,"46":0.38149,"79":0.02348,"87":0.01174,"88":0.00587,"95":0.05869,"114":0.01761,"115":0.00587,"116":0.18194,"117":1.06229,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.05869,"122":0.00587,"126":0.01761,"127":0.00587,"128":0.00587,"129":0.00587,"130":0.00587,"131":0.02348,"132":0.04695,"133":1.43204,"134":3.74442,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 124 125"},E:{"12":0.01174,"14":0.00587,_:"0 4 5 6 7 8 9 10 11 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.2-15.3","11.1":0.01174,"12.1":0.00587,"13.1":0.01761,"14.1":0.02348,"15.4":0.18781,"15.5":0.01174,"15.6":0.14086,"16.0":0.01174,"16.1":0.01174,"16.2":0.00587,"16.3":0.01761,"16.4":0.00587,"16.5":0.03521,"16.6":0.12325,"17.0":0.00587,"17.1":0.05282,"17.2":0.00587,"17.3":0.01174,"17.4":0.02935,"17.5":0.0763,"17.6":0.20542,"18.0":0.01761,"18.1":0.05869,"18.2":0.02935,"18.3":0.86861,"18.4":0.00587},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00147,"5.0-5.1":0,"6.0-6.1":0.0044,"7.0-7.1":0.00293,"8.1-8.4":0,"9.0-9.2":0.0022,"9.3":0.01027,"10.0-10.2":0.00073,"10.3":0.01686,"11.0-11.2":0.07772,"11.3-11.4":0.00513,"12.0-12.1":0.00293,"12.2-12.5":0.07259,"13.0-13.1":0.00147,"13.2":0.0022,"13.3":0.00293,"13.4-13.7":0.01027,"14.0-14.4":0.02566,"14.5-14.8":0.0308,"15.0-15.1":0.01686,"15.2-15.3":0.01686,"15.4":0.02053,"15.5":0.02346,"15.6-15.8":0.2889,"16.0":0.04106,"16.1":0.08432,"16.2":0.044,"16.3":0.07626,"16.4":0.01686,"16.5":0.03153,"16.6-16.7":0.34243,"17.0":0.02053,"17.1":0.03666,"17.2":0.02786,"17.3":0.03886,"17.4":0.07772,"17.5":0.17305,"17.6-17.7":0.50228,"18.0":0.14078,"18.1":0.46048,"18.2":0.20604,"18.3":4.30639,"18.4":0.06379},P:{"4":0.24039,"20":0.01045,"21":0.0209,"22":0.01045,"23":0.03135,"24":0.03135,"25":0.0209,"26":0.05226,"27":1.45278,"5.0-5.4":0.01045,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01045,"16.0":0.0209},I:{"0":0.05771,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.25199,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.22889,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.32222},Q:{"14.9":0.00413},O:{"0":0.04957},H:{"0":0},L:{"0":32.08416}};
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-dev-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsxDEV = void 0;
|
||||
@@ -0,0 +1,27 @@
|
||||
export class ModuleImporter {
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {string} [cwd] The current working directory to resolve from.
|
||||
*/
|
||||
constructor(cwd?: string);
|
||||
/**
|
||||
* The base directory from which paths should be resolved.
|
||||
* @type {string}
|
||||
*/
|
||||
cwd: string;
|
||||
/**
|
||||
* Resolves a module based on its name or location.
|
||||
* @param {string} specifier Either an npm package name or
|
||||
* relative file path.
|
||||
* @returns {string|undefined} The location of the import.
|
||||
* @throws {Error} If specifier cannot be located.
|
||||
*/
|
||||
resolve(specifier: string): string | undefined;
|
||||
/**
|
||||
* Imports a module based on its name or location.
|
||||
* @param {string} specifier Either an npm package name or
|
||||
* relative file path.
|
||||
* @returns {Promise<object>} The module's object.
|
||||
*/
|
||||
import(specifier: string): Promise<object>;
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
const path = require('path')
|
||||
const fs = require('fs')
|
||||
const get = require('simple-get')
|
||||
const pump = require('pump')
|
||||
const tfs = require('tar-fs')
|
||||
const zlib = require('zlib')
|
||||
const util = require('./util')
|
||||
const error = require('./error')
|
||||
const proxy = require('./proxy')
|
||||
const mkdirp = require('mkdirp-classic')
|
||||
|
||||
function downloadPrebuild (downloadUrl, opts, cb) {
|
||||
let cachedPrebuild = util.cachedPrebuild(downloadUrl)
|
||||
const localPrebuild = util.localPrebuild(downloadUrl, opts)
|
||||
const tempFile = util.tempFile(cachedPrebuild)
|
||||
const log = opts.log || util.noopLogger
|
||||
|
||||
if (opts.nolocal) return download()
|
||||
|
||||
log.info('looking for local prebuild @', localPrebuild)
|
||||
fs.access(localPrebuild, fs.R_OK | fs.W_OK, function (err) {
|
||||
if (err && err.code === 'ENOENT') {
|
||||
return download()
|
||||
}
|
||||
|
||||
log.info('found local prebuild')
|
||||
cachedPrebuild = localPrebuild
|
||||
unpack()
|
||||
})
|
||||
|
||||
function download () {
|
||||
ensureNpmCacheDir(function (err) {
|
||||
if (err) return onerror(err)
|
||||
|
||||
log.info('looking for cached prebuild @', cachedPrebuild)
|
||||
fs.access(cachedPrebuild, fs.R_OK | fs.W_OK, function (err) {
|
||||
if (!(err && err.code === 'ENOENT')) {
|
||||
log.info('found cached prebuild')
|
||||
return unpack()
|
||||
}
|
||||
|
||||
log.http('request', 'GET ' + downloadUrl)
|
||||
const reqOpts = proxy({ url: downloadUrl }, opts)
|
||||
|
||||
if (opts.token) {
|
||||
reqOpts.headers = {
|
||||
'User-Agent': 'simple-get',
|
||||
Accept: 'application/octet-stream',
|
||||
Authorization: 'token ' + opts.token
|
||||
}
|
||||
}
|
||||
|
||||
const req = get(reqOpts, function (err, res) {
|
||||
if (err) return onerror(err)
|
||||
log.http(res.statusCode, downloadUrl)
|
||||
if (res.statusCode !== 200) return onerror()
|
||||
mkdirp(util.prebuildCache(), function () {
|
||||
log.info('downloading to @', tempFile)
|
||||
pump(res, fs.createWriteStream(tempFile), function (err) {
|
||||
if (err) return onerror(err)
|
||||
fs.rename(tempFile, cachedPrebuild, function (err) {
|
||||
if (err) return cb(err)
|
||||
log.info('renaming to @', cachedPrebuild)
|
||||
unpack()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
req.setTimeout(30 * 1000, function () {
|
||||
req.abort()
|
||||
})
|
||||
})
|
||||
|
||||
function onerror (err) {
|
||||
fs.unlink(tempFile, function () {
|
||||
cb(err || error.noPrebuilts(opts))
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function unpack () {
|
||||
let binaryName
|
||||
|
||||
const updateName = opts.updateName || function (entry) {
|
||||
if (/\.node$/i.test(entry.name)) binaryName = entry.name
|
||||
}
|
||||
|
||||
log.info('unpacking @', cachedPrebuild)
|
||||
|
||||
const options = {
|
||||
readable: true,
|
||||
writable: true,
|
||||
hardlinkAsFilesFallback: true
|
||||
}
|
||||
const extract = tfs.extract(opts.path, options).on('entry', updateName)
|
||||
|
||||
pump(fs.createReadStream(cachedPrebuild), zlib.createGunzip(), extract,
|
||||
function (err) {
|
||||
if (err) return cb(err)
|
||||
|
||||
let resolved
|
||||
if (binaryName) {
|
||||
try {
|
||||
resolved = path.resolve(opts.path || '.', binaryName)
|
||||
} catch (err) {
|
||||
return cb(err)
|
||||
}
|
||||
log.info('unpack', 'resolved to ' + resolved)
|
||||
|
||||
if (opts.runtime === 'node' && opts.platform === process.platform && opts.abi === process.versions.modules && opts.arch === process.arch) {
|
||||
try {
|
||||
require(resolved)
|
||||
} catch (err) {
|
||||
return cb(err)
|
||||
}
|
||||
log.info('unpack', 'required ' + resolved + ' successfully')
|
||||
}
|
||||
}
|
||||
|
||||
cb(null, resolved)
|
||||
})
|
||||
}
|
||||
|
||||
function ensureNpmCacheDir (cb) {
|
||||
const cacheFolder = util.npmCache()
|
||||
fs.access(cacheFolder, fs.R_OK | fs.W_OK, function (err) {
|
||||
if (err && err.code === 'ENOENT') {
|
||||
return makeNpmCacheDir()
|
||||
}
|
||||
cb(err)
|
||||
})
|
||||
|
||||
function makeNpmCacheDir () {
|
||||
log.info('npm cache directory missing, creating it...')
|
||||
mkdirp(cacheFolder, cb)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = downloadPrebuild
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E mC","520":"F A B"},B:{"1":"0 9 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I","8":"C L","388":"M G N O P"},C:{"1":"0 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC","2":"nC LC qC rC","132":"1 2 3 4 5 6 7 8 J PB K D E F A B C L M G N O P QB"},D:{"1":"0 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC","2":"J PB","132":"1 2 3 4 5 K D E F A B C L M G N O P QB"},E:{"1":"IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"sC","8":"J PB SC tC","520":"K D E F A B C uC vC wC TC FC","1028":"L GC xC","7172":"M","8196":"G yC zC UC VC HC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC 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":"F 4C 5C 6C","132":"B C G 7C FC kC 8C GC"},G:{"1":"eC fC VD KC gC hC iC jC","2":"E SC 9C lC AD BD CD DD ED FD GD HD ID JD KD","1028":"LD MD ND OD PD","3076":"QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC"},H:{"2":"WD"},I:{"1":"I","2":"XD YD","132":"LC J ZD aD lC bD cD"},J:{"2":"D A"},K:{"1":"H","2":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"8":"A B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD","132":"J"},Q:{"1":"oD"},R:{"1":"pD"},S:{"1":"qD rD"}},B:6,C:"WebM video format",D:true};
|
||||
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/use-sync-external-store-with-selector.production.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/use-sync-external-store-with-selector.development.js');
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Check whether a given character is a combining mark or not.
|
||||
* @param {number} codePoint The character code to check.
|
||||
* @returns {boolean} `true` if the character belongs to the category, any of `Mc`, `Me`, and `Mn`.
|
||||
*/
|
||||
module.exports = function isCombiningCharacter(codePoint) {
|
||||
return /^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(codePoint));
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.39.0
|
||||
Wed, 02 Apr 2025 04:49:00 GMT - commit 5c001245779063abac3899aa9d25294ab003581b
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
Released under the MIT License.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
let fsEvents;
|
||||
let fsEventsImportError;
|
||||
async function loadFsEvents() {
|
||||
try {
|
||||
({ default: fsEvents } = await import('fsevents'));
|
||||
}
|
||||
catch (error) {
|
||||
fsEventsImportError = error;
|
||||
}
|
||||
}
|
||||
// A call to this function will be injected into the chokidar code
|
||||
function getFsEvents() {
|
||||
if (fsEventsImportError)
|
||||
throw fsEventsImportError;
|
||||
return fsEvents;
|
||||
}
|
||||
|
||||
const fseventsImporter = /*#__PURE__*/Object.defineProperty({
|
||||
__proto__: null,
|
||||
getFsEvents,
|
||||
loadFsEvents
|
||||
}, Symbol.toStringTag, { value: 'Module' });
|
||||
|
||||
exports.fseventsImporter = fseventsImporter;
|
||||
exports.loadFsEvents = loadFsEvents;
|
||||
//# sourceMappingURL=fsevents-importer.js.map
|
||||
Reference in New Issue
Block a user