@thi.ng/ksuid 3.2.78 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-29T16:25:48Z
3
+ - **Last updated**: 2025-02-13T16:03:11Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
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 [ -h "$SOURCE" ]; do
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
- /usr/bin/env node "$DIR/../cli.js" "$DIR" "$@"
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.78",
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",
@@ -41,14 +41,14 @@
41
41
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@thi.ng/base-n": "^2.7.31",
45
- "@thi.ng/errors": "^2.5.25",
46
- "@thi.ng/random": "^4.1.10",
47
- "@thi.ng/strings": "^3.9.4"
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"
48
48
  },
49
49
  "devDependencies": {
50
- "esbuild": "^0.24.2",
51
- "typedoc": "^0.27.6",
50
+ "esbuild": "^0.25.0",
51
+ "typedoc": "^0.27.7",
52
52
  "typescript": "^5.7.3"
53
53
  },
54
54
  "keywords": [
@@ -118,5 +118,5 @@
118
118
  "status": "stable",
119
119
  "year": 2020
120
120
  },
121
- "gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
121
+ "gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
122
122
  }