full site update
This commit is contained in:
32
node_modules/@rollup/pluginutils/README.md
generated
vendored
32
node_modules/@rollup/pluginutils/README.md
generated
vendored
@@ -223,6 +223,22 @@ export default function myPlugin(options = {}) {
|
||||
}
|
||||
```
|
||||
|
||||
### exactRegex
|
||||
|
||||
Constructs a RegExp that matches the exact string specified. This is useful for plugin hook filters.
|
||||
|
||||
Parameters: `(str: String, flags?: String)`<br>
|
||||
Returns: `RegExp`
|
||||
|
||||
#### Usage
|
||||
|
||||
```js
|
||||
import { exactRegex } from '@rollup/pluginutils';
|
||||
|
||||
exactRegex('foobar'); // /^foobar$/
|
||||
exactRegex('foo(bar)', 'i'); // /^foo\(bar\)$/i
|
||||
```
|
||||
|
||||
### makeLegalIdentifier
|
||||
|
||||
Constructs a bundle-safe identifier from a `String`.
|
||||
@@ -255,6 +271,22 @@ normalizePath('foo\\bar'); // 'foo/bar'
|
||||
normalizePath('foo/bar'); // 'foo/bar'
|
||||
```
|
||||
|
||||
### prefixRegex
|
||||
|
||||
Constructs a RegExp that matches a value that has the specified prefix. This is useful for plugin hook filters.
|
||||
|
||||
Parameters: `(str: String, flags?: String)`<br>
|
||||
Returns: `RegExp`
|
||||
|
||||
#### Usage
|
||||
|
||||
```js
|
||||
import { prefixRegex } from '@rollup/pluginutils';
|
||||
|
||||
prefixRegex('foobar'); // /^foobar/
|
||||
prefixRegex('foo(bar)', 'i'); // /^foo\(bar\)/i
|
||||
```
|
||||
|
||||
## Meta
|
||||
|
||||
[CONTRIBUTING](/.github/CONTRIBUTING.md)
|
||||
|
17
node_modules/@rollup/pluginutils/dist/cjs/index.js
generated
vendored
17
node_modules/@rollup/pluginutils/dist/cjs/index.js
generated
vendored
@@ -354,15 +354,28 @@ const dataToEsm = function dataToEsm(data, options = {}) {
|
||||
return `${namedExportCode}${arbitraryExportCode}${defaultExportCode}`;
|
||||
};
|
||||
|
||||
function exactRegex(str, flags) {
|
||||
return new RegExp(`^${escapeRegex(str)}$`, flags);
|
||||
}
|
||||
function prefixRegex(str, flags) {
|
||||
return new RegExp(`^${escapeRegex(str)}`, flags);
|
||||
}
|
||||
const escapeRegexRE = /[-/\\^$*+?.()|[\]{}]/g;
|
||||
function escapeRegex(str) {
|
||||
return str.replace(escapeRegexRE, '\\$&');
|
||||
}
|
||||
|
||||
// TODO: remove this in next major
|
||||
var index = {
|
||||
addExtension,
|
||||
attachScopes,
|
||||
createFilter,
|
||||
dataToEsm,
|
||||
exactRegex,
|
||||
extractAssignedNames,
|
||||
makeLegalIdentifier,
|
||||
normalizePath
|
||||
normalizePath,
|
||||
prefixRegex
|
||||
};
|
||||
|
||||
exports.addExtension = addExtension;
|
||||
@@ -370,8 +383,10 @@ exports.attachScopes = attachScopes;
|
||||
exports.createFilter = createFilter;
|
||||
exports.dataToEsm = dataToEsm;
|
||||
exports.default = index;
|
||||
exports.exactRegex = exactRegex;
|
||||
exports.extractAssignedNames = extractAssignedNames;
|
||||
exports.makeLegalIdentifier = makeLegalIdentifier;
|
||||
exports.normalizePath = normalizePath;
|
||||
exports.prefixRegex = prefixRegex;
|
||||
module.exports = Object.assign(exports.default, exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
17
node_modules/@rollup/pluginutils/dist/es/index.js
generated
vendored
17
node_modules/@rollup/pluginutils/dist/es/index.js
generated
vendored
@@ -350,16 +350,29 @@ const dataToEsm = function dataToEsm(data, options = {}) {
|
||||
return `${namedExportCode}${arbitraryExportCode}${defaultExportCode}`;
|
||||
};
|
||||
|
||||
function exactRegex(str, flags) {
|
||||
return new RegExp(`^${escapeRegex(str)}$`, flags);
|
||||
}
|
||||
function prefixRegex(str, flags) {
|
||||
return new RegExp(`^${escapeRegex(str)}`, flags);
|
||||
}
|
||||
const escapeRegexRE = /[-/\\^$*+?.()|[\]{}]/g;
|
||||
function escapeRegex(str) {
|
||||
return str.replace(escapeRegexRE, '\\$&');
|
||||
}
|
||||
|
||||
// TODO: remove this in next major
|
||||
var index = {
|
||||
addExtension,
|
||||
attachScopes,
|
||||
createFilter,
|
||||
dataToEsm,
|
||||
exactRegex,
|
||||
extractAssignedNames,
|
||||
makeLegalIdentifier,
|
||||
normalizePath
|
||||
normalizePath,
|
||||
prefixRegex
|
||||
};
|
||||
|
||||
export { addExtension, attachScopes, createFilter, dataToEsm, index as default, extractAssignedNames, makeLegalIdentifier, normalizePath };
|
||||
export { addExtension, attachScopes, createFilter, dataToEsm, index as default, exactRegex, extractAssignedNames, makeLegalIdentifier, normalizePath, prefixRegex };
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
2
node_modules/@rollup/pluginutils/package.json
generated
vendored
2
node_modules/@rollup/pluginutils/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@rollup/pluginutils",
|
||||
"version": "5.1.4",
|
||||
"version": "5.2.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
18
node_modules/@rollup/pluginutils/types/index.d.ts
generated
vendored
18
node_modules/@rollup/pluginutils/types/index.d.ts
generated
vendored
@@ -62,6 +62,13 @@ export function createFilter(
|
||||
*/
|
||||
export function dataToEsm(data: unknown, options?: DataToEsmOptions): string;
|
||||
|
||||
/**
|
||||
* Constructs a RegExp that matches the exact string specified.
|
||||
* @param str the string to match.
|
||||
* @param flags flags for the RegExp.
|
||||
*/
|
||||
export function exactRegex(str: string, flags?: string): RegExp;
|
||||
|
||||
/**
|
||||
* Extracts the names of all assignment targets based upon specified patterns.
|
||||
* @param param An `acorn` AST Node.
|
||||
@@ -78,21 +85,32 @@ export function makeLegalIdentifier(str: string): string;
|
||||
*/
|
||||
export function normalizePath(filename: string): string;
|
||||
|
||||
/**
|
||||
* Constructs a RegExp that matches a value that has the specified prefix.
|
||||
* @param str the string to match.
|
||||
* @param flags flags for the RegExp.
|
||||
*/
|
||||
export function prefixRegex(str: string, flags?: string): RegExp;
|
||||
|
||||
export type AddExtension = typeof addExtension;
|
||||
export type AttachScopes = typeof attachScopes;
|
||||
export type CreateFilter = typeof createFilter;
|
||||
export type ExactRegex = typeof exactRegex;
|
||||
export type ExtractAssignedNames = typeof extractAssignedNames;
|
||||
export type MakeLegalIdentifier = typeof makeLegalIdentifier;
|
||||
export type NormalizePath = typeof normalizePath;
|
||||
export type DataToEsm = typeof dataToEsm;
|
||||
export type PrefixRegex = typeof prefixRegex;
|
||||
|
||||
declare const defaultExport: {
|
||||
addExtension: AddExtension;
|
||||
attachScopes: AttachScopes;
|
||||
createFilter: CreateFilter;
|
||||
dataToEsm: DataToEsm;
|
||||
exactRegex: ExactRegex;
|
||||
extractAssignedNames: ExtractAssignedNames;
|
||||
makeLegalIdentifier: MakeLegalIdentifier;
|
||||
normalizePath: NormalizePath;
|
||||
prefixRegex: PrefixRegex;
|
||||
};
|
||||
export default defaultExport;
|
||||
|
2
node_modules/@rollup/rollup-darwin-arm64/package.json
generated
vendored
2
node_modules/@rollup/rollup-darwin-arm64/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@rollup/rollup-darwin-arm64",
|
||||
"version": "4.41.0",
|
||||
"version": "4.45.1",
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
|
BIN
node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node
generated
vendored
BIN
node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node
generated
vendored
Binary file not shown.
3
node_modules/@rollup/rollup-win32-x64-msvc/README.md
generated
vendored
3
node_modules/@rollup/rollup-win32-x64-msvc/README.md
generated
vendored
@@ -1,3 +0,0 @@
|
||||
# `@rollup/rollup-win32-x64-msvc`
|
||||
|
||||
This is the **x86_64-pc-windows-msvc** binary for `rollup`
|
19
node_modules/@rollup/rollup-win32-x64-msvc/package.json
generated
vendored
19
node_modules/@rollup/rollup-win32-x64-msvc/package.json
generated
vendored
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"name": "@rollup/rollup-win32-x64-msvc",
|
||||
"version": "4.41.0",
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"files": [
|
||||
"rollup.win32-x64-msvc.node"
|
||||
],
|
||||
"description": "Native bindings for Rollup",
|
||||
"author": "Lukas Taegert-Atkinson",
|
||||
"homepage": "https://rollupjs.org/",
|
||||
"license": "MIT",
|
||||
"repository": "rollup/rollup",
|
||||
"main": "./rollup.win32-x64-msvc.node"
|
||||
}
|
BIN
node_modules/@rollup/rollup-win32-x64-msvc/rollup.win32-x64-msvc.node
generated
vendored
BIN
node_modules/@rollup/rollup-win32-x64-msvc/rollup.win32-x64-msvc.node
generated
vendored
Binary file not shown.
Reference in New Issue
Block a user