@vrplatform/api 1.3.1-1706 → 1.3.1-1723
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/build/main/cache.js.map +1 -1
- package/build/main/client.js.map +1 -1
- package/build/main/error.js +4 -0
- package/build/main/error.js.map +1 -1
- package/build/main/generated/openapi-fetch.js.map +1 -1
- package/build/main/generated/v1.d.ts +432 -18
- package/build/main/generated/v1.js.map +1 -1
- package/build/main/sec.js.map +1 -1
- package/build/main/tsconfig.main.tsbuildinfo +1 -1
- package/build/module/cache.js.map +1 -1
- package/build/module/client.js.map +1 -1
- package/build/module/error.js.map +1 -1
- package/build/module/generated/v1.d.ts +432 -18
- package/build/module/generated/v1.js.map +1 -1
- package/build/module/sec.js.map +1 -1
- package/build/module/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/generated/v1.ts +432 -18
package/build/module/sec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sec.js","sourceRoot":"src/","sources":["sec.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"sec.js","sourceRoot":"src/","sources":["sec.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,EACxB;IACjB,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,CAC7C,KAAK,EACL,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EACtB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EACjC,KAAK,EACL,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAC1E,IAAI,EACJ,EAAE,CACH,CAAC;IAEF,OAAO,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC;AAAA,CAC/B","sourcesContent":["export async function generateApiKeySec(\n secret: string,\n timestamp = Math.floor(Date.now() / 1000)\n): Promise<string> {\n const encoder = new TextEncoder();\n const secretKey = await crypto.subtle.importKey(\n 'raw',\n encoder.encode(secret),\n { name: 'HMAC', hash: 'SHA-256' },\n false,\n ['sign']\n );\n\n const message = encoder.encode(`${timestamp}`);\n const signature = await crypto.subtle.sign('HMAC', secretKey, message);\n const hash = btoa(String.fromCharCode(...new Uint8Array(signature))).replace(\n /=/g,\n ''\n );\n\n return `${timestamp}.${hash}`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../../src/cache.ts","../../src/client.ts","../../src/error.ts","../../src/index.ts","../../src/sec.ts","../../src/types.ts","../../src/generated/openapi-fetch.ts","../../src/generated/v1.ts"]
|
|
1
|
+
{"version":"7.0.0-dev.20251218.3","root":["../../src/cache.ts","../../src/client.ts","../../src/error.ts","../../src/index.ts","../../src/sec.ts","../../src/types.ts","../../src/generated/openapi-fetch.ts","../../src/generated/v1.ts"]}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"typings": "build/main/index.d.ts",
|
|
7
7
|
"module": "build/module/index.js"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.3.1-
|
|
9
|
+
"version": "1.3.1-1723",
|
|
10
10
|
"description": "",
|
|
11
11
|
"main": "build/main/index.js",
|
|
12
12
|
"module": "build/module/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"npmpub:staging": "vrp-publish --tag staging",
|
|
17
17
|
"npmpub:production": "vrp-publish",
|
|
18
18
|
"build": "bun run generate-client && bun build:main && bun build:module",
|
|
19
|
-
"build:main": "
|
|
20
|
-
"build:module": "
|
|
19
|
+
"build:main": "tsgo -b tsconfig.main.json",
|
|
20
|
+
"build:module": "tsgo -b tsconfig.esm.json",
|
|
21
21
|
"dev": "NODE_ENV=generator bun --watch ./generate.ts",
|
|
22
22
|
"generate-client": "bun generate:schema && bun generate:client",
|
|
23
23
|
"generate:schema": "NODE_ENV=generator bun ./openapi.ts",
|