Allow Rsx.Route() to accept string integers as params

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-23 09:18:10 +00:00
parent 2899ae826b
commit c7a2ec94ab
104 changed files with 293 additions and 144 deletions

View File

@@ -349,6 +349,9 @@ class Rsx {
let params_obj = {};
if (typeof params === 'number') {
params_obj = { id: params };
} else if (typeof params === 'string' && /^\d+$/.test(params)) {
// String that looks like an integer - convert to number
params_obj = { id: parseInt(params, 10) };
} else if (params && typeof params === 'object') {
params_obj = params;
} else if (params !== null && params !== undefined) {

30
node_modules/.package-lock.json generated vendored
View File

@@ -2211,9 +2211,9 @@
}
},
"node_modules/@jqhtml/core": {
"version": "2.3.27",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/core/-/core-2.3.27.tgz",
"integrity": "sha512-7qXDoDGtk8gAI7xcn8nbYDbH4pn0vkyafjKRE34ukcxQ3ZozzTX3UNqqsTRlvqlcjiSJ5XLFeQbwWuon+FDwhw==",
"version": "2.3.28",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/core/-/core-2.3.28.tgz",
"integrity": "sha512-jnm3GFudWzudwhlClcBNM2p1W74lSpnyqHp27riht+i25o5vHXEXC5/MC0RG/J7H1zcXIB67XTucC5mgfKt3TA==",
"license": "MIT",
"dependencies": {
"@rollup/plugin-node-resolve": "^16.0.1",
@@ -2237,9 +2237,9 @@
}
},
"node_modules/@jqhtml/parser": {
"version": "2.3.27",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/parser/-/parser-2.3.27.tgz",
"integrity": "sha512-jPE6xLOcE33mTTuELZiCw9bWAQ8o81yGw/lExV8B+38nGoGwq4kDiC4LlAEirGr0gx90kh0vvycFtIgVWGdaEw==",
"version": "2.3.28",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/parser/-/parser-2.3.28.tgz",
"integrity": "sha512-Y9HyrCNJXkg3h3ILzSoWeHB53Fl8Q5hBrjdGeyg3eq4j7MFrD8iHBKChoaywzC1CuU00Ir6jsNlofXz9sOVuZQ==",
"license": "MIT",
"dependencies": {
"@types/jest": "^29.5.11",
@@ -2277,9 +2277,9 @@
}
},
"node_modules/@jqhtml/ssr": {
"version": "2.3.27",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/ssr/-/ssr-2.3.27.tgz",
"integrity": "sha512-LdSdBZ+CGm2O63Wv5g4+G/4Iwr3SSw69NQBvI+9LKZFLkRvzLhXxUoYyU5OIaOnkYdzvYbef3ACV840/INwRLA==",
"version": "2.3.28",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/ssr/-/ssr-2.3.28.tgz",
"integrity": "sha512-MN98llN00aEgAizgMPVdCKlK964kxVig1kt5F2NTIjXH2FnsWxHQJJJyfbEAedRrvlLO1W9ciPD7mjP2iP2/og==",
"license": "MIT",
"dependencies": {
"jquery": "^3.7.1",
@@ -2373,9 +2373,9 @@
}
},
"node_modules/@jqhtml/vscode-extension": {
"version": "2.3.27",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.27.tgz",
"integrity": "sha512-q+3BIOpgxnnRQPDORicfOjAHJ7QNK1Pm4bvvLVwfSh/eykAZCj6PeXnLxi5BmZNXVaOA7P7ajoJZekFLFlLClw==",
"version": "2.3.28",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.28.tgz",
"integrity": "sha512-fY85EHAJclDkUX68hHd3q9hAC0Y/MwMYZgJnKOd2Js08tYD3OW7QD3zoOPR/dVhDKwEWfvXOKPDG5UO2ifTg5g==",
"license": "MIT",
"engines": {
"vscode": "^1.74.0"
@@ -6245,9 +6245,9 @@
}
},
"node_modules/fastq": {
"version": "1.19.1",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",
"integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",
"version": "1.20.1",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
"integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
"license": "ISC",
"dependencies": {
"reusify": "^1.0.4"

0
node_modules/@jqhtml/core/dist/boot.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/boot.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/component-registry.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/component-registry.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/component.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/component.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug-entry.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug-entry.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/debug.d.ts.map generated vendored Executable file → Normal file
View File

View File

@@ -4904,6 +4904,32 @@ function init_jquery_plugin(jQuery) {
// Call original .on() with cleaned arguments and return result
return originalOn.apply(this, cleanArgs);
};
// Store original jQuery.fn.find
const originalFind = jQuery.fn.find;
/**
* Override jQuery.fn.find() to detect incorrect [data-sid usage
*
* data-sid is for DevTools debugging only and may be disabled in production.
* Developers should use this.$sid('name') or this.sid('name') from within components.
*/
jQuery.fn.find = function (selector) {
// Check for incorrect [data-sid usage
if (typeof selector === 'string' && selector.includes('[data-sid')) {
throw new Error(`[JQHTML] Incorrect use of data-sid in selector: "${selector}"\n\n` +
`data-sid is a scoped ID system - the data-sid attribute exists only for debugging in DevTools ` +
`and may be disabled in production.\n\n` +
`CORRECT USAGE:\n` +
` • In templates: $sid="my_element"\n` +
` • In JavaScript: this.$sid('my_element') or this.sid('my_element')\n\n` +
`$sid creates a unique ID scoped to the parent component, accessible only from within that component.\n\n` +
`ALTERNATIVES for non-scoped element selection:\n` +
` • data-* attribute: <div data-role="input"> → .find('[data-role="input"]')\n` +
` • BEM class name: <div class="MyComponent__input"> → .find('.MyComponent__input')\n` +
` • Custom attribute: <div data-subelement="input"> → .find('[data-subelement="input"]')`);
}
// Pass through to original .find()
return originalFind.call(this, selector);
};
}
// Try to auto-initialize if global jQuery exists
if (typeof window !== 'undefined' && window.jQuery) {
@@ -4931,7 +4957,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.27';
const version = '2.3.28';
// Default export with all functionality
const jqhtml = {
// Core

2
node_modules/@jqhtml/core/dist/index.cjs.map generated vendored Executable file → Normal file

File diff suppressed because one or more lines are too long

0
node_modules/@jqhtml/core/dist/index.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/index.d.ts.map generated vendored Executable file → Normal file
View File

28
node_modules/@jqhtml/core/dist/index.js generated vendored Executable file → Normal file
View File

@@ -4900,6 +4900,32 @@ function init_jquery_plugin(jQuery) {
// Call original .on() with cleaned arguments and return result
return originalOn.apply(this, cleanArgs);
};
// Store original jQuery.fn.find
const originalFind = jQuery.fn.find;
/**
* Override jQuery.fn.find() to detect incorrect [data-sid usage
*
* data-sid is for DevTools debugging only and may be disabled in production.
* Developers should use this.$sid('name') or this.sid('name') from within components.
*/
jQuery.fn.find = function (selector) {
// Check for incorrect [data-sid usage
if (typeof selector === 'string' && selector.includes('[data-sid')) {
throw new Error(`[JQHTML] Incorrect use of data-sid in selector: "${selector}"\n\n` +
`data-sid is a scoped ID system - the data-sid attribute exists only for debugging in DevTools ` +
`and may be disabled in production.\n\n` +
`CORRECT USAGE:\n` +
` • In templates: $sid="my_element"\n` +
` • In JavaScript: this.$sid('my_element') or this.sid('my_element')\n\n` +
`$sid creates a unique ID scoped to the parent component, accessible only from within that component.\n\n` +
`ALTERNATIVES for non-scoped element selection:\n` +
` • data-* attribute: <div data-role="input"> → .find('[data-role="input"]')\n` +
` • BEM class name: <div class="MyComponent__input"> → .find('.MyComponent__input')\n` +
` • Custom attribute: <div data-subelement="input"> → .find('[data-subelement="input"]')`);
}
// Pass through to original .find()
return originalFind.call(this, selector);
};
}
// Try to auto-initialize if global jQuery exists
if (typeof window !== 'undefined' && window.jQuery) {
@@ -4927,7 +4953,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.27';
const version = '2.3.28';
// Default export with all functionality
const jqhtml = {
// Core

2
node_modules/@jqhtml/core/dist/index.js.map generated vendored Executable file → Normal file

File diff suppressed because one or more lines are too long

0
node_modules/@jqhtml/core/dist/instruction-processor.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/instruction-processor.d.ts.map generated vendored Executable file → Normal file
View File

30
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js generated vendored Executable file → Normal file
View File

@@ -1,5 +1,5 @@
/**
* JQHTML Core v2.3.27
* JQHTML Core v2.3.28
* (c) 2025 JQHTML Team
* Released under the MIT License
*/
@@ -4905,6 +4905,32 @@ function init_jquery_plugin(jQuery) {
// Call original .on() with cleaned arguments and return result
return originalOn.apply(this, cleanArgs);
};
// Store original jQuery.fn.find
const originalFind = jQuery.fn.find;
/**
* Override jQuery.fn.find() to detect incorrect [data-sid usage
*
* data-sid is for DevTools debugging only and may be disabled in production.
* Developers should use this.$sid('name') or this.sid('name') from within components.
*/
jQuery.fn.find = function (selector) {
// Check for incorrect [data-sid usage
if (typeof selector === 'string' && selector.includes('[data-sid')) {
throw new Error(`[JQHTML] Incorrect use of data-sid in selector: "${selector}"\n\n` +
`data-sid is a scoped ID system - the data-sid attribute exists only for debugging in DevTools ` +
`and may be disabled in production.\n\n` +
`CORRECT USAGE:\n` +
` • In templates: $sid="my_element"\n` +
` • In JavaScript: this.$sid('my_element') or this.sid('my_element')\n\n` +
`$sid creates a unique ID scoped to the parent component, accessible only from within that component.\n\n` +
`ALTERNATIVES for non-scoped element selection:\n` +
` • data-* attribute: <div data-role="input"> → .find('[data-role="input"]')\n` +
` • BEM class name: <div class="MyComponent__input"> → .find('.MyComponent__input')\n` +
` • Custom attribute: <div data-subelement="input"> → .find('[data-subelement="input"]')`);
}
// Pass through to original .find()
return originalFind.call(this, selector);
};
}
// Try to auto-initialize if global jQuery exists
if (typeof window !== 'undefined' && window.jQuery) {
@@ -4932,7 +4958,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.27';
const version = '2.3.28';
// Default export with all functionality
const jqhtml = {
// Core

2
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js.map generated vendored Executable file → Normal file

File diff suppressed because one or more lines are too long

0
node_modules/@jqhtml/core/dist/jqhtml-debug.esm.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/jqhtml-debug.esm.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/jquery-plugin.d.ts generated vendored Executable file → Normal file
View File

2
node_modules/@jqhtml/core/dist/jquery-plugin.d.ts.map generated vendored Executable file → Normal file
View File

@@ -1 +1 @@
{"version":3,"file":"jquery-plugin.d.ts","sourceRoot":"","sources":["../src/jquery-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAQpE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;WAEG;QACH,SAAS,IAAI,gBAAgB,GAAG,IAAI,CAAC;QACrC,SAAS,CAAC,cAAc,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAC9F,SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAE/E;;;;;;;WAOG;QACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KACvC;CACF;AAGD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CAgXpD"}
{"version":3,"file":"jquery-plugin.d.ts","sourceRoot":"","sources":["../src/jquery-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAQpE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;WAEG;QACH,SAAS,IAAI,gBAAgB,GAAG,IAAI,CAAC;QACrC,SAAS,CAAC,cAAc,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAC9F,SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAE/E;;;;;;;WAOG;QACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KACvC;CACF;AAGD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CA+YpD"}

0
node_modules/@jqhtml/core/dist/lifecycle-manager.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/lifecycle-manager.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/load-coordinator.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/load-coordinator.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/local-storage.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/local-storage.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/template-renderer.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/core/dist/template-renderer.d.ts.map generated vendored Executable file → Normal file
View File

2
node_modules/@jqhtml/core/package.json generated vendored Executable file → Normal file
View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/core",
"version": "2.3.27",
"version": "2.3.28",
"description": "Core runtime library for JQHTML",
"type": "module",
"main": "./dist/index.js",

0
node_modules/@jqhtml/parser/dist/ast.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/ast.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/ast.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/codegen.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/codegen.d.ts.map generated vendored Executable file → Normal file
View File

View File

@@ -1377,7 +1377,7 @@ export class CodeGenerator {
for (const [name, component] of this.components) {
code += `// Component: ${name}\n`;
code += `jqhtml_components.set('${name}', {\n`;
code += ` _jqhtml_version: '2.3.27',\n`; // Version will be replaced during build
code += ` _jqhtml_version: '2.3.28',\n`; // Version will be replaced during build
code += ` name: '${name}',\n`;
code += ` tag: '${component.tagName}',\n`;
code += ` defaultAttributes: ${this.serializeAttributeObject(component.defaultAttributes)},\n`;

0
node_modules/@jqhtml/parser/dist/codegen.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/compiler.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/compiler.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/compiler.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/compiler.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/errors.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/errors.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/errors.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/errors.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/index.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/index.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/index.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/integration.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/integration.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/integration.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/integration.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/lexer.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/lexer.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/lexer.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/lexer.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/parser.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/parser.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/parser.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/parser.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/runtime.d.ts generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/runtime.d.ts.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/runtime.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/parser/dist/runtime.js.map generated vendored Executable file → Normal file
View File

2
node_modules/@jqhtml/parser/package.json generated vendored Executable file → Normal file
View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/parser",
"version": "2.3.27",
"version": "2.3.28",
"description": "JQHTML template parser - converts templates to JavaScript",
"type": "module",
"main": "dist/index.js",

0
node_modules/@jqhtml/ssr/QUICKSTART.md generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/ssr/README.md generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/ssr/SPECIFICATION.md generated vendored Executable file → Normal file
View File

2
node_modules/@jqhtml/ssr/package.json generated vendored Executable file → Normal file
View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/ssr",
"version": "2.3.27",
"version": "2.3.28",
"description": "Server-Side Rendering for JQHTML components - renders components to HTML for SEO",
"main": "src/index.js",
"bin": {

0
node_modules/@jqhtml/ssr/src/http-intercept.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/ssr/src/index.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/ssr/src/protocol.js generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/ssr/src/storage.js generated vendored Executable file → Normal file
View File

View File

@@ -1 +1 @@
2.3.27
2.3.28

0
node_modules/@jqhtml/vscode-extension/blade-language-configuration.json generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/vscode-extension/out/blade_component_provider.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/vscode-extension/out/blade_language_config.js.map generated vendored Executable file → Normal file
View File

0
node_modules/@jqhtml/vscode-extension/out/blade_spacer.js.map generated vendored Executable file → Normal file
View File

2
node_modules/@jqhtml/vscode-extension/package.json generated vendored Executable file → Normal file
View File

@@ -2,7 +2,7 @@
"name": "@jqhtml/vscode-extension",
"displayName": "JQHTML",
"description": "Syntax highlighting and language support for JQHTML template files",
"version": "2.3.27",
"version": "2.3.28",
"publisher": "jqhtml",
"license": "MIT",
"publishConfig": {

0
node_modules/@jqhtml/vscode-extension/syntaxes/blade-jqhtml.tmLanguage.json generated vendored Executable file → Normal file
View File

View File

@@ -1,11 +0,0 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: standard
versions:
- 16.0.3

View File

@@ -1,75 +0,0 @@
name: ci
on: [push, pull_request]
jobs:
legacy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['0.10', '0.12', 4.x, 6.x, 8.x, 10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
npm install --production && npm install tape
- name: Run tests
run: |
npm run legacy
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
npm install
- name: Run tests
run: |
npm run test
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install
run: |
npm install
- name: Run types tests
run: |
npm run typescript

0
node_modules/fastq/LICENSE generated vendored Executable file → Normal file
View File

2
node_modules/fastq/README.md generated vendored Executable file → Normal file
View File

@@ -18,8 +18,6 @@ If you need zero-overhead series function call, check out
[fastseries](http://npm.im/fastseries). For zero-overhead parallel
function call, check out [fastparallel](http://npm.im/fastparallel).
[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard)
* <a href="#install">Installation</a>
* <a href="#usage">Usage</a>
* <a href="#api">API</a>

0
node_modules/fastq/SECURITY.md generated vendored Executable file → Normal file
View File

0
node_modules/fastq/bench.js generated vendored Executable file → Normal file
View File

11
node_modules/fastq/eslint.config.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
const neostandard = require('neostandard')
module.exports = [
...neostandard(),
{
name: 'node-0.10-compatibility',
rules: {
'object-shorthand': 'off' // Disable ES6 object shorthand for Node.js 0.10 compatibility
}
}
]

0
node_modules/fastq/example.js generated vendored Executable file → Normal file
View File

2
node_modules/fastq/example.mjs generated vendored Executable file → Normal file
View File

@@ -1,7 +1,5 @@
import { promise as queueAsPromised } from './queue.js'
/* eslint-disable */
const queue = queueAsPromised(worker, 1)
console.log('the result is', await queue.push(42))

2
node_modules/fastq/index.d.ts generated vendored Executable file → Normal file
View File

@@ -27,6 +27,8 @@ declare namespace fastq {
kill(): any
/** Same than `kill` but the `drain` function will be called before reset to empty. */
killAndDrain(): any
/** Removes all tasks waiting to be processed, calls each task's callback with an abort error (rejects promises for promise-based queues), and resets `drain` to an empty function. */
abort(): any
/** Set a global error handler. `handler(err, task)` will be called each time a task is completed, `err` will be not null if the task has thrown an error. */
error(handler: errorHandler<T>): void
/** Property that returns the number of concurrent tasks that could be executed in parallel. It can be altered at runtime. */

14
node_modules/fastq/package.json generated vendored Executable file → Normal file
View File

@@ -1,10 +1,11 @@
{
"name": "fastq",
"version": "1.19.1",
"version": "1.20.1",
"description": "Fast, in memory work queue",
"main": "queue.js",
"type": "commonjs",
"scripts": {
"lint": "standard --verbose | snazzy",
"lint": "eslint .",
"unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test/test.js test/promise.js",
"coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js test/promise.js",
"test:report": "npm run lint && npm run unit:report",
@@ -34,20 +35,15 @@
"homepage": "https://github.com/mcollina/fastq#readme",
"devDependencies": {
"async": "^3.1.0",
"eslint": "^9.36.0",
"neo-async": "^2.6.1",
"neostandard": "^0.12.2",
"nyc": "^17.0.0",
"pre-commit": "^1.2.2",
"snazzy": "^9.0.0",
"standard": "^16.0.0",
"tape": "^5.0.0",
"typescript": "^5.0.4"
},
"dependencies": {
"reusify": "^1.0.4"
},
"standard": {
"ignore": [
"example.mjs"
]
}
}

37
node_modules/fastq/queue.js generated vendored Executable file → Normal file
View File

@@ -53,7 +53,8 @@ function fastqueue (context, worker, _concurrency) {
empty: noop,
kill: kill,
killAndDrain: killAndDrain,
error: error
error: error,
abort: abort
}
return self
@@ -193,6 +194,40 @@ function fastqueue (context, worker, _concurrency) {
self.drain = noop
}
function abort () {
var current = queueHead
queueHead = null
queueTail = null
while (current) {
var next = current.next
var callback = current.callback
var errorHandler = current.errorHandler
var val = current.value
var context = current.context
// Reset the task state
current.value = null
current.callback = noop
current.errorHandler = null
// Call error handler if present
if (errorHandler) {
errorHandler(new Error('abort'), val)
}
// Call callback with error
callback.call(context, new Error('abort'))
// Release the task back to the pool
current.release(current)
current = next
}
self.drain = noop
}
function error (handler) {
errorHandler = handler
}

0
node_modules/fastq/test/example.ts generated vendored Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More