ord-schema 0.8.2 → 0.9.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/index.d.ts +6 -7
- package/index.js +55 -2
- package/package.json +9 -3
- package/dist/main.js +0 -1
- package/proto/dataset_pb.test.js +0 -41
- package/proto/reaction_pb.test.js +0 -26
- package/proto/test_pb.d.ts +0 -295
- package/proto/test_pb.js +0 -2111
- package/webpack.config.js +0 -19
package/index.d.ts
CHANGED
|
@@ -14,10 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
17
|
+
// compile_proto_wrappers.sh writes index.js, which assigns module.exports from these same two
|
|
18
|
+
// modules, so their names are this module's named exports. TypeScript synthesizes a default
|
|
19
|
+
// import from them where the consumer's settings allow one; declaring a default would claim
|
|
20
|
+
// a `default` property the JavaScript does not have.
|
|
21
|
+
export * from './proto/dataset_pb';
|
|
22
|
+
export * from './proto/reaction_pb';
|
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Open Reaction Database Project Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -19,3 +19,56 @@ module.exports = {
|
|
|
19
19
|
...require('./proto/dataset_pb'),
|
|
20
20
|
...require('./proto/reaction_pb'),
|
|
21
21
|
};
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
Amount,
|
|
24
|
+
Analysis,
|
|
25
|
+
Compound,
|
|
26
|
+
CompoundIdentifier,
|
|
27
|
+
CompoundPreparation,
|
|
28
|
+
Concentration,
|
|
29
|
+
CrudeComponent,
|
|
30
|
+
Current,
|
|
31
|
+
Data,
|
|
32
|
+
Dataset,
|
|
33
|
+
DatasetExample,
|
|
34
|
+
DateTime,
|
|
35
|
+
ElectrochemistryConditions,
|
|
36
|
+
FloatValue,
|
|
37
|
+
FlowConditions,
|
|
38
|
+
FlowRate,
|
|
39
|
+
IlluminationConditions,
|
|
40
|
+
Length,
|
|
41
|
+
Mass,
|
|
42
|
+
Moles,
|
|
43
|
+
Percentage,
|
|
44
|
+
Person,
|
|
45
|
+
Pressure,
|
|
46
|
+
PressureConditions,
|
|
47
|
+
ProductCompound,
|
|
48
|
+
ProductMeasurement,
|
|
49
|
+
Reaction,
|
|
50
|
+
ReactionConditions,
|
|
51
|
+
ReactionIdentifier,
|
|
52
|
+
ReactionInput,
|
|
53
|
+
ReactionNotes,
|
|
54
|
+
ReactionObservation,
|
|
55
|
+
ReactionOutcome,
|
|
56
|
+
ReactionProvenance,
|
|
57
|
+
ReactionRole,
|
|
58
|
+
ReactionSetup,
|
|
59
|
+
ReactionWorkup,
|
|
60
|
+
RecordEvent,
|
|
61
|
+
StirringConditions,
|
|
62
|
+
Temperature,
|
|
63
|
+
TemperatureConditions,
|
|
64
|
+
Texture,
|
|
65
|
+
Time,
|
|
66
|
+
UnmeasuredAmount,
|
|
67
|
+
Vessel,
|
|
68
|
+
VesselAttachment,
|
|
69
|
+
VesselMaterial,
|
|
70
|
+
VesselPreparation,
|
|
71
|
+
Voltage,
|
|
72
|
+
Volume,
|
|
73
|
+
Wavelength,
|
|
74
|
+
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ord-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Schema for the Open Reaction Database",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"index.js",
|
|
8
|
+
"index.d.ts",
|
|
9
|
+
"proto/*_pb.js",
|
|
10
|
+
"proto/*_pb.d.ts",
|
|
11
|
+
"!proto/test_pb.*"
|
|
12
|
+
],
|
|
6
13
|
"scripts": {
|
|
7
14
|
"build": "webpack",
|
|
8
15
|
"test": "jest"
|
|
@@ -19,12 +26,11 @@
|
|
|
19
26
|
},
|
|
20
27
|
"homepage": "https://open-reaction-database.org",
|
|
21
28
|
"dependencies": {
|
|
29
|
+
"@types/google-protobuf": "^3.15.12",
|
|
22
30
|
"google-protobuf": "<3.20"
|
|
23
31
|
},
|
|
24
32
|
"devDependencies": {
|
|
25
|
-
"@types/google-protobuf": "^3.15.12",
|
|
26
33
|
"jest": "^29.3.1",
|
|
27
|
-
"ts-protoc-gen": "^0.15.0",
|
|
28
34
|
"webpack": "^5.75.0",
|
|
29
35
|
"webpack-cli": "^5.0.1"
|
|
30
36
|
}
|