chore:更换到主分支

This commit is contained in:
张益铭
2021-03-01 15:26:05 +08:00
parent 9064b372e8
commit 6a5f1810f9
3530 changed files with 59613 additions and 479452 deletions

229
node_modules/rollup/CHANGELOG.md generated vendored
View File

@@ -1,10 +1,237 @@
# rollup changelog
## 2.40.0
*2021-02-26*
### Features
* Make sure that entry point variable names take precedence over variable names in dependencies when deconflicting (#3977)
### Bug Fixes
* Replace `:` in generated file names to prevent invalid files on Windows (#3972)
### Pull Requests
* [#3972](https://github.com/rollup/rollup/pull/3972): Don't allow `:` in file names (@lukastaegert)
* [#3976](https://github.com/rollup/rollup/pull/3976): Add soft breaks to guide to improve mobile experience (@lukastaegert)
* [#3977](https://github.com/rollup/rollup/pull/3977): Reverse module deconflicting order (@lukastaegert)
## 2.39.1
*2021-02-23*
### Bug Fixes
* Make sure local variables named Symbol, Object or Promise do not conflict with code generated by Rollup (#3971)
### Pull Requests
* [#3964](https://github.com/rollup/rollup/pull/3964): Remove extra word (@jamonholmgren)
* [#3971](https://github.com/rollup/rollup/pull/3971): Avoid conflicts with local variables named Symbol, Object, Promise (@lukastaegert)
## 2.39.0
*2021-02-12*
### Features
* Add "validate" option to verify generated chunks are valid JavaScript (#3952)
### Bug Fixes
* Always add exports properties for uninitialized named exports (#3957)
* Allow using an external namespace reexport together with named exports (#3959)
* Avoid invalid generated code in certain scenarios with SystemJS exports (#3960)
### Pull Requests
* [#3952](https://github.com/rollup/rollup/pull/3952): implement `validate` output option and `--validate` CLI option (@kzc)
* [#3956](https://github.com/rollup/rollup/pull/3956): Update dependencies, fix fsevents issue (@lukastaegert)
* [#3957](https://github.com/rollup/rollup/pull/3957): Make sure uninitialised exports turn up via .hasOwnProperty for non-ES formats (@lukastaegert)
* [#3959](https://github.com/rollup/rollup/pull/3959): Allow overriding individual exports of reexported external namespaces (@lukastaegert)
* [#3960](https://github.com/rollup/rollup/pull/3960): Make sure system exports are valid JavaScript
(@lukastaegert)
## 2.38.5
*2021-02-05*
### Bug Fixes
* Prevent invalid code when simplifying assignments and delcarations (#3951)
* Prevent behaviour-changing line-breaks when simplifying assignments in return statements (#3951)
* Slightly improve white-space rendering when simplifying certain expressions (#3951)
### Pull Requests
* [#3951](https://github.com/rollup/rollup/pull/3951): Wrap simplified assignments if necessary (@lukastaegert)
## 2.38.4
*2021-02-02*
### Bug Fixes
* Do not change logic when tree-shaking declarations in if statements or loops (#3947)
### Pull Requests
* [#3947](https://github.com/rollup/rollup/pull/3947): Do not tear apart declarations in loop or if bodies (@lukastaegert)
## 2.38.3
*2021-02-01*
### Bug Fixes
* Prevent an unexpected live-binding when default exporting a synthetic named export (#3946)
### Pull Requests
* [#3945](https://github.com/rollup/rollup/pull/3945): Upgrade chokidar and fsevents for Apple M1 compatibility (@threepointone)
* [#3946](https://github.com/rollup/rollup/pull/3946): Make sure default exports snapshot synthetic named exports (@lukastaegert)
## 2.38.2
*2021-01-31*
### Bug Fixes
* Do not generate invalid code for partially tree-shaken declarations in for loops (#3943)
* Always include function bodies of functions in side-effect-free modules (#3944)
### Pull Requests
* [#3943](https://github.com/rollup/rollup/pull/3943): Do not partially tree-shake unused declarations in for loops (@lukastaegert)
* [#3944](https://github.com/rollup/rollup/pull/3944): Correctly include functions with side effects from side-effect-free modules (@lukastaegert)
## 2.38.1
*2021-01-28*
### Bug Fixes
* Fix internal error when resolving a missing entry point in the browser build (#3935)
### Pull Requests
* [#3935](https://github.com/rollup/rollup/pull/3935): fix: remove isolated resolve() for compat with browser distribution (@cmorten and @lukastaegert)
* [#3936](https://github.com/rollup/rollup/pull/3936): Ensure test after() callback is always executed (@Benjamin-Dobell)
* [#3937](https://github.com/rollup/rollup/pull/3937): Modernize references to other software (@ludofischer)
## 2.38.0
*2021-01-22*
### Features
* Entirely remove declared variables that only have an initializer side effect (#3933)
### Pull Requests
* [#3933](https://github.com/rollup/rollup/pull/3933): Tree-shake unused declarations while keeping initializer side-effects (@lukastaegert)
## 2.37.1
*2021-01-20*
### Pull Requests
* [#3929](https://github.com/rollup/rollup/pull/3929): Deduplicate acorn import (@lukastaegert)
## 2.37.0
*2021-01-19*
### Features
* Always check modules for side effects that only indirectly reexport a used variable (#3840)
* Warn if a circular dependency would cause wrong execution order when preserving modules (#3840)
### Bug Fixes
* Allow consuming synthetic exports via modules that reexport a namespace (#3894)
* Do not crash for circular default reexports (#3840)
* Do not crash for circular synthetic namespaces (#3840)
* Improve circular dependency execution order in certain scenarios (#3840)
### Pull Requests
* [#3840](https://github.com/rollup/rollup/pull/3840): Improve circular dependency execution order (@lukastaegert)
* [#3894](https://github.com/rollup/rollup/pull/3894): Always respect synthetic namespaces in namespace reexport (@lukastaegert)
## 2.36.2
*2021-01-16*
### Bug Fixes
* Fix an issue where invalid code was generated for unused assignments with side effects (#3926)
### Pull Requests
* [#3926](https://github.com/rollup/rollup/pull/3926): Correctly simplify assignments with parentheses (@lukastaegert)
## 2.36.1
*2021-01-06*
### Bug Fixes
* Solve issues that result in invalid code when partially removing assignments (#3921)
### Pull Requests
* [#3921](https://github.com/rollup/rollup/pull/3921): Prevent invalid code when removing assignment target of side-effectful object expression (@lukastaegert)
## 2.36.0
*2021-01-05*
### Features
* Support partial tree-shaking of chained assignments and unused assignment targets (#3919)
### Pull Requests
* [#3919](https://github.com/rollup/rollup/pull/3919): Treeshake chained assignment expressions (@lukastaegert)
## 2.35.1
*2020-12-14*
### Bug Fixes
* Allow closing the bundle when watching in case of generate errors by adding the bundle to the error event (#3909)
* Automatically close all bundles on generate errors when watching and using the CLI (#3909)
* Try to create remaining bundles when watching and one of them throws (#3909)
### Pull Requests
* [#3909](https://github.com/rollup/rollup/pull/3909): Forward bundle through watch error events (@lukastaegert)
## 2.35.0
*2020-12-14*
### Features
* Add `closeBundle` hook that is triggered by `bundle.close()` in the JS API (#3883)
### Pull Requests
* [#3883](https://github.com/rollup/rollup/pull/3883): Revert pattern to folder export (@intrnl)
## 2.34.2
*2020-12-06*
### Bug Fixes
* Revert pattern export change (#3898)
### Pull Requests
* [#3898](https://github.com/rollup/rollup/pull/3898): Revert pattern to folder export (@lukastaegert)
## 2.34.1
*2020-12-03*
### Bug Fixes
* Avoid Node deprecation warning by using a pattern export for nested Rollup files (#3896)
### Pull Requests
* [#3887](https://github.com/rollup/rollup/pull/3887): Run memory leak test on all systems (@lukastaegert)
* [#3892](https://github.com/rollup/rollup/pull/3892): Add pull_request to windows github actions (@shellscape)
* [#3893](https://github.com/rollup/rollup/pull/3893): Update dependencies (@lukastaegert)
* [#3896](https://github.com/rollup/rollup/pull/3896): Replace deprecated folder package export with pattern export (@lukastaegert)
## 2.34.0
*2020-11-29*
### Features
* Support RequireJS comaptible AMD ids in code-splitting builds via amd.autoId (#3867)
* Allow adding an AMD id base path (#3867)
### Bug Fixes
* Warn when using an constant AMD id in a code-splitting build (#3867)
### Pull Requests
* [#3867](https://github.com/rollup/rollup/pull/3867): Implement amd.autoId/amd.basePath options (@tjenkinson)
## 2.33.3
*2020-11-18*
### Bug Fixes
* Do not use `.js` extension when importing AMD files from a UMD bundle (#3872)
### Pull Requests
* [#3861](https://github.com/rollup/rollup/pull/3861): Update chat/support links (@shellscape)
* [#3872](https://github.com/rollup/rollup/pull/3872): Also removeExtensionFromRelativeAmdId in UMD finaliser (@tjenkinson)
## 2.33.2
*2020-11-14*
### Bug Fixes
* Fix an issue where statements were ignored after a conditional return in a labeled statement (#3871)
### Pull Requests
* [#3871](https://github.com/rollup/rollup/pull/3871): Correctly track label usage in try statements (@Amareis)
## 2.33.1
*2020-11-02*
### Bug Fixes
* Add `syntheticNamedExports` to `this.getModuleInfo` to align with documentation (#3841)
* Add `syntheticNamedExports` to `this.getModuleInfo` to align with documentation (#3847)
### Pull Requests
* [#3847](https://github.com/rollup/rollup/pull/3847): Expose syntheticNamedExports to ModuleInfo (@Amareis)

31
node_modules/rollup/LICENSE.md generated vendored
View File

@@ -35,7 +35,7 @@ Repository: https://github.com/acornjs/acorn.git
> MIT License
>
> Copyright (C) 2012-2018 by various contributors (see AUTHORS)
> Copyright (C) 2012-2020 by various contributors (see AUTHORS)
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
@@ -84,33 +84,6 @@ Repository: https://github.com/acornjs/acorn-class-fields
---------------------------------------
## acorn-numeric-separator
License: MIT
By: Adrian Heine
Repository: https://github.com/acornjs/acorn-numeric-separator
> Copyright (C) 2017-2018 by Adrian Heine
>
> 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.
---------------------------------------
## acorn-private-class-elements
License: MIT
By: Adrian Heine
@@ -172,7 +145,7 @@ Repository: https://github.com/acornjs/acorn.git
> MIT License
>
> Copyright (C) 2012-2018 by various contributors (see AUTHORS)
> Copyright (C) 2012-2020 by various contributors (see AUTHORS)
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal

8
node_modules/rollup/README.md generated vendored
View File

@@ -22,8 +22,8 @@
<a href="https://david-dm.org/rollup/rollup">
<img src="https://david-dm.org/rollup/rollup/status.svg" alt="dependency status">
</a>
<a href='https://gitter.im/rollup/rollup?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge'>
<img src='https://badges.gitter.im/rollup/rollup.svg' alt='Join the chat at https://gitter.im/rollup/rollup'>
<a href='https://is.gd/rollup_chat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge'>
<img src='https://img.shields.io/discord/466787075518365708?color=778cd1&label=chat' alt='Join the chat at https://is.gd/rollup_chat'>
</a>
</p>
@@ -65,7 +65,7 @@ rollup main.js --format umd --name "myBundle" --file bundle.js
Developing software is usually easier if you break your project into smaller separate pieces, since that often removes unexpected interactions and dramatically reduces the complexity of the problems you'll need to solve, and simply writing smaller projects in the first place [isn't necessarily the answer](https://medium.com/@Rich_Harris/small-modules-it-s-not-quite-that-simple-3ca532d65de4). Unfortunately, JavaScript has not historically included this capability as a core feature in the language.
This finally changed with ES modules support in JavaScript, which provides a syntax for importing and exporting functions and data so they can be shared between separate scripts. The specification is now implemented in all major browsers and in Node.js behind the --experimental-modules flag for ".mjs" files. Rollup allows you to write your code using this module system, either outputting optimized ES modules for use in these native environments, or compiling it back down to existing supported formats such as CommonJS modules, AMD modules, and IIFE-style scripts. This means that you get to *write future-proof code*, and you also get the tremendous benefits of...
This finally changed with ES modules support in JavaScript, which provides a syntax for importing and exporting functions and data so they can be shared between separate scripts. Most browsers and Node.js support ES modules. However, Node.js releases before 12.17 support ES modules only behind the `--experimental-modules` flag, and older browsers like Internet Explorer do not support ES modules at all. Rollup allows you to write your code using ES modules, and run your application even in environments that do not support ES modules natively. For environments that support them, Rollup can output optimized ES modules; for environments that don't, Rollup can compile your code to other formats such as CommonJS modules, AMD modules, and IIFE-style scripts. This means that you get to *write future-proof code*, and you also get the tremendous benefits of...
## Tree Shaking
@@ -101,7 +101,7 @@ Rollup can import existing CommonJS modules [through a plugin](https://github.co
### Publishing ES Modules
To make sure your ES modules are immediately usable by tools that work with CommonJS such as Node.js and webpack, you can use Rollup to compile to UMD or CommonJS format, and then point to that compiled version with the `main` property in your `package.json` file. If your `package.json` file also has a `module` field, ES-module-aware tools like Rollup and [webpack 2](https://webpack.js.org/) will [import the ES module version](https://github.com/rollup/rollup/wiki/pkg.module) directly.
To make sure your ES modules are immediately usable by tools that work with CommonJS such as Node.js and webpack, you can use Rollup to compile to UMD or CommonJS format, and then point to that compiled version with the `main` property in your `package.json` file. If your `package.json` file also has a `module` field, ES-module-aware tools like Rollup and [webpack](https://webpack.js.org/) will [import the ES module version](https://github.com/rollup/rollup/wiki/pkg.module) directly.
## Contributors

46
node_modules/rollup/dist/bin/rollup generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v2.33.1
Mon, 02 Nov 2020 06:50:50 GMT - commit d861c91c068bc4e64d84db3b84232d3fb7f1d073
Rollup.js v2.40.0
Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
https://github.com/rollup/rollup

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v2.33.1
Mon, 02 Nov 2020 06:50:50 GMT - commit d861c91c068bc4e64d84db3b84232d3fb7f1d073
Rollup.js v2.40.0
Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
https://github.com/rollup/rollup
@@ -10,14 +10,14 @@
*/
'use strict';
require('./shared/rollup.js');
var loadConfigFile_js = require('./shared/loadConfigFile.js');
require('fs');
require('path');
require('url');
require('./shared/rollup.js');
require('./shared/mergeOptions.js');
var loadConfigFile_js = require('./shared/loadConfigFile.js');
require('crypto');
require('events');
require('url');

File diff suppressed because one or more lines are too long

66
node_modules/rollup/dist/rollup.d.ts generated vendored
View File

@@ -320,8 +320,12 @@ export type ResolveFileUrlHook = (
export type AddonHookFunction = (this: PluginContext) => string | Promise<string>;
export type AddonHook = string | AddonHookFunction;
export type ChangeEvent = 'create' | 'update' | 'delete'
export type WatchChangeHook = (this: PluginContext, id: string, change: {event: ChangeEvent}) => void
export type ChangeEvent = 'create' | 'update' | 'delete';
export type WatchChangeHook = (
this: PluginContext,
id: string,
change: { event: ChangeEvent }
) => void;
/**
* use this type for plugin annotation
@@ -350,6 +354,7 @@ export interface OutputBundleWithPlaceholders {
export interface PluginHooks extends OutputPluginHooks {
buildEnd: (this: PluginContext, err?: Error) => Promise<void> | void;
buildStart: (this: PluginContext, options: NormalizedInputOptions) => Promise<void> | void;
closeBundle: (this: PluginContext) => Promise<void> | void;
closeWatcher: (this: PluginContext) => void;
load: LoadHook;
moduleParsed: ModuleParsedHook;
@@ -412,7 +417,8 @@ export type AsyncPluginHooks =
| 'resolveDynamicImport'
| 'resolveId'
| 'transform'
| 'writeBundle';
| 'writeBundle'
| 'closeBundle';
export type PluginValueHooks = 'banner' | 'footer' | 'intro' | 'outro';
@@ -447,7 +453,8 @@ export type ParallelPluginHooks =
| 'outro'
| 'renderError'
| 'renderStart'
| 'writeBundle';
| 'writeBundle'
| 'closeBundle';
interface OutputPluginValueHooks {
banner: AddonHook;
@@ -572,11 +579,39 @@ export type InteropType = boolean | 'auto' | 'esModule' | 'default' | 'defaultOn
export type GetInterop = (id: string | null) => InteropType;
export type AmdOptions = (
| {
autoId?: false;
id: string;
}
| {
autoId: true;
basePath?: string;
id?: undefined;
}
| {
autoId?: false;
id?: undefined;
}
) & {
define?: string;
};
export type NormalizedAmdOptions = (
| {
autoId: false;
id?: string;
}
| {
autoId: true;
basePath: string;
}
) & {
define: string;
};
export interface OutputOptions {
amd?: {
define?: string;
id?: string;
};
amd?: AmdOptions;
assetFileNames?: string | ((chunkInfo: PreRenderedAsset) => string);
banner?: string | (() => string | Promise<string>);
chunkFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
@@ -618,13 +653,11 @@ export interface OutputOptions {
sourcemapPathTransform?: SourcemapPathTransformOption;
strict?: boolean;
systemNullSetters?: boolean;
validate?: boolean;
}
export interface NormalizedOutputOptions {
amd: {
define: string;
id?: string;
};
amd: NormalizedAmdOptions;
assetFileNames: string | ((chunkInfo: PreRenderedAsset) => string);
banner: () => string | Promise<string>;
chunkFileNames: string | ((chunkInfo: PreRenderedChunk) => string);
@@ -664,6 +697,7 @@ export interface NormalizedOutputOptions {
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
strict: boolean;
systemNullSetters: boolean;
validate: boolean;
}
export type WarningHandlerWithDefault = (
@@ -740,6 +774,8 @@ export interface RollupOutput {
export interface RollupBuild {
cache: RollupCache | undefined;
close: () => Promise<void>;
closed: boolean;
generate: (outputOptions: OutputOptions) => Promise<RollupOutput>;
getTimings?: () => SerializedTimings;
watchFiles: string[];
@@ -794,7 +830,7 @@ export interface RollupWatchOptions extends InputOptions {
watch?: WatcherOptions | false;
}
interface TypedEventEmitter<T extends {[event: string]: (...args: any) => any}> {
interface TypedEventEmitter<T extends { [event: string]: (...args: any) => any }> {
addListener<K extends keyof T>(event: K, listener: T[K]): this;
emit<K extends keyof T>(event: K, ...args: Parameters<T[K]>): boolean;
eventNames(): Array<keyof T>;
@@ -823,11 +859,11 @@ export type RollupWatcherEvent =
result: RollupBuild;
}
| { code: 'END' }
| { code: 'ERROR'; error: RollupError };
| { code: 'ERROR'; error: RollupError; result: RollupBuild | null };
export interface RollupWatcher
extends TypedEventEmitter<{
change: (id: string, change: {event: ChangeEvent}) => void;
change: (id: string, change: { event: ChangeEvent }) => void;
close: () => void;
event: (event: RollupWatcherEvent) => void;
restart: () => void;

6
node_modules/rollup/dist/rollup.js generated vendored
View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v2.33.1
Mon, 02 Nov 2020 06:50:50 GMT - commit d861c91c068bc4e64d84db3b84232d3fb7f1d073
Rollup.js v2.40.0
Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
https://github.com/rollup/rollup
@@ -13,9 +13,9 @@
Object.defineProperty(exports, '__esModule', { value: true });
var rollup = require('./shared/rollup.js');
require('fs');
require('path');
require('crypto');
require('fs');
require('events');

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v2.33.1
Mon, 02 Nov 2020 06:50:50 GMT - commit d861c91c068bc4e64d84db3b84232d3fb7f1d073
Rollup.js v2.40.0
Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
https://github.com/rollup/rollup
@@ -10,11 +10,11 @@
*/
'use strict';
var rollup = require('./rollup.js');
var fs = require('fs');
var sysPath = require('path');
var mergeOptions = require('./mergeOptions.js');
var path = require('path');
var url = require('url');
var rollup = require('./rollup.js');
var mergeOptions = require('./mergeOptions.js');
let enabled =
!("NO_COLOR" in process.env) &&
@@ -116,7 +116,7 @@ function batchWarnings() {
const id = (warning.loc && warning.loc.file) || warning.id;
if (id) {
const loc = warning.loc
? `${rollup.relativeId(id)}: (${warning.loc.line}:${warning.loc.column})`
? `${rollup.relativeId(id)} (${warning.loc.line}:${warning.loc.column})`
: rollup.relativeId(id);
stderr(bold(rollup.relativeId(loc)));
}
@@ -426,7 +426,7 @@ function loadAndRegisterPlugin(inputOptions, pluginText) {
if (!plugin) {
try {
if (pluginText[0] == '.')
pluginText = sysPath.resolve(pluginText);
pluginText = path.resolve(pluginText);
plugin = require(pluginText);
}
catch (ex) {
@@ -475,7 +475,7 @@ async function loadAndParseConfigFile(fileName, commandOptions = {}) {
}
}
async function loadConfigFile(fileName, commandOptions) {
const extension = sysPath.extname(fileName);
const extension = path.extname(fileName);
const configFileExport = extension === '.mjs' && supportsNativeESM()
? (await import(url.pathToFileURL(fileName).href)).default
: extension === '.cjs'
@@ -489,7 +489,7 @@ function getDefaultFromCjs(namespace) {
async function getDefaultFromTranspiledConfigFile(fileName, silent) {
const warnings = batchWarnings();
const bundle = await rollup.rollup({
external: (id) => (id[0] !== '.' && !sysPath.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
input: fileName,
onwarn: warnings.add,
treeshake: false
@@ -506,7 +506,7 @@ async function getDefaultFromTranspiledConfigFile(fileName, silent) {
}
async function loadConfigFromBundledFile(fileName, bundledCode) {
const resolvedFileName = fs.realpathSync(fileName);
const extension = sysPath.extname(resolvedFileName);
const extension = path.extname(resolvedFileName);
const defaultLoader = require.extensions[extension];
require.extensions[extension] = (module, requiredFileName) => {
if (requiredFileName === resolvedFileName) {

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v2.33.1
Mon, 02 Nov 2020 06:50:50 GMT - commit d861c91c068bc4e64d84db3b84232d3fb7f1d073
Rollup.js v2.40.0
Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
https://github.com/rollup/rollup
@@ -159,7 +159,8 @@ function mergeOutputOptions(config, overrides, warn) {
sourcemapFile: getOption('sourcemapFile'),
sourcemapPathTransform: getOption('sourcemapPathTransform'),
strict: getOption('strict'),
systemNullSetters: getOption('systemNullSetters')
systemNullSetters: getOption('systemNullSetters'),
validate: getOption('validate')
};
rollup.warnUnknownOptions(config, Object.keys(outputOptions), 'output options', warn);
return outputOptions;

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v2.33.1
Mon, 02 Nov 2020 06:50:50 GMT - commit d861c91c068bc4e64d84db3b84232d3fb7f1d073
Rollup.js v2.40.0
Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
https://github.com/rollup/rollup
@@ -10,23 +10,25 @@
*/
'use strict';
var cli = require('../bin/rollup');
var rollup = require('./rollup.js');
require('util');
var fs = require('fs');
require('path');
require('./mergeOptions.js');
var loadConfigFile_js = require('./loadConfigFile.js');
require('crypto');
var require$$0 = require('events');
require('module');
require('url');
var index = require('./index.js');
var loadConfigFile_js = require('./loadConfigFile.js');
var fs = require('fs');
var cli = require('../bin/rollup');
var require$$0 = require('assert');
var require$$0$1 = require('events');
var rollup = require('./rollup.js');
require('path');
require('util');
require('stream');
require('os');
var assert = require('assert');
require('url');
require('./mergeOptions.js');
require('module');
require('crypto');
var timeZone = date => {
var dateTime$2 = {exports: {}};
var timeZone$1 = date => {
const offset = (date || new Date()).getTimezoneOffset();
const absOffset = Math.abs(offset);
const hours = Math.floor(absOffset / 60);
@@ -36,6 +38,8 @@ var timeZone = date => {
return (offset < 0 ? '+' : '-') + hours + minutesOut;
};
const timeZone = timeZone$1;
const dateTime = options => {
options = Object.assign({
date: new Date(),
@@ -67,12 +71,17 @@ const dateTime = options => {
.replace(/\..+/, end);
};
var dateTime_1 = dateTime;
dateTime$2.exports = dateTime;
// TODO: Remove this for the next major release
var _default = dateTime;
dateTime_1.default = _default;
dateTime$2.exports.default = dateTime;
var signals = rollup.createCommonjsModule(function (module) {
var dateTime$1 = dateTime$2.exports;
var signalExit = {exports: {}};
var signals$1 = {exports: {}};
(function (module) {
// This is not the set of all possible signals.
//
// It IS, however, the set of all signals that trigger
@@ -126,16 +135,16 @@ if (process.platform === 'linux') {
'SIGUNUSED'
);
}
});
}(signals$1));
// Note: since nyc uses this module to output coverage, any lines
// that are in the direct sync flow of nyc's outputCoverage are
// ignored, since we can never get coverage for them.
var signals$1 = signals;
var assert = require$$0;
var signals = signals$1.exports;
var isWin = /^win/i.test(process.platform);
var EE = require$$0;
var EE = require$$0$1;
/* istanbul ignore if */
if (typeof EE !== 'function') {
EE = EE.EventEmitter;
@@ -159,7 +168,7 @@ if (!emitter.infinite) {
emitter.infinite = true;
}
var signalExit = function (cb, opts) {
signalExit.exports = function (cb, opts) {
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler');
if (loaded === false) {
@@ -183,14 +192,14 @@ var signalExit = function (cb, opts) {
return remove
};
var unload_1 = unload;
signalExit.exports.unload = unload;
function unload () {
if (!loaded) {
return
}
loaded = false;
signals$1.forEach(function (sig) {
signals.forEach(function (sig) {
try {
process.removeListener(sig, sigListeners[sig]);
} catch (er) {}
@@ -210,7 +219,7 @@ function emit (event, code, signal) {
// { <signal>: <listener fn>, ... }
var sigListeners = {};
signals$1.forEach(function (sig) {
signals.forEach(function (sig) {
sigListeners[sig] = function listener () {
// If there are no other listeners, an exit is coming!
// Simplest way: remove us and then re-send the signal.
@@ -233,11 +242,11 @@ signals$1.forEach(function (sig) {
};
});
var signals_1 = function () {
return signals$1
signalExit.exports.signals = function () {
return signals
};
var load_1 = load;
signalExit.exports.load = load;
var loaded = false;
@@ -253,7 +262,7 @@ function load () {
// handle it instead of us.
emitter.count += 1;
signals$1 = signals$1.filter(function (sig) {
signals = signals.filter(function (sig) {
try {
process.on(sig, sigListeners[sig]);
return true
@@ -291,9 +300,8 @@ function processEmit (ev, arg) {
return originalProcessEmit.apply(this, arguments)
}
}
signalExit.unload = unload_1;
signalExit.signals = signals_1;
signalExit.load = load_1;
var onExit = signalExit.exports;
const CLEAR_SCREEN = '\u001Bc';
function getResetScreen(configs, allowClearScreen) {
@@ -324,7 +332,7 @@ async function watch(command) {
let watcher;
let configWatcher;
const configFile = command.config ? cli.getConfigPath(command.config) : null;
signalExit(close);
onExit(close);
process.on('uncaughtException', close);
if (!process.stdin.isTTY) {
process.stdin.on('end', close);
@@ -418,9 +426,12 @@ async function watch(command) {
break;
case 'END':
if (!silent && isTTY) {
loadConfigFile_js.stderr(`\n[${dateTime_1()}] waiting for changes...`);
loadConfigFile_js.stderr(`\n[${dateTime$1()}] waiting for changes...`);
}
}
if ('result' in event && event.result) {
event.result.close().catch(error => loadConfigFile_js.handleError(error, true));
}
});
}
function close(code) {

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v2.33.1
Mon, 02 Nov 2020 06:50:50 GMT - commit d861c91c068bc4e64d84db3b84232d3fb7f1d073
Rollup.js v2.40.0
Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
https://github.com/rollup/rollup
@@ -10,17 +10,21 @@
*/
'use strict';
var rollup = require('./rollup.js');
var util = require('util');
require('fs');
var sysPath = require('path');
var mergeOptions = require('./mergeOptions.js');
require('crypto');
require('events');
var path = require('path');
var require$$0 = require('util');
var index = require('./index.js');
var rollup = require('./rollup.js');
var mergeOptions = require('./mergeOptions.js');
var require$$2 = require('os');
require('events');
require('fs');
require('stream');
var require$$1 = require('os');
require('crypto');
const util = require$$0;
const braces = index.braces_1;
const picomatch = index.picomatch;
const utils = index.utils;
const isEmptyString = val => typeof val === 'string' && (val === '' || val === './');
/**
@@ -58,7 +62,7 @@ const micromatch = (list, patterns, options) => {
};
for (let i = 0; i < patterns.length; i++) {
let isMatch = index.picomatch(String(patterns[i]), { ...options, onResult }, true);
let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
if (negated) negatives++;
@@ -118,7 +122,7 @@ micromatch.match = micromatch;
* @api public
*/
micromatch.matcher = (pattern, options) => index.picomatch(pattern, options);
micromatch.matcher = (pattern, options) => picomatch(pattern, options);
/**
* Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -137,7 +141,7 @@ micromatch.matcher = (pattern, options) => index.picomatch(pattern, options);
* @api public
*/
micromatch.isMatch = (str, patterns, options) => index.picomatch(patterns, options)(str);
micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
/**
* Backwards compatibility
@@ -245,7 +249,7 @@ micromatch.contains = (str, pattern, options) => {
*/
micromatch.matchKeys = (obj, patterns, options) => {
if (!index.utils.isObject(obj)) {
if (!utils.isObject(obj)) {
throw new TypeError('Expected the first argument to be an object');
}
let keys = micromatch(Object.keys(obj), patterns, options);
@@ -277,7 +281,7 @@ micromatch.some = (list, patterns, options) => {
let items = [].concat(list);
for (let pattern of [].concat(patterns)) {
let isMatch = index.picomatch(String(pattern), options);
let isMatch = picomatch(String(pattern), options);
if (items.some(item => isMatch(item))) {
return true;
}
@@ -313,7 +317,7 @@ micromatch.every = (list, patterns, options) => {
let items = [].concat(list);
for (let pattern of [].concat(patterns)) {
let isMatch = index.picomatch(String(pattern), options);
let isMatch = picomatch(String(pattern), options);
if (!items.every(item => isMatch(item))) {
return false;
}
@@ -353,7 +357,7 @@ micromatch.all = (str, patterns, options) => {
throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
}
return [].concat(patterns).every(p => index.picomatch(p, options)(str));
return [].concat(patterns).every(p => picomatch(p, options)(str));
};
/**
@@ -376,9 +380,9 @@ micromatch.all = (str, patterns, options) => {
*/
micromatch.capture = (glob, input, options) => {
let posix = index.utils.isWindows(options);
let regex = index.picomatch.makeRe(String(glob), { ...options, capture: true });
let match = regex.exec(posix ? index.utils.toPosixSlashes(input) : input);
let posix = utils.isWindows(options);
let regex = picomatch.makeRe(String(glob), { ...options, capture: true });
let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
if (match) {
return match.slice(1).map(v => v === void 0 ? '' : v);
@@ -401,7 +405,7 @@ micromatch.capture = (glob, input, options) => {
* @api public
*/
micromatch.makeRe = (...args) => index.picomatch.makeRe(...args);
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
/**
* Scan a glob pattern to separate the pattern into segments. Used
@@ -417,7 +421,7 @@ micromatch.makeRe = (...args) => index.picomatch.makeRe(...args);
* @api public
*/
micromatch.scan = (...args) => index.picomatch.scan(...args);
micromatch.scan = (...args) => picomatch.scan(...args);
/**
* Parse a glob pattern to create the source string for a regular
@@ -436,8 +440,8 @@ micromatch.scan = (...args) => index.picomatch.scan(...args);
micromatch.parse = (patterns, options) => {
let res = [];
for (let pattern of [].concat(patterns || [])) {
for (let str of index.braces_1(String(pattern), options)) {
res.push(index.picomatch.parse(str, options));
for (let str of braces(String(pattern), options)) {
res.push(picomatch.parse(str, options));
}
}
return res;
@@ -465,7 +469,7 @@ micromatch.braces = (pattern, options) => {
if ((options && options.nobrace === true) || !/\{.*\}/.test(pattern)) {
return [pattern];
}
return index.braces_1(pattern, options);
return braces(pattern, options);
};
/**
@@ -495,7 +499,7 @@ function getMatcherString(id, resolutionBase) {
if (resolutionBase === false) {
return id;
}
return sysPath.resolve(...(typeof resolutionBase === 'string' ? [resolutionBase, id] : [id]));
return path.resolve(...(typeof resolutionBase === 'string' ? [resolutionBase, id] : [id]));
}
const createFilter = function createFilter(include, exclude, options) {
const resolutionBase = options && options.resolve;
@@ -504,7 +508,7 @@ const createFilter = function createFilter(include, exclude, options) {
? id
: {
test: micromatch_1.matcher(getMatcherString(id, resolutionBase)
.split(sysPath.sep)
.split(path.sep)
.join('/'), { dot: true })
};
};
@@ -515,7 +519,7 @@ const createFilter = function createFilter(include, exclude, options) {
return false;
if (/\0/.test(id))
return false;
id = id.split(sysPath.sep).join('/');
id = id.split(path.sep).join('/');
for (let i = 0; i < excludeMatchers.length; ++i) {
const matcher = excludeMatchers[i];
if (matcher.test(id))
@@ -563,7 +567,7 @@ class FileWatcher {
}
createWatcher(transformWatcherId) {
const task = this.task;
const isLinux = require$$1.platform() === 'linux';
const isLinux = require$$2.platform() === 'linux';
const isTransformDependency = transformWatcherId !== null;
const handleChange = (id, event) => {
const changedId = transformWatcherId || id;
@@ -589,17 +593,17 @@ const eventsRewrites = {
create: {
create: 'buggy',
delete: null,
update: 'create',
update: 'create'
},
delete: {
create: 'update',
delete: 'buggy',
update: 'buggy',
update: 'buggy'
},
update: {
create: 'buggy',
delete: 'delete',
update: 'update',
update: 'update'
}
};
class Watcher {
@@ -629,9 +633,7 @@ class Watcher {
invalidate(file) {
if (file) {
const prevEvent = this.invalidatedIds.get(file.id);
const event = prevEvent
? eventsRewrites[prevEvent][file.event]
: file.event;
const event = prevEvent ? eventsRewrites[prevEvent][file.event] : file.event;
if (event === 'buggy') {
//TODO: throws or warn? Currently just ignore, uses new event
this.invalidatedIds.set(file.id, file.event);
@@ -664,22 +666,13 @@ class Watcher {
this.emitter.emit('event', {
code: 'START'
});
try {
for (const task of this.tasks) {
await task.run();
}
this.running = false;
this.emitter.emit('event', {
code: 'END'
});
}
catch (error) {
this.running = false;
this.emitter.emit('event', {
code: 'ERROR',
error
});
for (const task of this.tasks) {
await task.run();
}
this.running = false;
this.emitter.emit('event', {
code: 'END'
});
if (this.rerun) {
this.rerun = false;
this.invalidate();
@@ -694,12 +687,12 @@ class Task {
this.watcher = watcher;
this.closed = false;
this.watched = new Set();
this.skipWrite = config.watch && !!config.watch.skipWrite;
this.skipWrite = Boolean(config.watch && config.watch.skipWrite);
this.options = mergeOptions.mergeOptions(config);
this.outputs = this.options.output;
this.outputFiles = this.outputs.map(output => {
if (output.file || output.dir)
return sysPath.resolve(output.file || output.dir);
return path.resolve(output.file || output.dir);
return undefined;
});
const watchOptions = this.options.watch || {};
@@ -740,8 +733,9 @@ class Task {
input: this.options.input,
output: this.outputFiles
});
let result = null;
try {
const result = await rollup.rollupInternal(options, this.watcher.emitter);
result = await rollup.rollupInternal(options, this.watcher.emitter);
if (this.closed) {
return;
}
@@ -756,18 +750,21 @@ class Task {
});
}
catch (error) {
if (this.closed) {
return;
}
if (Array.isArray(error.watchFiles)) {
for (const id of error.watchFiles) {
this.watchFile(id);
if (!this.closed) {
if (Array.isArray(error.watchFiles)) {
for (const id of error.watchFiles) {
this.watchFile(id);
}
}
if (error.id) {
this.cache.modules = this.cache.modules.filter(module => module.id !== error.id);
}
}
if (error.id) {
this.cache.modules = this.cache.modules.filter(module => module.id !== error.id);
}
throw error;
this.watcher.emitter.emit('event', {
code: 'ERROR',
error,
result
});
}
}
updateWatchedFiles(result) {

139
node_modules/rollup/package.json generated vendored
View File

@@ -1,33 +1,27 @@
{
"_args": [
[
"rollup@2.33.1",
"J:\\Github\\CURD-TS"
]
],
"_development": true,
"_from": "rollup@2.33.1",
"_id": "rollup@2.33.1",
"_from": "rollup@^2.38.5",
"_id": "rollup@2.40.0",
"_inBundle": false,
"_integrity": "sha1-gCeVFkFk7mPNR3adiHnDPsiuDEA=",
"_integrity": "sha1-78IY6u3nq1kJVN9Q+WGVGImZwwQ=",
"_location": "/rollup",
"_phantomChildren": {},
"_requested": {
"type": "version",
"type": "range",
"registry": true,
"raw": "rollup@2.33.1",
"raw": "rollup@^2.38.5",
"name": "rollup",
"escapedName": "rollup",
"rawSpec": "2.33.1",
"rawSpec": "^2.38.5",
"saveSpec": null,
"fetchSpec": "2.33.1"
"fetchSpec": "^2.38.5"
},
"_requiredBy": [
"/vite"
],
"_resolved": "http://192.168.250.101:4873/rollup/-/rollup-2.33.1.tgz",
"_spec": "2.33.1",
"_where": "J:\\Github\\CURD-TS",
"_resolved": "http://192.168.250.101:4873/rollup/-/rollup-2.40.0.tgz",
"_shasum": "efc218eaede7ab590954df50f96195188999c304",
"_spec": "rollup@^2.38.5",
"_where": "J:\\Github\\CURD-TS\\node_modules\\vite",
"author": {
"name": "Rich Harris"
},
@@ -37,58 +31,59 @@
"bugs": {
"url": "https://github.com/rollup/rollup/issues"
},
"bundleDependencies": false,
"dependencies": {
"fsevents": "~2.1.2"
"fsevents": "~2.3.1"
},
"deprecated": false,
"description": "Next-generation ES module bundler",
"devDependencies": {
"@rollup/plugin-alias": "^3.1.1",
"@rollup/plugin-alias": "^3.1.2",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-commonjs": "^18.0.0-1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-replace": "^2.3.4",
"@types/micromatch": "^4.0.1",
"@types/node": "^14.10.2",
"@types/node": "^10.17.51",
"@types/require-relative": "^0.8.0",
"@types/signal-exit": "^3.0.0",
"@types/yargs-parser": "^15.0.0",
"acorn": "^8.0.3",
"acorn-class-fields": "^0.3.7",
"@types/yargs-parser": "^20.2.0",
"acorn": "^8.0.5",
"acorn-class-fields": "^1.0.0",
"acorn-jsx": "^5.3.1",
"acorn-numeric-separator": "^0.3.6",
"acorn-static-class-features": "^0.2.4",
"acorn-walk": "^8.0.0",
"acorn-static-class-features": "^1.0.0",
"acorn-walk": "^8.0.2",
"buble": "^0.20.0",
"chokidar": "^3.4.2",
"codecov": "^3.7.2",
"chokidar": "^3.5.1",
"codecov": "^3.8.1",
"colorette": "^1.2.1",
"core-js": "^3.6.5",
"cross-os": "^1.3.0",
"core-js": "^3.8.3",
"date-time": "^3.1.0",
"es5-shim": "^4.5.14",
"es6-shim": "^0.35.5",
"eslint": "^7.10.0",
"es5-shim": "^4.5.15",
"es6-shim": "^0.35.6",
"eslint": "^7.19.0",
"eslint-plugin-import": "^2.22.1",
"execa": "^4.0.3",
"execa": "^5.0.0",
"fixturify": "^2.1.0",
"hash.js": "^1.1.7",
"husky": "^4.3.0",
"is-reference": "^1.2.1",
"lint-staged": "^10.4.0",
"husky": "^5.0.9",
"is-reference": "github:lukastaegert/is-reference#update-class-features",
"lint-staged": "^10.5.4",
"locate-character": "^2.0.5",
"magic-string": "^0.25.7",
"markdownlint-cli": "^0.24.0",
"markdownlint-cli": "^0.26.0",
"micromatch": "^4.0.2",
"mocha": "^8.1.3",
"mocha": "^8.3.0",
"node-fetch": "^2.6.1",
"nyc": "^15.1.0",
"prettier": "^2.1.2",
"pretty-bytes": "^5.4.1",
"pinst": "^2.1.4",
"prettier": "^2.2.1",
"pretty-bytes": "^5.5.0",
"pretty-ms": "^7.0.1",
"require-relative": "^0.8.7",
"requirejs": "^2.3.6",
"rollup": "^2.28.2",
"rollup": "^2.38.5",
"rollup-plugin-license": "^2.2.0",
"rollup-plugin-string": "^3.0.0",
"rollup-plugin-terser": "^7.0.2",
@@ -96,18 +91,19 @@
"rollup-plugin-typescript": "^1.0.1",
"rollup-pluginutils": "^2.8.2",
"sander": "^0.6.0",
"shx": "^0.3.2",
"shx": "^0.3.3",
"signal-exit": "^3.0.3",
"source-map": "^0.7.3",
"source-map-support": "^0.5.19",
"sourcemap-codec": "^1.4.8",
"systemjs": "^6.6.1",
"terser": "^5.3.4",
"tslib": "^2.0.1",
"systemjs": "^6.8.3",
"terser": "^5.6.0-beta",
"tslib": "^2.1.0",
"tslint": "^6.1.3",
"typescript": "^4.0.3",
"typescript": "^4.1.5",
"url-parse": "^1.4.7",
"yargs-parser": "^20.2.1"
"weak-napi": "^2.0.2",
"yargs-parser": "^20.2.4"
},
"engines": {
"node": ">=10.0.0"
@@ -140,45 +136,46 @@
"module": "dist/es/rollup.js",
"name": "rollup",
"optionalDependencies": {
"fsevents": "~2.1.2"
"fsevents": "~2.3.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rollup/rollup.git"
},
"scripts": {
"_postinstall": "husky install",
"build": "shx rm -rf dist && git rev-parse HEAD > .commithash && rollup -c && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
"build:bootstrap": "dist/bin/rollup -c && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
"build:test": "shx rm -rf dist && rollup -c --configTest && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
"ci:coverage": "npm run build:test && nyc --reporter lcovonly mocha && codecov",
"build:cjs": "shx rm -rf dist && rollup -c --configTest && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
"ci:coverage": "npm run build:cjs && nyc --reporter lcovonly mocha && codecov",
"ci:lint": "npm run lint:nofix",
"ci:test": "npm run build:test && npm run build:bootstrap && npm run test:all",
"ci:test:only": "npm run build:test && npm run build:bootstrap && npm run test:only",
"ci:test": "npm run build:cjs && npm run build:bootstrap && npm run test:all",
"ci:test:only": "npm run build:cjs && npm run build:bootstrap && npm run test:only",
"lint": "npm run lint:ts -- --fix && npm run lint:js -- --fix && npm run lint:markdown",
"lint:js": "eslint test/test.js test/*/index.js test/utils.js test/**/_config.js",
"lint:markdown": "markdownlint --config markdownlint.json docs/**/*.md",
"lint:nofix": "npm run lint:ts && npm run lint:js && npm run lint:markdown",
"lint:ts": "tslint --project .",
"perf": "npm run build:test && node --expose-gc scripts/perf.js",
"perf": "npm run build:cjs && node --expose-gc scripts/perf.js",
"perf:debug": "node --inspect-brk scripts/perf-debug.js",
"perf:init": "node scripts/perf-init.js",
"postpublish": "pinst --enable",
"prepare": "npm run build",
"prepublishOnly": "npm ci && npm run lint:nofix && npm run security && npm run build:bootstrap && npm run test:all",
"pretest": "npm run build:test",
"pretest:coverage": "npm run build:test && shx rm -rf coverage/*",
"pretest:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/",
"security": "# npm audit # deactivated until there is a solution for the lodash issue",
"test": "npm run test:all",
"test:all": "npm run test:only && npm run test:typescript && npm run test:leak && npm run test:package",
"test:coverage": "nyc --reporter html mocha",
"test:leak": "cross-os test:leak:os",
"test:leak:nix": "npm i --silent --no-save weak@1 && node --expose-gc test/leak/index.js",
"test:only": "mocha",
"prepublishOnly": "pinst --disable && npm ci && npm run lint:nofix && npm run security && npm run build:bootstrap && npm run test:all",
"security": "npm audit",
"test": "npm run build && npm run test:all",
"test:all": "npm run test:only && npm run test:browser && npm run test:typescript && npm run test:leak && npm run test:package",
"test:browser": "mocha test/browser/index.js",
"test:cjs": "npm run build:cjs && npm run test:only",
"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": "node --expose-gc test/leak/index.js",
"test:only": "mocha test/test.js",
"test:package": "node scripts/test-package.js",
"test:quick": "mocha -b",
"test:typescript": "tsc --noEmit -p test/typescript && tsc --noEmit",
"test:quick": "mocha -b test/test.js",
"test:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/ && tsc --noEmit -p test/typescript && tsc --noEmit",
"watch": "rollup -cw"
},
"typings": "dist/rollup.d.ts",
"version": "2.33.1"
"version": "2.40.0"
}