proskomma-core 0.9.19 → 0.9.21
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 +4782 -0
- package/dist/index.mjs +39926 -0
- package/package.json +20 -16
- package/.eslintrc.json +0 -79
- package/.gitattributes +0 -2
- package/dist/bundle.js +0 -1
- package/dist/index.cjs +0 -1
- package/dist/module.mjs +0 -15888
- package/index.cjs +0 -11
package/package.json
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proskomma-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.21",
|
|
4
4
|
"description": "A Scripture Runtime Engine",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/module.mjs",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"require": "./dist/index.js",
|
|
13
|
+
"import": "./dist/index.mjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
9
16
|
"scripts": {
|
|
10
|
-
"build": "rm -fr dist &&
|
|
17
|
+
"build": "rm -fr dist && vite build",
|
|
11
18
|
"test": "export PKSRC=dist && bash -c \"tape -r @babel/register test/code/**/*.cjs | node_modules/tap-summary/bin/cmd.js\"",
|
|
19
|
+
"win:test": "set PKSRC=dist&& bash -c \"tape -r @babel/register test/code/**/*.cjs | node_modules/tap-summary/bin/cmd.js\"",
|
|
12
20
|
"rawTest": "export PKSRC=dist && bash -c \"tape -r @babel/register test/code/*.cjs\"",
|
|
13
21
|
"oneTest": "bash -c \"tape -r @babel/register test/code/$TESTSCRIPT.cjs\"",
|
|
14
|
-
"prepublishOnly": "
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
15
23
|
},
|
|
16
24
|
"repository": {
|
|
17
25
|
"type": "git",
|
|
@@ -32,6 +40,7 @@
|
|
|
32
40
|
},
|
|
33
41
|
"homepage": "https://github.com/Proskomma/proskomma-core#readme",
|
|
34
42
|
"dependencies": {
|
|
43
|
+
"@babel/preset-env": "^7.20.2",
|
|
35
44
|
"@graphql-tools/schema": "^9.0.3",
|
|
36
45
|
"async-mutex": "^0.4.0",
|
|
37
46
|
"base-64": "^1.0.0",
|
|
@@ -55,19 +64,14 @@
|
|
|
55
64
|
"devDependencies": {
|
|
56
65
|
"@babel/eslint-parser": "^7.19.1",
|
|
57
66
|
"@babel/register": "^7.18.9",
|
|
67
|
+
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
58
68
|
"events": "^3.3.0",
|
|
59
69
|
"parcel": "^2.8.3",
|
|
60
70
|
"process": "^0.11.10",
|
|
61
71
|
"stream-browserify": "^3.0.0",
|
|
62
72
|
"tap-summary": "^4.0.0",
|
|
63
|
-
"tape": "^5.6.0"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"main": {
|
|
67
|
-
"optimize": true
|
|
68
|
-
},
|
|
69
|
-
"browser": {
|
|
70
|
-
"optimize": true
|
|
71
|
-
}
|
|
73
|
+
"tape": "^5.6.0",
|
|
74
|
+
"typescript": "^4.9.5",
|
|
75
|
+
"vite": "^4.1.4"
|
|
72
76
|
}
|
|
73
77
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"eslint:recommended",
|
|
4
|
-
"plugin:import/errors",
|
|
5
|
-
"plugin:import/warnings",
|
|
6
|
-
"prettier"
|
|
7
|
-
],
|
|
8
|
-
"parser": "@babel/eslint-parser",
|
|
9
|
-
"parserOptions": {
|
|
10
|
-
"ecmaVersion": 2018,
|
|
11
|
-
"ecmaFeatures": {
|
|
12
|
-
"impliedStrict": true,
|
|
13
|
-
"classes": true
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"env": {
|
|
17
|
-
"browser": true,
|
|
18
|
-
"node": true,
|
|
19
|
-
"es6": true
|
|
20
|
-
},
|
|
21
|
-
"plugins": [
|
|
22
|
-
"prettier",
|
|
23
|
-
"import",
|
|
24
|
-
"jsdoc"
|
|
25
|
-
],
|
|
26
|
-
"rules": {
|
|
27
|
-
"array-callback-return": "error",
|
|
28
|
-
"no-await-in-loop": "error",
|
|
29
|
-
"object-curly-newline": ["error", { "multiline": true, "minProperties": 3 }],
|
|
30
|
-
"brace-style": ["error", "1tbs", {"allowSingleLine": false}],
|
|
31
|
-
"no-return-await": "error",
|
|
32
|
-
"quote-props": ["error", "consistent"],
|
|
33
|
-
"require-await": "error",
|
|
34
|
-
"no-async-promise-executor": "error",
|
|
35
|
-
"no-throw-literal": "warn",
|
|
36
|
-
"no-nested-ternary": "error",
|
|
37
|
-
"no-duplicate-imports": ["error", {"includeExports": false}],
|
|
38
|
-
"import/order": ["error", {"groups": [ "builtin", "external", "internal", "parent", "sibling", "index" ]}],
|
|
39
|
-
"import/first": "off",
|
|
40
|
-
"import/default": "off",
|
|
41
|
-
"import/namespace": "off",
|
|
42
|
-
"indent": ["error", 2],
|
|
43
|
-
"no-undef": "error",
|
|
44
|
-
"no-unused-vars": "error",
|
|
45
|
-
"no-debugger": "warn",
|
|
46
|
-
"curly": "error",
|
|
47
|
-
"semi": ["error", "always", {"omitLastInOneLineBlock": true}],
|
|
48
|
-
"semi-style": ["error", "last"],
|
|
49
|
-
"no-console": "off",
|
|
50
|
-
"no-prototype-builtins": "off",
|
|
51
|
-
"object-curly-spacing": ["error", "always"],
|
|
52
|
-
"quotes": ["error", "single", {"allowTemplateLiterals": true}],
|
|
53
|
-
"comma-dangle": ["error", "always-multiline"],
|
|
54
|
-
"keyword-spacing": "error",
|
|
55
|
-
"no-multi-spaces": "error",
|
|
56
|
-
"no-trailing-spaces": "error",
|
|
57
|
-
"arrow-body-style": ["error", "as-needed"],
|
|
58
|
-
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
|
|
59
|
-
"no-return-assign": "error",
|
|
60
|
-
"padding-line-between-statements": [
|
|
61
|
-
"error",
|
|
62
|
-
{ "blankLine": "always", "prev": "*", "next": ["function", "if", "for", "while", "switch", "try" ] },
|
|
63
|
-
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": ["block", "block-like", "multiline-expression"] },
|
|
64
|
-
{ "blankLine": "always", "prev": ["block", "block-like", "multiline-expression"] , "next":["const", "let", "var"]}
|
|
65
|
-
],
|
|
66
|
-
"padded-blocks": ["error", "never"],
|
|
67
|
-
"no-unused-expressions": "error",
|
|
68
|
-
"func-names":"off",
|
|
69
|
-
"no-underscore-dangle": "off",
|
|
70
|
-
"consistent-return": "off",
|
|
71
|
-
"radix": "off",
|
|
72
|
-
"guard-for-in": "off",
|
|
73
|
-
"no-mixed-operators": "off",
|
|
74
|
-
"eqeqeq": "off",
|
|
75
|
-
"jsdoc/require-returns-type": "warn",
|
|
76
|
-
"jsdoc/valid-types": "warn"
|
|
77
|
-
},
|
|
78
|
-
"settings": {}
|
|
79
|
-
}
|
package/.gitattributes
DELETED