@settlemint/dalp-cli 3.1.26-main.37150284587 → 3.1.26-main.37161096109
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/dalp.js +25 -4
- package/dist/dalp.js.map +4 -4
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -41190,6 +41190,21 @@ function detectDalpRuntime() {
|
|
|
41190
41190
|
function runtimeCredentials(runtime) {
|
|
41191
41191
|
return runtime === "browser" ? "include" : "omit";
|
|
41192
41192
|
}
|
|
41193
|
+
function refuseCrossOriginBrowserSession(runtime, baseUrl, usesApiKey) {
|
|
41194
|
+
if (runtime !== "browser" || usesApiKey) {
|
|
41195
|
+
return;
|
|
41196
|
+
}
|
|
41197
|
+
const browserOrigin = globalThis.window?.location?.origin;
|
|
41198
|
+
const targetOrigin = new URL(baseUrl).origin;
|
|
41199
|
+
if (browserOrigin === undefined || browserOrigin === targetOrigin) {
|
|
41200
|
+
return;
|
|
41201
|
+
}
|
|
41202
|
+
throw createDalpSdkConfigurationError({
|
|
41203
|
+
message: "DALP SDK: browser cookie sessions must use the application origin; mount createDalpProxy at /api.",
|
|
41204
|
+
why: `The browser page is ${browserOrigin}, but the client targets ${targetOrigin}; host-only session cookies do not cross origins.`,
|
|
41205
|
+
fix: "Set the browser client baseUrl to window.location.origin and mount createDalpProxy at /api on that origin."
|
|
41206
|
+
});
|
|
41207
|
+
}
|
|
41193
41208
|
var WHATWG_FETCH_POLYFILL_FLAG = "polyfill";
|
|
41194
41209
|
function isBufferingFetch(fetchImpl) {
|
|
41195
41210
|
return typeof fetchImpl === "function" && Reflect.get(fetchImpl, WHATWG_FETCH_POLYFILL_FLAG) === true;
|
|
@@ -41729,6 +41744,7 @@ function createTransport(options) {
|
|
|
41729
41744
|
} else {
|
|
41730
41745
|
apiKey = secret(apiKeyOption.trim());
|
|
41731
41746
|
}
|
|
41747
|
+
refuseCrossOriginBrowserSession(runtime, baseUrl, apiKey !== undefined);
|
|
41732
41748
|
if (apiKey !== undefined) {
|
|
41733
41749
|
refuseBundledApiKey(runtime);
|
|
41734
41750
|
}
|
|
@@ -43401,7 +43417,7 @@ var data5 = JSON.parse('{"version":1,"entries":{"BAD_REQUEST":{"id":"DALP-0001",
|
|
|
43401
43417
|
// ../sdk/package.json
|
|
43402
43418
|
var package_default = {
|
|
43403
43419
|
name: "@settlemint/dalp-sdk",
|
|
43404
|
-
version: "3.1.26-main.
|
|
43420
|
+
version: "3.1.26-main.37161096109",
|
|
43405
43421
|
private: false,
|
|
43406
43422
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
43407
43423
|
homepage: "https://settlemint.com",
|
|
@@ -43425,6 +43441,11 @@ var package_default = {
|
|
|
43425
43441
|
],
|
|
43426
43442
|
exports: {
|
|
43427
43443
|
"./package.json": "./package.json",
|
|
43444
|
+
"./server-proxy": {
|
|
43445
|
+
types: "./dist/server-proxy.d.ts",
|
|
43446
|
+
import: "./dist/server-proxy.js",
|
|
43447
|
+
default: "./dist/server-proxy.js"
|
|
43448
|
+
},
|
|
43428
43449
|
"./runtime-exports": {
|
|
43429
43450
|
types: "./dist/runtime-exports.d.ts",
|
|
43430
43451
|
import: "./dist/runtime-exports.js",
|
|
@@ -43514,7 +43535,7 @@ var package_default = {
|
|
|
43514
43535
|
"@better-auth/passkey": "1.7.7",
|
|
43515
43536
|
"@domains/webhooks-contract": "workspace:*",
|
|
43516
43537
|
"better-auth": "1.7.7",
|
|
43517
|
-
"better-call": "1.4.
|
|
43538
|
+
"better-call": "1.4.1",
|
|
43518
43539
|
dnum: "2.17.0",
|
|
43519
43540
|
standardwebhooks: "1.1.1",
|
|
43520
43541
|
viem: "2.57.2"
|
|
@@ -100937,7 +100958,7 @@ async function runCommand(context, operation, errorContext = UNKNOWN_COMMAND_ERR
|
|
|
100937
100958
|
// package.json
|
|
100938
100959
|
var package_default2 = {
|
|
100939
100960
|
name: "@settlemint/dalp-cli",
|
|
100940
|
-
version: "3.1.26-main.
|
|
100961
|
+
version: "3.1.26-main.37161096109",
|
|
100941
100962
|
private: false,
|
|
100942
100963
|
description: "CLI for the Digital Asset Lifecycle Platform \u2014 manage tokens, identities, compliance, and more from the command line.",
|
|
100943
100964
|
homepage: "https://settlemint.com",
|
|
@@ -102300,4 +102321,4 @@ if (false) {}
|
|
|
102300
102321
|
// src/bin.ts
|
|
102301
102322
|
await cli.serve();
|
|
102302
102323
|
|
|
102303
|
-
//# debugId=
|
|
102324
|
+
//# debugId=A9382F22C171974164756E2164756E21
|