jikan0 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "jikan0",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
- "@jikan0/fsm": "1.2.0",
7
- "@jikan0/adapters": "1.2.0"
6
+ "@jikan0/fsm": "1.3.0",
7
+ "@jikan0/adapters": "1.3.0"
8
8
  },
9
9
  "publishConfig": {
10
10
  "access": "public"
package/src/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { empty, State, QueueItem, isEmpty, current, currentNE, tick, push, pop, restart, reset, } from '@jikan0/fsm';
2
+ export { StatefulSimulation as Timer } from '@jikan0/adapters';
package/src/index.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Timer = exports.reset = exports.restart = exports.pop = exports.push = exports.tick = exports.currentNE = exports.current = exports.isEmpty = exports.empty = void 0;
4
+ var fsm_1 = require("@jikan0/fsm");
5
+ Object.defineProperty(exports, "empty", { enumerable: true, get: function () { return fsm_1.empty; } });
6
+ Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return fsm_1.isEmpty; } });
7
+ Object.defineProperty(exports, "current", { enumerable: true, get: function () { return fsm_1.current; } });
8
+ Object.defineProperty(exports, "currentNE", { enumerable: true, get: function () { return fsm_1.currentNE; } });
9
+ Object.defineProperty(exports, "tick", { enumerable: true, get: function () { return fsm_1.tick; } });
10
+ Object.defineProperty(exports, "push", { enumerable: true, get: function () { return fsm_1.push; } });
11
+ Object.defineProperty(exports, "pop", { enumerable: true, get: function () { return fsm_1.pop; } });
12
+ Object.defineProperty(exports, "restart", { enumerable: true, get: function () { return fsm_1.restart; } });
13
+ Object.defineProperty(exports, "reset", { enumerable: true, get: function () { return fsm_1.reset; } });
14
+ var adapters_1 = require("@jikan0/adapters");
15
+ Object.defineProperty(exports, "Timer", { enumerable: true, get: function () { return adapters_1.StatefulSimulation; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../facade/src/index.ts"],"names":[],"mappings":";;;AAAA,mCAYqB;AAXnB,4FAAA,KAAK,OAAA;AAGL,8FAAA,OAAO,OAAA;AACP,8FAAA,OAAO,OAAA;AACP,gGAAA,SAAS,OAAA;AACT,2FAAA,IAAI,OAAA;AACJ,2FAAA,IAAI,OAAA;AACJ,0FAAA,GAAG,OAAA;AACH,8FAAA,OAAO,OAAA;AACP,4FAAA,KAAK,OAAA;AAGP,6CAA+D;AAAtD,iGAAA,kBAAkB,OAAS"}
package/.eslintrc.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "extends": ["../.eslintrc.json"],
3
- "ignorePatterns": ["!**/*"],
4
- "overrides": [
5
- {
6
- "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
- "rules": {}
8
- },
9
- {
10
- "files": ["*.ts", "*.tsx"],
11
- "rules": {}
12
- },
13
- {
14
- "files": ["*.js", "*.jsx"],
15
- "rules": {}
16
- },
17
- {
18
- "files": ["*.json"],
19
- "parser": "jsonc-eslint-parser",
20
- "rules": {
21
- "@nx/dependency-checks": "error"
22
- }
23
- }
24
- ]
25
- }
package/jest.config.ts DELETED
@@ -1,11 +0,0 @@
1
- /* eslint-disable */
2
- export default {
3
- displayName: 'facade',
4
- preset: '../jest.preset.js',
5
- testEnvironment: 'node',
6
- transform: {
7
- '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
8
- },
9
- moduleFileExtensions: ['ts', 'js', 'html'],
10
- coverageDirectory: '../coverage/facade',
11
- };
package/project.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "name": "facade",
3
- "$schema": "../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "facade/src",
5
- "projectType": "library",
6
- "targets": {
7
- "build": {
8
- "executor": "@nx/js:tsc",
9
- "outputs": ["{options.outputPath}"],
10
- "options": {
11
- "outputPath": "dist/facade",
12
- "main": "facade/src/index.ts",
13
- "tsConfig": "facade/tsconfig.lib.json",
14
- "assets": ["facade/*.md"]
15
- }
16
- },
17
- "publish": {
18
- "command": "node tools/scripts/publish.mjs facade {args.ver} {args.tag} {args.otp}",
19
- "dependsOn": ["build"]
20
- },
21
- "lint": {
22
- "executor": "@nx/eslint:lint",
23
- "outputs": ["{options.outputFile}"]
24
- },
25
- "test": {
26
- "executor": "@nx/jest:jest",
27
- "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
28
- "options": {
29
- "jestConfig": "facade/jest.config.ts"
30
- }
31
- }
32
- },
33
- "tags": []
34
- }
package/src/index.ts DELETED
@@ -1,15 +0,0 @@
1
- export {
2
- empty,
3
- State,
4
- QueueItem,
5
- isEmpty,
6
- current,
7
- currentNE,
8
- tick,
9
- push,
10
- pop,
11
- restart,
12
- reset,
13
- } from '@jikan0/fsm';
14
-
15
- export { StatefulSimulation as Timer } from '@jikan0/adapters';
package/tsconfig.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "extends": "../tsconfig.base.json",
3
- "compilerOptions": {
4
- "module": "commonjs",
5
- "forceConsistentCasingInFileNames": true,
6
- "strict": true,
7
- "noImplicitOverride": true,
8
- "noPropertyAccessFromIndexSignature": true,
9
- "noImplicitReturns": true,
10
- "noFallthroughCasesInSwitch": true
11
- },
12
- "files": [],
13
- "include": [],
14
- "references": [
15
- {
16
- "path": "./tsconfig.lib.json"
17
- },
18
- {
19
- "path": "./tsconfig.spec.json"
20
- }
21
- ]
22
- }
package/tsconfig.lib.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../dist/out-tsc",
5
- "declaration": true,
6
- "types": ["node"]
7
- },
8
- "include": ["src/**/*.ts"],
9
- "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
10
- }
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../dist/out-tsc",
5
- "module": "commonjs",
6
- "types": ["jest", "node"]
7
- },
8
- "include": [
9
- "jest.config.ts",
10
- "src/**/*.test.ts",
11
- "src/**/*.spec.ts",
12
- "src/**/*.d.ts"
13
- ]
14
- }