@mat3ra/esse 2024.4.8-6 → 2024.4.19-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/.eslintrc.json +1 -1
- package/compile_ts.ts +1 -1
- package/dist/js/scripts/compileTs.js +21 -11
- package/dist/js/types.d.ts +32943 -0
- package/dist/js/types.js +21 -0
- package/package.json +2 -2
- package/src/js/scripts/compileTs.ts +1 -0
- package/dist/js/types.ts +0 -37307
package/dist/js/types.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** Schema dist/js/schema/3pse/db/nist_jarvis/2024.3.13/atoms.json */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Action = exports.Type = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* The type of the message to distinguish the direction of the message.
|
|
7
|
+
*/
|
|
8
|
+
var Type;
|
|
9
|
+
(function (Type) {
|
|
10
|
+
Type["fromIframeToHost"] = "from-iframe-to-host";
|
|
11
|
+
Type["fromHostToIframe"] = "from-host-to-iframe";
|
|
12
|
+
})((Type = exports.Type || (exports.Type = {})));
|
|
13
|
+
/**
|
|
14
|
+
* The action to be performed upon receiving the message.
|
|
15
|
+
*/
|
|
16
|
+
var Action;
|
|
17
|
+
(function (Action) {
|
|
18
|
+
Action["setData"] = "set-data";
|
|
19
|
+
Action["getData"] = "get-data";
|
|
20
|
+
Action["info"] = "info";
|
|
21
|
+
})((Action = exports.Action || (exports.Action = {})));
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/esse",
|
|
3
|
-
"version": "2024.4.
|
|
3
|
+
"version": "2024.4.19-0",
|
|
4
4
|
"description": "Mat3ra's Excellent Source of Schemas and Examples (ESSE) for Digital Materials R&D",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"transpile": "tsc -p tsconfig-transpile.json",
|
|
7
7
|
"build-schemas": "BUILD_ASSETS=true BUILD_PYTHON_MODULES=true BUILD_PATH='./dist/js' ts-node build_schemas.ts",
|
|
8
8
|
"compile-types": "ts-node compile_ts.ts",
|
|
9
|
-
"transpile-and-build-assets": "npm run
|
|
9
|
+
"transpile-and-build-assets": "npm run build-schemas && npm run compile-types && npm run transpile",
|
|
10
10
|
"test": "npm run build-schemas && nyc --reporter=text mocha --recursive --timeout 15000 --bail tests/js",
|
|
11
11
|
"test-only": "nyc --reporter=text mocha --recursive --bail tests/js",
|
|
12
12
|
"lint": "eslint src/js && prettier --write src/js",
|
|
@@ -76,6 +76,7 @@ export default async function compileTS(schemaPath: string, savePath: string) {
|
|
|
76
76
|
const compiledSchema = await compile(schema, schema.title || "", {
|
|
77
77
|
unreachableDefinitions: true,
|
|
78
78
|
additionalProperties: false,
|
|
79
|
+
enableConstEnums: false,
|
|
79
80
|
bannerComment: `/** Schema ${filePath} */`,
|
|
80
81
|
});
|
|
81
82
|
|