@knapsack/core 4.99.2 → 4.99.3--canary.7934.cf5045f.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.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/dist/ks-urls.d.ts +12 -24
- package/dist/ks-urls.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/ks-urls.d.ts
CHANGED
|
@@ -1,49 +1,37 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* Origin serving uploaded files (S3/CDN). Defaults to prod file storage,
|
|
7
|
-
* so local/preview envs must set this to avoid touching prod uploads.
|
|
8
|
-
*/
|
|
9
|
-
readonly fileStorageUrl?: string | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface KsUrls {
|
|
1
|
+
export declare function getKsUrls({ dbUrl, apiUrl, apiUrlPathPrefix, }: {
|
|
2
|
+
dbUrl: string | undefined;
|
|
3
|
+
apiUrl: string | undefined;
|
|
4
|
+
apiUrlPathPrefix?: string | undefined;
|
|
5
|
+
}): {
|
|
12
6
|
/**
|
|
13
7
|
* Base URL for Knapsack DB (Hasura)
|
|
14
8
|
* @default 'https://db.knapsack.cloud'
|
|
15
9
|
*/
|
|
16
|
-
|
|
10
|
+
dbOrigin: string;
|
|
17
11
|
/**
|
|
18
12
|
* App DB GraphQL endpoint for connecting to Hasura GraphQL.
|
|
19
13
|
* @default 'https://db.knapsack.cloud/v1/graphql'
|
|
20
14
|
*/
|
|
21
|
-
|
|
15
|
+
dbGqlEndpoint: `${string}/graphql`;
|
|
22
16
|
/**
|
|
23
17
|
* App DB GraphQL WebSocket endpoint for connecting to Hasura GraphQL.
|
|
24
18
|
* @default 'wss://db.knapsack.cloud/v1/graphql'
|
|
25
19
|
*/
|
|
26
|
-
|
|
20
|
+
dbGqlWsEndpoint: `ws${"s" | ""}:${string}/graphql`;
|
|
27
21
|
/**
|
|
28
22
|
* App API GraphQL endpoint for connecting to Api Server GraphQL.
|
|
29
23
|
* @default 'https://api.knapsack.cloud/graphql'
|
|
30
24
|
*/
|
|
31
|
-
|
|
25
|
+
apiGqlEndpoint: `${string}/graphql`;
|
|
32
26
|
/**
|
|
33
27
|
* Base URL for Knapsack API
|
|
34
28
|
* @default 'https://api.knapsack.cloud'
|
|
35
29
|
*/
|
|
36
|
-
|
|
30
|
+
apiOrigin: string;
|
|
37
31
|
/**
|
|
38
32
|
* Root endpoint for Knapsack API
|
|
39
33
|
* @default 'https://api.knapsack.cloud'
|
|
40
34
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* Base URL for Knapsack file storage (uploaded files served from S3/CDN)
|
|
44
|
-
* @default 'https://fcdn.knapsack.cloud'
|
|
45
|
-
*/
|
|
46
|
-
readonly fileStorageOrigin: string;
|
|
47
|
-
}
|
|
48
|
-
export declare function getKsUrls({ dbUrl, apiUrl, apiUrlPathPrefix, fileStorageUrl, }: KsUrlsInput): KsUrls;
|
|
35
|
+
apiRootEndpoint: string;
|
|
36
|
+
};
|
|
49
37
|
//# sourceMappingURL=ks-urls.d.ts.map
|
package/dist/ks-urls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ks-urls.d.ts","sourceRoot":"","sources":["../src/ks-urls.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"ks-urls.d.ts","sourceRoot":"","sources":["../src/ks-urls.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,MAAM,EACN,gBAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;IA2BG;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;qBAE6B,KAAK,GAAG,GAAG,EAAE,IAAI,MAAM,UAAU;IACjE;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;EAGN"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack/core",
|
|
3
3
|
"description": "The core of Knapsack",
|
|
4
|
-
"version": "4.99.
|
|
4
|
+
"version": "4.99.3--canary.7934.cf5045f.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
},
|
|
31
31
|
"author": "Knapsack (https://www.knapsack.cloud)",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@knapsack/utils": "4.99.
|
|
33
|
+
"@knapsack/utils": "4.99.3--canary.7934.cf5045f.0",
|
|
34
34
|
"superstruct": "^0.16.7",
|
|
35
35
|
"url-join": "^4.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@knapsack/eslint-config-starter": "4.99.
|
|
39
|
-
"@knapsack/hasura-gql-client": "4.99.
|
|
40
|
-
"@knapsack/types": "4.99.
|
|
41
|
-
"@knapsack/typescript-config-starter": "4.99.
|
|
38
|
+
"@knapsack/eslint-config-starter": "4.99.3--canary.7934.cf5045f.0",
|
|
39
|
+
"@knapsack/hasura-gql-client": "4.99.3--canary.7934.cf5045f.0",
|
|
40
|
+
"@knapsack/types": "4.99.3--canary.7934.cf5045f.0",
|
|
41
|
+
"@knapsack/typescript-config-starter": "4.99.3--canary.7934.cf5045f.0",
|
|
42
42
|
"@types/node": "^24.13.2",
|
|
43
43
|
"@types/url-join": "^4.0.3",
|
|
44
44
|
"eslint": "^9.20.0",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"directory": "libs/core",
|
|
56
56
|
"type": "git"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "cf5045fa3bc1063e27de4757eac3c3be5de53bf7"
|
|
59
59
|
}
|