state-machine-cat 12.0.1 → 12.0.2

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.
Files changed (2) hide show
  1. package/dist/version.mjs +1 -1
  2. package/package.json +8 -88
package/dist/version.mjs CHANGED
@@ -1 +1 @@
1
- export const version = "12.0.1";
1
+ export const version = "12.0.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "state-machine-cat",
3
- "version": "12.0.1",
3
+ "version": "12.0.2",
4
4
  "description": "write beautiful state charts",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -11,6 +11,9 @@
11
11
  }
12
12
  ]
13
13
  },
14
+ "imports": {
15
+ "#*": "./src/*"
16
+ },
14
17
  "sideEffects": [
15
18
  "dist/render/smcat/smcat.template.js",
16
19
  "dist/render/dot/dot.states.template.js",
@@ -18,51 +21,6 @@
18
21
  "dist/render/scxml/scxml.states.template.js",
19
22
  "dist/render/scxml/scxml.template.js"
20
23
  ],
21
- "scripts": {
22
- "build": "make clean dist pages cli-build && rm -rf dist && tsc",
23
- "check": "run-s depcruise lint test:cover",
24
- "depcruise": "dependency-cruise bin src test types tools --config config/dependency-cruiser/base.mjs",
25
- "depcruise:graph": "run-s depcruise:graph:doc:archi depcruise:graph:doc:deps depcruise:graph:doc:flat-deps",
26
- "depcruise:graph:doc:archi": "dependency-cruise bin src --config config/dependency-cruiser/graph.mjs --output-type archi | dot -T svg | tee docs/dependency-cruiser-archi-graph.svg | depcruise-wrap-stream-in-html > docs/dependency-cruiser-archi-graph.html",
27
- "depcruise:graph:doc:deps": "dependency-cruise bin src --config config/dependency-cruiser/graph.mjs --output-type dot | dot -T svg | tee docs/dependency-cruiser-graph.svg | depcruise-wrap-stream-in-html > docs/dependency-cruiser-graph.html",
28
- "depcruise:graph:doc:flat-deps": "dependency-cruise bin src --config config/dependency-cruiser/graph.mjs --output-type flat | dot -T svg | tee docs/dependency-cruiser-graph-flat-dot.svg | depcruise-wrap-stream-in-html > docs/dependency-cruiser-graph-flat-dot.html",
29
- "depcruise:graph:dev": "dependency-cruise bin src --config config/dependency-cruiser/graph.mjs --output-type dot --prefix vscode://file/$(pwd)/ --highlight \"$(watskeburt main)\"| dot -Tsvg | depcruise-wrap-stream-in-html | browser",
30
- "depcruise:graph:dev:flat": "dependency-cruise bin src --config config/dependency-cruiser/graph.mjs --output-type flat --prefix vscode://file/$(pwd)/ --highlight \"$(watskeburt main)\"| twopi -Tsvg | depcruise-wrap-stream-in-html | browser",
31
- "depcruise:view-report": "dependency-cruise bin src test types tools --config config/dependency-cruiser/base.mjs --output-type err-html --prefix vscode://file/$(pwd)/ | browser",
32
- "depcruise:github-actions:markdown": "dependency-cruise bin src test types tools --config config/dependency-cruiser/base.mjs --output-type markdown",
33
- "depcruise:github-actions:mermaid": "dependency-cruise bin src --config config/dependency-cruiser/graph.mjs --output-type mermaid",
34
- "depcruise:github-actions:mermaid:affected": "dependency-cruise bin src test types tools --no-cache --config config/dependency-cruiser/base.mjs --output-type mermaid --reaches \"$(watskeburt $SHA -T regex)\"",
35
- "format": "prettier --cache --log-level warn --write \"bin/*.mjs\" \"{src,test}/**/*.{js,mjs}\" \"{config,test}/**/*.{js,json}\" \"tools/*.{js,mjs,json}\" \"{src,types}/**/*.{ts,mts}\" \"*.{json,yml,md}\" \"docs/{smcat-online-interpreter.js,*.md}\"",
36
- "format:check": "prettier --cache --check \"bin/*.mjs\" \"{src,test}/**/*.{js,mjs}\" \"{config,test}/**/*.{js,json}\" \"tools/*.{js,mjs,json}\" \"{src,types}/**/*.{ts,mts}\" \"*.{json,yml,md}\" \"docs/{smcat-online-interpreter.js,*.md}\"",
37
- "lint": "run-p lint:eslint format:check lint:types",
38
- "lint:eslint": "eslint --cache --cache-location node_modules/.cache/eslint/cache.json --color src test config",
39
- "lint:types": "run-p lint:types:*",
40
- "lint:types:tsc": "tsc --noEmit --strict --types --noUnusedLocals --noUnusedParameters --pretty types/*.d.ts src/cli/*.d.ts src/parse/scxml/*.d.ts",
41
- "lint:types:eslint": "eslint types/*.d.ts src/cli/*.d.ts src/parse/scxml/*.d.ts",
42
- "lint:eslint:clear-caches": "rm -rf node_modules/.cache/eslint/",
43
- "lint:fix": "run-s lint:fix:eslint format lint:fix:types",
44
- "lint:fix:eslint": "eslint --cache --cache-location node_modules/.cache/eslint/cache.json --fix --color src test config",
45
- "lint:fix:types": "eslint --fix types/*.d.ts src/cli/*.d.ts src/cli/*.d.ts src/parse/scxml/*.d.ts",
46
- "prepare": "husky install",
47
- "scm:push": "run-p --aggregate-output scm:push:*",
48
- "scm:push:github": "run-p --aggregate-output scm:push:github:*",
49
- "scm:push:github:commits": "git push",
50
- "scm:push:github:tags": "git push --tags",
51
- "scm:push:gitlab-mirror": "run-p --aggregate-output scm:push:gitlab-mirror:*",
52
- "scm:push:gitlab-mirror:commits": "git push gitlab-mirror",
53
- "scm:push:gitlab-mirror:tags": "git push --tags gitlab-mirror",
54
- "scm:push:bitbucket-mirror": "run-p --aggregate-output scm:push:bitbucket-mirror:*",
55
- "scm:push:bitbucket-mirror:commits": "git push bitbucket-mirror",
56
- "scm:push:bitbucket-mirror:tags": "git push --tags bitbucket-mirror",
57
- "scm:stage": "git add .",
58
- "test": "mocha --no-warnings",
59
- "test:cover": "NODE_OPTIONS=--no-warnings c8 mocha",
60
- "update-dependencies": "run-s upem:update upem:install lint:eslint:clear-caches lint:fix check",
61
- "upem-outdated": "npm outdated --json --long | upem --dry-run",
62
- "upem:install": "npm install",
63
- "upem:update": "npm outdated --json --long | upem | pbcopy && pbpaste",
64
- "version": "run-s build depcruise:graph scm:stage"
65
- },
66
24
  "files": [
67
25
  "bin/",
68
26
  "dist/",
@@ -90,63 +48,25 @@
90
48
  "state-machine-cat": "bin/smcat.mjs"
91
49
  },
92
50
  "dependencies": {
93
- "@hpcc-js/wasm": "2.14.0",
51
+ "@hpcc-js/wasm": "2.14.1",
94
52
  "ajv": "8.12.0",
95
- "commander": "11.0.0",
53
+ "commander": "11.1.0",
96
54
  "fast-xml-parser": "4.3.2",
97
55
  "handlebars": "4.7.8",
98
56
  "he": "1.2.0",
99
57
  "semver": "^7.5.4",
100
58
  "traverse": "0.6.7"
101
59
  },
102
- "devDependencies": {
103
- "@types/he": "1.2.1",
104
- "@types/mocha": "10.0.2",
105
- "@typescript-eslint/eslint-plugin": "6.7.4",
106
- "@typescript-eslint/parser": "6.7.4",
107
- "c8": "8.0.1",
108
- "dependency-cruiser": "14.1.0",
109
- "esbuild": "0.19.4",
110
- "eslint": "8.51.0",
111
- "eslint-config-moving-meadow": "4.0.2",
112
- "eslint-config-prettier": "9.0.0",
113
- "eslint-plugin-budapestian": "5.0.1",
114
- "eslint-plugin-eslint-comments": "3.2.0",
115
- "eslint-plugin-import": "2.28.1",
116
- "eslint-plugin-mocha": "10.2.0",
117
- "eslint-plugin-node": "11.1.0",
118
- "eslint-plugin-security": "1.7.1",
119
- "eslint-plugin-unicorn": "48.0.1",
120
- "husky": "8.0.3",
121
- "is-pdf": "1.0.0",
122
- "is-png": "3.0.1",
123
- "lint-staged": "14.0.1",
124
- "mocha": "10.2.0",
125
- "npm-run-all": "4.1.5",
126
- "peggy": "3.0.2",
127
- "prettier": "3.0.3",
128
- "query-string": "8.1.0",
129
- "ts-node": "10.9.1",
130
- "typescript": "5.2.2",
131
- "upem": "9.0.2",
132
- "watskeburt": "2.0.0",
133
- "xml-name-validator": "4.0.0"
134
- },
135
60
  "engines": {
136
61
  "node": "^18.17||>=20"
137
62
  },
138
63
  "types": "types/state-machine-cat.d.ts",
139
- "browserslist": [
140
- "last 1 Chrome version",
141
- "last 1 Firefox version",
142
- "last 1 Safari version"
143
- ],
144
64
  "homepage": "https://state-machine-cat.js.org",
145
65
  "repository": {
146
66
  "type": "git",
147
- "url": "git+https://github.com/sverweij/state-machine-cat"
67
+ "url": "git+https://github.com/sverweij/state-machine-cat.git"
148
68
  },
149
69
  "bugs": {
150
70
  "url": "https://github.com/sverweij/state-machine-cat/issues"
151
71
  }
152
- }
72
+ }