@vsirotin/ts-stop 0.5.1
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/README.md +173 -0
- package/lib/DefaultState.d.ts +9 -0
- package/lib/DefaultState.d.ts.map +1 -0
- package/lib/DefaultState.js +15 -0
- package/lib/DefaultState.js.map +1 -0
- package/lib/FiniteStateMachine.d.ts +222 -0
- package/lib/FiniteStateMachine.d.ts.map +1 -0
- package/lib/FiniteStateMachine.js +302 -0
- package/lib/FiniteStateMachine.js.map +1 -0
- package/lib/IStateWithActions.d.ts +18 -0
- package/lib/IStateWithActions.d.ts.map +1 -0
- package/lib/IStateWithActions.js +3 -0
- package/lib/IStateWithActions.js.map +1 -0
- package/lib/IStateWithOutputSignal.d.ts +4 -0
- package/lib/IStateWithOutputSignal.d.ts.map +1 -0
- package/lib/IStateWithOutputSignal.js +3 -0
- package/lib/IStateWithOutputSignal.js.map +1 -0
- package/lib/MatrixBasedStateMachine.d.ts +108 -0
- package/lib/MatrixBasedStateMachine.d.ts.map +1 -0
- package/lib/MatrixBasedStateMachine.js +132 -0
- package/lib/MatrixBasedStateMachine.js.map +1 -0
- package/lib/TransitionMatrix.d.ts +61 -0
- package/lib/TransitionMatrix.d.ts.map +1 -0
- package/lib/TransitionMatrix.js +104 -0
- package/lib/TransitionMatrix.js.map +1 -0
- package/lib/esm/DefaultState.js +10 -0
- package/lib/esm/FiniteStateMachine.js +297 -0
- package/lib/esm/IStateWithActions.js +1 -0
- package/lib/esm/IStateWithOutputSignal.js +1 -0
- package/lib/esm/MatrixBasedStateMachine.js +127 -0
- package/lib/esm/TransitionMatrix.js +98 -0
- package/lib/esm/index.js +9 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +26 -0
- package/lib/index.js.map +1 -0
- package/package.json +45 -0
package/lib/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Public API Surface of ts-stop
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./DefaultState"), exports);
|
|
21
|
+
__exportStar(require("./FiniteStateMachine"), exports);
|
|
22
|
+
__exportStar(require("./IStateWithActions"), exports);
|
|
23
|
+
__exportStar(require("./IStateWithOutputSignal"), exports);
|
|
24
|
+
__exportStar(require("./MatrixBasedStateMachine"), exports);
|
|
25
|
+
__exportStar(require("./TransitionMatrix"), exports);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,uDAAqC;AACrC,sDAAoC;AACpC,2DAAyC;AACzC,4DAA0C;AAC1C,qDAAmC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vsirotin/ts-stop",
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "State Oriented Programming library for TypeScript",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"module": "lib/esm/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/index.d.ts",
|
|
11
|
+
"import": "./lib/esm/index.js",
|
|
12
|
+
"require": "./lib/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"lib"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npm run build:cjs && npm run build:esm",
|
|
20
|
+
"build:cjs": "tsc",
|
|
21
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
22
|
+
"test": "jest",
|
|
23
|
+
"test:coverage": "jest --coverage",
|
|
24
|
+
"clean": "rm -rf lib coverage",
|
|
25
|
+
"publish:local": "./scripts/publish-local.sh",
|
|
26
|
+
"pack": "npm run build && npm pack"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"typescript",
|
|
30
|
+
"state-oriented-programming",
|
|
31
|
+
"stop"
|
|
32
|
+
],
|
|
33
|
+
"author": "Viktor Sirotin",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/jest": "^29.5.14",
|
|
37
|
+
"@types/mocha": "^10.0.10",
|
|
38
|
+
"jest": "^29.5.0",
|
|
39
|
+
"ts-jest": "^29.1.0",
|
|
40
|
+
"typescript": "^5.0.0"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
}
|
|
45
|
+
}
|