@lionweb/json 0.8.0-beta.7 → 0.8.0-beta.8
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/types.d.ts +11 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -2
- package/src/types.ts +12 -3
package/dist/types.d.ts
CHANGED
|
@@ -11,25 +11,33 @@ export type LionWebId = string;
|
|
|
11
11
|
* Key of classifier or feature.
|
|
12
12
|
*/
|
|
13
13
|
export type LionWebKey = string;
|
|
14
|
+
/**
|
|
15
|
+
* Serialization version of a chunk
|
|
16
|
+
*/
|
|
17
|
+
export type LionWebSerializationFormatVersion = string;
|
|
18
|
+
/**
|
|
19
|
+
* The version of LionWeb
|
|
20
|
+
*/
|
|
21
|
+
export type LionWebVersion = string;
|
|
14
22
|
/**
|
|
15
23
|
* Pointer to a classifier or feature in a version of a language.
|
|
16
24
|
*/
|
|
17
25
|
export type LionWebJsonMetaPointer = {
|
|
18
26
|
language: LionWebKey;
|
|
19
|
-
version:
|
|
27
|
+
version: LionWebVersion;
|
|
20
28
|
/**
|
|
21
29
|
* The key of the classifier or feature pointed to.
|
|
22
30
|
*/
|
|
23
31
|
key: LionWebKey;
|
|
24
32
|
};
|
|
25
33
|
export type LionWebJsonChunk = {
|
|
26
|
-
serializationFormatVersion:
|
|
34
|
+
serializationFormatVersion: LionWebSerializationFormatVersion;
|
|
27
35
|
languages: LionWebJsonUsedLanguage[];
|
|
28
36
|
nodes: LionWebJsonNode[];
|
|
29
37
|
};
|
|
30
38
|
export type LionWebJsonUsedLanguage = {
|
|
31
39
|
key: LionWebKey;
|
|
32
|
-
version:
|
|
40
|
+
version: LionWebVersion;
|
|
33
41
|
};
|
|
34
42
|
export type LionWebJsonNode = {
|
|
35
43
|
id: LionWebId;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"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C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,WAAW,EAAE,sBAAsB,CAAA;IACnC,QAAQ,EAAE,SAAS,EAAE,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,sBAAsB,CAAA;IACjC,OAAO,EAAE,0BAA0B,EAAE,CAAA;CACxC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAChC;IACE,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B,GACC;IACE,SAAS,EAAE,SAAS,GAAG,IAAI,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lionweb/json",
|
|
3
|
-
"version": "0.8.0-beta.
|
|
3
|
+
"version": "0.8.0-beta.8",
|
|
4
4
|
"description": "TypeScript types for LionWeb JSON",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"prerelease-beta": "npm run prep:pre-release",
|
|
25
25
|
"release-beta": "npm publish --tag beta",
|
|
26
26
|
"prerelease": "npm run prep:pre-release",
|
|
27
|
-
"release": "npm publish"
|
|
27
|
+
"release": "npm publish",
|
|
28
|
+
"publish-local": "npm publish --registry http://localhost:4873 --tag local",
|
|
29
|
+
"unpublish-local": "npm unpublish --force --registry http://localhost:4873",
|
|
30
|
+
"republish-local": "npm unpublish-local && npm publish-local"
|
|
31
|
+
|
|
28
32
|
}
|
|
29
33
|
}
|
package/src/types.ts
CHANGED
|
@@ -14,13 +14,22 @@ export type LionWebId = string
|
|
|
14
14
|
*/
|
|
15
15
|
export type LionWebKey = string
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Serialization version of a chunk
|
|
19
|
+
*/
|
|
20
|
+
export type LionWebSerializationFormatVersion = string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The version of LionWeb
|
|
24
|
+
*/
|
|
25
|
+
export type LionWebVersion = string;
|
|
17
26
|
|
|
18
27
|
/**
|
|
19
28
|
* Pointer to a classifier or feature in a version of a language.
|
|
20
29
|
*/
|
|
21
30
|
export type LionWebJsonMetaPointer = {
|
|
22
31
|
language: LionWebKey
|
|
23
|
-
version:
|
|
32
|
+
version: LionWebVersion
|
|
24
33
|
/**
|
|
25
34
|
* The key of the classifier or feature pointed to.
|
|
26
35
|
*/
|
|
@@ -28,14 +37,14 @@ export type LionWebJsonMetaPointer = {
|
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
export type LionWebJsonChunk = {
|
|
31
|
-
serializationFormatVersion:
|
|
40
|
+
serializationFormatVersion: LionWebSerializationFormatVersion
|
|
32
41
|
languages: LionWebJsonUsedLanguage[]
|
|
33
42
|
nodes: LionWebJsonNode[]
|
|
34
43
|
}
|
|
35
44
|
|
|
36
45
|
export type LionWebJsonUsedLanguage = {
|
|
37
46
|
key: LionWebKey
|
|
38
|
-
version:
|
|
47
|
+
version: LionWebVersion
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
export type LionWebJsonNode = {
|