@magicweave/core 0.1.1 → 0.2.0
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -74,7 +74,7 @@ var import_openapi_fetch = __toESM(require("openapi-fetch"), 1);
|
|
|
74
74
|
var STAGING_API_BASE = "https://console.staging.magicweave.xyz/api";
|
|
75
75
|
var PROD_API_BASE = "https://console.magicweave.xyz/api";
|
|
76
76
|
function resolveBaseUrl(explicit) {
|
|
77
|
-
const raw = explicit ?? process.env.MW_API_BASE ??
|
|
77
|
+
const raw = explicit ?? process.env.MW_API_BASE ?? PROD_API_BASE;
|
|
78
78
|
let url;
|
|
79
79
|
try {
|
|
80
80
|
url = new URL(raw);
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import createOpenapiClient from "openapi-fetch";
|
|
|
9
9
|
var STAGING_API_BASE = "https://console.staging.magicweave.xyz/api";
|
|
10
10
|
var PROD_API_BASE = "https://console.magicweave.xyz/api";
|
|
11
11
|
function resolveBaseUrl(explicit) {
|
|
12
|
-
const raw = explicit ?? process.env.MW_API_BASE ??
|
|
12
|
+
const raw = explicit ?? process.env.MW_API_BASE ?? PROD_API_BASE;
|
|
13
13
|
let url;
|
|
14
14
|
try {
|
|
15
15
|
url = new URL(raw);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicweave/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Shared TypeScript SDK for Magicweave — admin API client, EconomySpec schemas, and the deterministic smart layer. Powers the CLI, MCP, and OpenAI surfaces.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|