cybertoken 5.1.2 → 5.1.4
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/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as createTokenGenerator } from "./src-
|
|
2
|
+
import { t as createTokenGenerator } from "./src-BvKVKIGZ.mjs";
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
const prefixWithoutUnderscore = process.argv[2] ?? process.env.CYBERTOKEN_PREFIX;
|
|
5
5
|
if (!prefixWithoutUnderscore) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createTokenGenerator } from "./src-
|
|
1
|
+
import { t as createTokenGenerator } from "./src-BvKVKIGZ.mjs";
|
|
2
2
|
export { createTokenGenerator };
|
|
@@ -298,7 +298,7 @@ function encode(source) {
|
|
|
298
298
|
}
|
|
299
299
|
function decodeUnsafe(source) {
|
|
300
300
|
if (typeof source !== "string") throw new TypeError("Expected String");
|
|
301
|
-
if (source.length === 0) return new Uint8Array();
|
|
301
|
+
if (source.length === 0) return new Uint8Array(0);
|
|
302
302
|
let psz = 0;
|
|
303
303
|
let zeroes = 0;
|
|
304
304
|
let length = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cybertoken",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.4",
|
|
4
4
|
"description": "A token format for APIs inspired by the GitHub's API token format.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"prepublishOnly": "npm run build"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/node": "^25.
|
|
35
|
-
"expect": "^30.
|
|
36
|
-
"oxfmt": "^0.
|
|
37
|
-
"oxlint": "^1.
|
|
38
|
-
"oxlint-tsgolint": "^0.
|
|
39
|
-
"tsdown": "^0.
|
|
40
|
-
"typedoc": "^0.28.
|
|
34
|
+
"@types/node": "^25.7.0",
|
|
35
|
+
"expect": "^30.4.1",
|
|
36
|
+
"oxfmt": "^0.49.0",
|
|
37
|
+
"oxlint": "^1.64.0",
|
|
38
|
+
"oxlint-tsgolint": "^0.22.1",
|
|
39
|
+
"tsdown": "^0.22.0",
|
|
40
|
+
"typedoc": "^0.28.19"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=20"
|