@thi.ng/ksuid 3.2.77 → 3.2.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/bin/ksuid +10 -2
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 201 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/bin/ksuid
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
# https://stackoverflow.com/a/246128/294515
|
|
4
4
|
SOURCE="${BASH_SOURCE[0]}"
|
|
5
|
-
while [ -
|
|
5
|
+
while [ -L "$SOURCE" ]; do
|
|
6
6
|
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
|
7
7
|
SOURCE="$(readlink "$SOURCE")"
|
|
8
8
|
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
|
9
9
|
done
|
|
10
10
|
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
|
11
|
+
DIR="$(dirname $DIR)"
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
# prefer using bun
|
|
14
|
+
if [ -x "$(command -v bun)" ]; then
|
|
15
|
+
CMD=bun
|
|
16
|
+
else
|
|
17
|
+
CMD=node
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
/usr/bin/env $CMD "$DIR/cli.js" "$DIR" "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/ksuid",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.79",
|
|
4
4
|
"description": "Configurable K-sortable unique IDs, ULIDs, binary & base-N encoded, 32/48/64bit time resolutions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,21 +35,20 @@
|
|
|
35
35
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
36
36
|
"clean": "bun ../../tools/src/clean-package.ts",
|
|
37
37
|
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
38
|
-
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
39
38
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
40
39
|
"pub": "yarn npm publish --access public",
|
|
41
40
|
"test": "bun test",
|
|
42
41
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
43
42
|
},
|
|
44
43
|
"dependencies": {
|
|
45
|
-
"@thi.ng/base-n": "^2.7.
|
|
46
|
-
"@thi.ng/errors": "^2.5.
|
|
47
|
-
"@thi.ng/random": "^4.1.
|
|
48
|
-
"@thi.ng/strings": "^3.9.
|
|
44
|
+
"@thi.ng/base-n": "^2.7.32",
|
|
45
|
+
"@thi.ng/errors": "^2.5.26",
|
|
46
|
+
"@thi.ng/random": "^4.1.11",
|
|
47
|
+
"@thi.ng/strings": "^3.9.5"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
|
-
"esbuild": "^0.
|
|
52
|
-
"typedoc": "^0.27.
|
|
50
|
+
"esbuild": "^0.25.0",
|
|
51
|
+
"typedoc": "^0.27.7",
|
|
53
52
|
"typescript": "^5.7.3"
|
|
54
53
|
},
|
|
55
54
|
"keywords": [
|
|
@@ -119,5 +118,5 @@
|
|
|
119
118
|
"status": "stable",
|
|
120
119
|
"year": 2020
|
|
121
120
|
},
|
|
122
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
|
|
123
122
|
}
|