Fix bin/publish: copy docs.dist from project root

Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-21 02:08:33 +00:00
commit f6fac6c4bc
79758 changed files with 10547827 additions and 0 deletions

13
vendor/spatie/ignition/node_modules/safe-identifier/LICENSE generated vendored Executable file
View File

@@ -0,0 +1,13 @@
Copyright (c) 2019 by Eemeli Aro <eemeli@gmail.com>
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.

View File

@@ -0,0 +1,42 @@
# safe-identifier
Sanitize strings for use as JavaScript identifiers & property names.
```
npm install --save safe-identifier
```
```js
import { identifier, property } from 'safe-identifier'
identifier('Foo') === 'Foo'
identifier('enum') === '_enum'
identifier('my var', true) === 'my_var_hk17pp'
identifier(' my \0var ', true) === 'my_var_1d8fi3'
property('Foo', 'bar') === 'Foo.bar'
property('Foo', 'bar\nbar') === 'Foo["bar\\nbar"]'
property(null, 'foo') === 'foo'
property(null, 'void') === '"void"'
```
## `identifier(key: string, unique: boolean): string`
Sanitize a string for use as an identifier name
Replaces invalid character sequences with `_` and may add a `_` prefix if the
resulting name would conflict with a JavaScript reserved name, covering all
standards from ES3 up to ES2018, along with current
[active proposals](https://github.com/tc39/proposals).
If `unique` is true, a 32-bit hash of the `key` is appended to the result in
order to help ensure that different inputs produce different outputs.
## `property(obj: string?, key: string): string`
Sanitize a string for use as a property name
By default uses `obj.key` notation, falling back to `obj["key"]` if the key
contains invalid characters or is an ECMAScript 3rd Edition reserved word
(required for IE8 compatibility). If `obj` is empty, returns only the possibly
quoted property key. The correctness of `obj` is not checked.

View File

@@ -0,0 +1,22 @@
/**
* Sanitize a string for use as an identifier name
*
* Replaces invalid character sequences with _ and may add a _ prefix if the
* resulting name would conflict with a JavaScript reserved name.
*
* @param key The desired identifier name
* @param unique Append a hash of the key to the result
*/
export declare function identifier(key: string, unique?: boolean): string
/**
* Sanitize a string for use as a property name
*
* By default uses `obj.key` notation, falling back to `obj["key"]` if the key
* contains invalid characters or is an ECMAScript 3rd Edition reserved word
* (required by IE8).
*
* @param obj If empty, returns only the possibly quoted key
* @param key The property name
*/
export function property(obj: string | null | undefined, key: string): string

31
vendor/spatie/ignition/node_modules/safe-identifier/index.js generated vendored Executable file
View File

@@ -0,0 +1,31 @@
const reserved = require('./reserved.js')
// from https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
function hashCode(str) {
let hash = 0
for (let i = 0; i < str.length; ++i) {
const char = str.charCodeAt(i)
hash = (hash << 5) - hash + char
hash |= 0 // Convert to 32bit integer
}
return hash
}
function identifier(key, unique) {
if (unique) key += ' ' + hashCode(key).toString(36)
const id = key.trim().replace(/\W+/g, '_')
return reserved.ES3[id] || reserved.ESnext[id] || /^\d/.test(id)
? '_' + id
: id
}
function property(obj, key) {
if (/^[A-Z_$][0-9A-Z_$]*$/i.test(key) && !reserved.ES3[key]) {
return obj ? obj + '.' + key : key
} else {
const jkey = JSON.stringify(key)
return obj ? obj + '[' + jkey + ']' : jkey
}
}
module.exports = { identifier, property }

View File

@@ -0,0 +1,29 @@
import reserved from './reserved.js'
// from https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
function hashCode(str) {
let hash = 0
for (let i = 0; i < str.length; ++i) {
const char = str.charCodeAt(i)
hash = (hash << 5) - hash + char
hash |= 0 // Convert to 32bit integer
}
return hash
}
export function identifier(key, unique) {
if (unique) key += ' ' + hashCode(key).toString(36)
const id = key.trim().replace(/\W+/g, '_')
return reserved.ES3[id] || reserved.ESnext[id] || /^\d/.test(id)
? '_' + id
: id
}
export function property(obj, key) {
if (/^[A-Z_$][0-9A-Z_$]*$/i.test(key) && !reserved.ES3[key]) {
return obj ? obj + '.' + key : key
} else {
const jkey = JSON.stringify(key)
return obj ? obj + '[' + jkey + ']' : jkey
}
}

View File

@@ -0,0 +1,54 @@
const ES3 = {
break: true,
continue: true,
delete: true,
else: true,
for: true,
function: true,
if: true,
in: true,
new: true,
return: true,
this: true,
typeof: true,
var: true,
void: true,
while: true,
with: true,
case: true,
catch: true,
default: true,
do: true,
finally: true,
instanceof: true,
switch: true,
throw: true,
try: true
}
const ESnext = {
// in addition to reservedES3
await: true,
debugger: true,
class: true,
enum: true,
extends: true,
super: true,
const: true,
export: true,
import: true,
null: true,
true: true,
false: true,
implements: true,
let: true,
private: true,
public: true,
yield: true,
interface: true,
package: true,
protected: true,
static: true
}
module.exports = { ES3, ESnext }