Update npm packages to latest versions
Fix JavaScript sourcemap paths to show full file locations Implement --build-debug flag and complete Build UI streaming Add xterm.js terminal UI and fix asset path routing Add RSpade Build UI service with WebSocket support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
0
node_modules/@rollup/plugin-replace/LICENSE
generated
vendored
Executable file → Normal file
0
node_modules/@rollup/plugin-replace/LICENSE
generated
vendored
Executable file → Normal file
10
node_modules/@rollup/plugin-replace/README.md
generated
vendored
Executable file → Normal file
10
node_modules/@rollup/plugin-replace/README.md
generated
vendored
Executable file → Normal file
@@ -61,14 +61,14 @@ In addition to the properties and values specified for replacement, users may al
|
||||
### `delimiters`
|
||||
|
||||
Type: `Array[String, String]`<br>
|
||||
Default: `['\\b', '\\b(?!\\.)']`
|
||||
Default: `['(?<![_$a-zA-Z0-9\\xA0-\\uFFFF])', '(?![_$a-zA-Z0-9\\xA0-\\uFFFF])(?!\\.)']`
|
||||
|
||||
Specifies the boundaries around which strings will be replaced. By default, delimiters are [word boundaries](https://www.regular-expressions.info/wordboundaries.html) and also prevent replacements of instances with nested access. See [Word Boundaries](#word-boundaries) below for more information.
|
||||
Specifies the boundaries around which strings will be replaced. By default, delimiters match JavaScript identifier boundaries and also prevent replacements of instances with nested access. See [Word Boundaries](#word-boundaries) below for more information.
|
||||
For example, if you pass `typeof window` in `values` to-be-replaced, then you could expect the following scenarios:
|
||||
|
||||
- `typeof window` **will** be replaced
|
||||
- `typeof window.document` **will not** be replaced due to `(?!\.)` boundary
|
||||
- `typeof windowSmth` **will not** be replaced due to a `\b` boundary
|
||||
- `typeof window.document` **will not** be replaced due to the `(?!\.)` boundary
|
||||
- `typeof windowSmth` **will not** be replaced due to identifier boundaries
|
||||
|
||||
Delimiters will be used to build a `Regexp`. To match special characters (any of `.*+?^${}()|[]\`), be sure to [escape](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping) them.
|
||||
|
||||
@@ -194,7 +194,7 @@ replace({
|
||||
|
||||
## Word Boundaries
|
||||
|
||||
By default, values will only match if they are surrounded by _word boundaries_.
|
||||
By default, values will only match if they are surrounded by _word boundaries_ that respect JavaScript's rules for valid identifiers (including `$` and `_` as valid identifier characters).
|
||||
|
||||
Consider the following options and build file:
|
||||
|
||||
|
||||
2
node_modules/@rollup/plugin-replace/dist/cjs/index.js
generated
vendored
Executable file → Normal file
2
node_modules/@rollup/plugin-replace/dist/cjs/index.js
generated
vendored
Executable file → Normal file
@@ -60,7 +60,7 @@ function replace(options) {
|
||||
if ( options === void 0 ) options = {};
|
||||
|
||||
var filter = pluginutils.createFilter(options.include, options.exclude);
|
||||
var delimiters = options.delimiters; if ( delimiters === void 0 ) delimiters = ['\\b', '\\b(?!\\.)'];
|
||||
var delimiters = options.delimiters; if ( delimiters === void 0 ) delimiters = ['(?<![_$a-zA-Z0-9\\xA0-\\uFFFF])', '(?![_$a-zA-Z0-9\\xA0-\\uFFFF])(?!\\.)'];
|
||||
var preventAssignment = options.preventAssignment;
|
||||
var objectGuards = options.objectGuards;
|
||||
var replacements = getReplacements(options);
|
||||
|
||||
2
node_modules/@rollup/plugin-replace/dist/es/index.js
generated
vendored
Executable file → Normal file
2
node_modules/@rollup/plugin-replace/dist/es/index.js
generated
vendored
Executable file → Normal file
@@ -56,7 +56,7 @@ function replace(options) {
|
||||
if ( options === void 0 ) options = {};
|
||||
|
||||
var filter = createFilter(options.include, options.exclude);
|
||||
var delimiters = options.delimiters; if ( delimiters === void 0 ) delimiters = ['\\b', '\\b(?!\\.)'];
|
||||
var delimiters = options.delimiters; if ( delimiters === void 0 ) delimiters = ['(?<![_$a-zA-Z0-9\\xA0-\\uFFFF])', '(?![_$a-zA-Z0-9\\xA0-\\uFFFF])(?!\\.)'];
|
||||
var preventAssignment = options.preventAssignment;
|
||||
var objectGuards = options.objectGuards;
|
||||
var replacements = getReplacements(options);
|
||||
|
||||
0
node_modules/@rollup/plugin-replace/dist/es/package.json
generated
vendored
Executable file → Normal file
0
node_modules/@rollup/plugin-replace/dist/es/package.json
generated
vendored
Executable file → Normal file
2
node_modules/@rollup/plugin-replace/package.json
generated
vendored
Executable file → Normal file
2
node_modules/@rollup/plugin-replace/package.json
generated
vendored
Executable file → Normal file
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@rollup/plugin-replace",
|
||||
"version": "6.0.2",
|
||||
"version": "6.0.3",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
||||
6
node_modules/@rollup/plugin-replace/src/index.js
generated
vendored
Executable file → Normal file
6
node_modules/@rollup/plugin-replace/src/index.js
generated
vendored
Executable file → Normal file
@@ -54,7 +54,11 @@ function expandTypeofReplacements(replacements) {
|
||||
|
||||
export default function replace(options = {}) {
|
||||
const filter = createFilter(options.include, options.exclude);
|
||||
const { delimiters = ['\\b', '\\b(?!\\.)'], preventAssignment, objectGuards } = options;
|
||||
const {
|
||||
delimiters = ['(?<![_$a-zA-Z0-9\\xA0-\\uFFFF])', '(?![_$a-zA-Z0-9\\xA0-\\uFFFF])(?!\\.)'],
|
||||
preventAssignment,
|
||||
objectGuards
|
||||
} = options;
|
||||
const replacements = getReplacements(options);
|
||||
if (objectGuards) expandTypeofReplacements(replacements);
|
||||
const functionValues = mapToFunctions(replacements);
|
||||
|
||||
0
node_modules/@rollup/plugin-replace/types/index.d.ts
generated
vendored
Executable file → Normal file
0
node_modules/@rollup/plugin-replace/types/index.d.ts
generated
vendored
Executable file → Normal file
Reference in New Issue
Block a user