@takeshape/schema 9.62.1 → 9.62.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/builtin-schema.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FormMap, ShapeMap } from './project-schema';
|
|
1
|
+
import { FormMap, ShapeJSON, ShapeMap } from './project-schema';
|
|
2
2
|
import { Content } from './types/types';
|
|
3
3
|
export declare function isAsset(content: Content): boolean;
|
|
4
4
|
export declare function getAssetS3Path(content: Content): string | undefined;
|
|
5
5
|
export declare function setAssetS3Path(content: Content, path: string): void;
|
|
6
|
+
export declare const jsonShape: ShapeJSON;
|
|
6
7
|
export declare const builtInShapes: ShapeMap;
|
|
7
8
|
export declare const builtInForms: FormMap;
|
|
8
9
|
//# sourceMappingURL=builtin-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-schema.d.ts","sourceRoot":"","sources":["../../src/builtin-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"builtin-schema.d.ts","sourceRoot":"","sources":["../../src/builtin-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAEtC,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAID,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEnE;AAED,eAAO,MAAM,SAAS,EAAE,SAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QA8U3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAsN1B,CAAC"}
|
package/dist/builtin-schema.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.builtInShapes = exports.builtInForms = void 0;
|
|
7
7
|
exports.getAssetS3Path = getAssetS3Path;
|
|
8
8
|
exports.isAsset = isAsset;
|
|
9
|
+
exports.jsonShape = void 0;
|
|
9
10
|
exports.setAssetS3Path = setAssetS3Path;
|
|
10
11
|
|
|
11
12
|
function isAsset(content) {
|
|
@@ -22,7 +23,15 @@ function setAssetS3Path(content, path) {
|
|
|
22
23
|
content[ASSET_PATH] = path;
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
const jsonShape = {
|
|
27
|
+
id: 'JSON',
|
|
28
|
+
name: 'JSON',
|
|
29
|
+
title: 'JSON',
|
|
30
|
+
schema: {}
|
|
31
|
+
};
|
|
32
|
+
exports.jsonShape = jsonShape;
|
|
25
33
|
const builtInShapes = {
|
|
34
|
+
JSON: jsonShape,
|
|
26
35
|
TSRelationship: {
|
|
27
36
|
id: 'TSRelationship',
|
|
28
37
|
name: 'TSRelationship',
|
package/es/builtin-schema.js
CHANGED
|
@@ -8,7 +8,14 @@ export function getAssetS3Path(content) {
|
|
|
8
8
|
export function setAssetS3Path(content, path) {
|
|
9
9
|
content[ASSET_PATH] = path;
|
|
10
10
|
}
|
|
11
|
+
export const jsonShape = {
|
|
12
|
+
id: 'JSON',
|
|
13
|
+
name: 'JSON',
|
|
14
|
+
title: 'JSON',
|
|
15
|
+
schema: {}
|
|
16
|
+
};
|
|
11
17
|
export const builtInShapes = {
|
|
18
|
+
JSON: jsonShape,
|
|
12
19
|
TSRelationship: {
|
|
13
20
|
id: 'TSRelationship',
|
|
14
21
|
name: 'TSRelationship',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "9.62.
|
|
3
|
+
"version": "9.62.4",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"p-reduce": "^2.1.0",
|
|
29
29
|
"semver": "^7.3.2",
|
|
30
30
|
"tiny-invariant": "^1.2.0",
|
|
31
|
-
"@takeshape/errors": "9.62.
|
|
32
|
-
"@takeshape/json-schema": "9.62.
|
|
33
|
-
"@takeshape/util": "9.62.
|
|
31
|
+
"@takeshape/errors": "9.62.4",
|
|
32
|
+
"@takeshape/json-schema": "9.62.4",
|
|
33
|
+
"@takeshape/util": "9.62.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"meow": "^9.0.0",
|
|
47
47
|
"p-map": "^5.0.0",
|
|
48
48
|
"shortid": "^2.2.15",
|
|
49
|
-
"@takeshape/typescript-jest-junit-reporter": "9.62.
|
|
49
|
+
"@takeshape/typescript-jest-junit-reporter": "9.62.4"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=16"
|