simple-boot-front 1.0.95 → 1.0.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/README.MD +335 -335
  2. package/SimpleBootFront.d.ts +32 -25
  3. package/SimpleBootFront.js +327 -231
  4. package/decorators/Component.d.ts +11 -11
  5. package/decorators/Component.js +30 -54
  6. package/decorators/Script.d.ts +10 -10
  7. package/decorators/Script.js +31 -31
  8. package/decorators/inject/InjectFrontSituationType.d.ts +3 -0
  9. package/decorators/inject/InjectFrontSituationType.js +7 -0
  10. package/fetch/Fetcher.d.ts +4 -4
  11. package/fetch/Fetcher.js +9 -9
  12. package/lifecycle/OnChangedRender.d.ts +3 -3
  13. package/lifecycle/OnChangedRender.js +2 -2
  14. package/lifecycle/OnDestroy.d.ts +3 -3
  15. package/lifecycle/OnDestroy.js +2 -2
  16. package/lifecycle/OnFinish.d.ts +3 -3
  17. package/lifecycle/OnFinish.js +2 -2
  18. package/lifecycle/OnInit.d.ts +8 -3
  19. package/lifecycle/OnInit.js +2 -2
  20. package/lifecycle/OnInitedChild.d.ts +3 -3
  21. package/lifecycle/OnInitedChild.js +2 -2
  22. package/option/SimFrontOption.d.ts +14 -14
  23. package/option/SimFrontOption.js +45 -45
  24. package/package.json +84 -82
  25. package/script/ScriptRunnable.d.ts +7 -7
  26. package/script/ScriptRunnable.js +22 -22
  27. package/service/CookieService.d.ts +11 -8
  28. package/service/CookieService.js +54 -42
  29. package/service/HttpService.d.ts +3 -3
  30. package/service/HttpService.js +23 -23
  31. package/service/MetaTagService.d.ts +11 -0
  32. package/service/MetaTagService.js +52 -0
  33. package/service/Navigation.d.ts +18 -12
  34. package/service/Navigation.js +117 -75
  35. package/service/ScriptService.d.ts +7 -7
  36. package/service/ScriptService.js +39 -39
  37. package/service/StorageService.d.ts +12 -0
  38. package/service/StorageService.js +67 -0
  39. package/service/view/View.d.ts +6 -6
  40. package/service/view/View.js +29 -29
  41. package/service/view/ViewService.d.ts +7 -7
  42. package/service/view/ViewService.js +46 -46
  43. package/throwable/RouterError.d.ts +4 -4
  44. package/throwable/RouterError.js +27 -27
  45. package/throwable/RouterIntentError.d.ts +4 -4
  46. package/throwable/RouterIntentError.js +27 -27
  47. package/throwable/RouterNotFount.d.ts +4 -4
  48. package/throwable/RouterNotFount.js +27 -27
  49. package/utils/dom/DomUtils.d.ts +0 -13
  50. package/utils/dom/DomUtils.js +0 -45
  51. package/utils/node/NodeUtils.d.ts +0 -10
  52. package/utils/node/NodeUtils.js +0 -25
  53. package/utils/window/LocationUtils.d.ts +0 -8
  54. package/utils/window/LocationUtils.js +0 -34
@@ -1,54 +1,30 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.getComponent = exports.Component = exports.ComponentMetadataKey = exports.componentSelectors = void 0;
19
- var ReflectUtils_1 = require("simple-boot-core/utils/reflect/ReflectUtils");
20
- exports.componentSelectors = new Map();
21
- exports.ComponentMetadataKey = Symbol('Component');
22
- var Component = function (config) {
23
- return function (target) {
24
- if (!config) {
25
- config = {};
26
- }
27
- if (!config.selector) {
28
- config.selector = target.name;
29
- }
30
- exports.componentSelectors.set(config.selector.toLowerCase(), target);
31
- ReflectUtils_1.ReflectUtils.defineMetadata(exports.ComponentMetadataKey, config, target);
32
- return (function (_super) {
33
- __extends(class_1, _super);
34
- function class_1() {
35
- var _this = _super !== null && _super.apply(this, arguments) || this;
36
- _this.__componentInstances = {};
37
- return _this;
38
- }
39
- return class_1;
40
- }(target));
41
- };
42
- };
43
- exports.Component = Component;
44
- var getComponent = function (target) {
45
- if (target && typeof target === 'object') {
46
- target = target.constructor;
47
- }
48
- try {
49
- return ReflectUtils_1.ReflectUtils.getMetadata(exports.ComponentMetadataKey, target);
50
- }
51
- catch (e) {
52
- }
53
- };
54
- exports.getComponent = getComponent;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getComponent = exports.Component = exports.ComponentMetadataKey = exports.componentSelectors = void 0;
4
+ var ReflectUtils_1 = require("simple-boot-core/utils/reflect/ReflectUtils");
5
+ exports.componentSelectors = new Map();
6
+ exports.ComponentMetadataKey = Symbol('Component');
7
+ var Component = function (config) {
8
+ return function (target) {
9
+ if (!config) {
10
+ config = {};
11
+ }
12
+ if (!config.selector) {
13
+ config.selector = target.name;
14
+ }
15
+ ReflectUtils_1.ReflectUtils.defineMetadata(exports.ComponentMetadataKey, config, target);
16
+ exports.componentSelectors.set(config.selector.toLowerCase(), target);
17
+ };
18
+ };
19
+ exports.Component = Component;
20
+ var getComponent = function (target) {
21
+ if (target && typeof target === 'object') {
22
+ target = target.constructor;
23
+ }
24
+ try {
25
+ return ReflectUtils_1.ReflectUtils.getMetadata(exports.ComponentMetadataKey, target);
26
+ }
27
+ catch (e) {
28
+ }
29
+ };
30
+ exports.getComponent = getComponent;
@@ -1,10 +1,10 @@
1
- import { ConstructorType, GenericClassDecorator } from 'simple-boot-core/types/Types';
2
- import { ScriptRunnable } from 'script/ScriptRunnable';
3
- export declare const scripts: Map<string, ConstructorType<ScriptRunnable>>;
4
- export interface ScriptConfig {
5
- name?: string;
6
- using?: (ConstructorType<any>)[];
7
- }
8
- export declare const ScriptMetadataKey: unique symbol;
9
- export declare const Script: (config?: ScriptConfig | undefined) => GenericClassDecorator<ConstructorType<ScriptRunnable>>;
10
- export declare const getScript: (target: ConstructorType<any> | Function | any) => ScriptConfig | undefined;
1
+ import { ConstructorType, GenericClassDecorator } from 'simple-boot-core/types/Types';
2
+ import { ScriptRunnable } from 'script/ScriptRunnable';
3
+ export declare const scripts: Map<string, ConstructorType<ScriptRunnable>>;
4
+ export interface ScriptConfig {
5
+ name?: string;
6
+ using?: (ConstructorType<any>)[];
7
+ }
8
+ export declare const ScriptMetadataKey: unique symbol;
9
+ export declare const Script: (config?: ScriptConfig | undefined) => GenericClassDecorator<ConstructorType<ScriptRunnable>>;
10
+ export declare const getScript: (target: ConstructorType<any> | Function | any) => ScriptConfig | undefined;
@@ -1,31 +1,31 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getScript = exports.Script = exports.ScriptMetadataKey = exports.scripts = void 0;
4
- var ReflectUtils_1 = require("simple-boot-core/utils/reflect/ReflectUtils");
5
- exports.scripts = new Map();
6
- exports.ScriptMetadataKey = Symbol('Script');
7
- var Script = function (config) {
8
- return function (target) {
9
- if (!config) {
10
- config = {};
11
- }
12
- if (!config.name) {
13
- config.name = target.name;
14
- }
15
- exports.scripts.set(config.name, target);
16
- ReflectUtils_1.ReflectUtils.defineMetadata(exports.ScriptMetadataKey, config, target);
17
- return target;
18
- };
19
- };
20
- exports.Script = Script;
21
- var getScript = function (target) {
22
- if (target && typeof target === 'object') {
23
- target = target.constructor;
24
- }
25
- try {
26
- return ReflectUtils_1.ReflectUtils.getMetadata(exports.ScriptMetadataKey, target);
27
- }
28
- catch (e) {
29
- }
30
- };
31
- exports.getScript = getScript;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getScript = exports.Script = exports.ScriptMetadataKey = exports.scripts = void 0;
4
+ var ReflectUtils_1 = require("simple-boot-core/utils/reflect/ReflectUtils");
5
+ exports.scripts = new Map();
6
+ exports.ScriptMetadataKey = Symbol('Script');
7
+ var Script = function (config) {
8
+ return function (target) {
9
+ if (!config) {
10
+ config = {};
11
+ }
12
+ if (!config.name) {
13
+ config.name = target.name;
14
+ }
15
+ exports.scripts.set(config.name, target);
16
+ ReflectUtils_1.ReflectUtils.defineMetadata(exports.ScriptMetadataKey, config, target);
17
+ return target;
18
+ };
19
+ };
20
+ exports.Script = Script;
21
+ var getScript = function (target) {
22
+ if (target && typeof target === 'object') {
23
+ target = target.constructor;
24
+ }
25
+ try {
26
+ return ReflectUtils_1.ReflectUtils.getMetadata(exports.ScriptMetadataKey, target);
27
+ }
28
+ catch (e) {
29
+ }
30
+ };
31
+ exports.getScript = getScript;
@@ -0,0 +1,3 @@
1
+ export declare enum InjectFrontSituationType {
2
+ OPENER = "SIMPLE_BOOT_FRONT://OPENER"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InjectFrontSituationType = void 0;
4
+ var InjectFrontSituationType;
5
+ (function (InjectFrontSituationType) {
6
+ InjectFrontSituationType["OPENER"] = "SIMPLE_BOOT_FRONT://OPENER";
7
+ })(InjectFrontSituationType = exports.InjectFrontSituationType || (exports.InjectFrontSituationType = {}));
@@ -1,4 +1,4 @@
1
- export declare abstract class Fetcher {
2
- abstract text(path: string, param?: any, dname?: string): Promise<string | void>;
3
- abstract json<T = any>(url: string, param?: any): Promise<T | void>;
4
- }
1
+ export declare abstract class Fetcher {
2
+ abstract text(path: string, param?: any, dname?: string): Promise<string | void>;
3
+ abstract json<T = any>(url: string, param?: any): Promise<T | void>;
4
+ }
package/fetch/Fetcher.js CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Fetcher = void 0;
4
- var Fetcher = (function () {
5
- function Fetcher() {
6
- }
7
- return Fetcher;
8
- }());
9
- exports.Fetcher = Fetcher;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Fetcher = void 0;
4
+ var Fetcher = (function () {
5
+ function Fetcher() {
6
+ }
7
+ return Fetcher;
8
+ }());
9
+ exports.Fetcher = Fetcher;
@@ -1,3 +1,3 @@
1
- export interface onChangedRender {
2
- onChangedRender(): void;
3
- }
1
+ export interface onChangedRender {
2
+ onChangedRender(): void;
3
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,3 @@
1
- export interface OnDestroy {
2
- onDestroy(): void;
3
- }
1
+ export interface OnDestroy {
2
+ onDestroy(): void;
3
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,3 @@
1
- export interface OnFinish {
2
- onFinish(): void;
3
- }
1
+ export interface OnFinish {
2
+ onFinish(): void;
3
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,8 @@
1
- export interface OnInit {
2
- onInit(): void;
3
- }
1
+ import { RawSet } from 'dom-render/RawSet';
2
+ export declare type OnInitParameter = {
3
+ makerObj: any;
4
+ rawSet: RawSet;
5
+ };
6
+ export interface OnInit {
7
+ onInit(...data: any): any;
8
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,3 @@
1
- export interface OnInitedChild {
2
- onInitedChild(): void;
3
- }
1
+ export interface OnInitedChild {
2
+ onInitedChild(): void;
3
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +1,14 @@
1
- import { SimOption } from 'simple-boot-core/SimOption';
2
- import { ConstructorType } from 'simple-boot-core/types/Types';
3
- export declare enum UrlType {
4
- path = "path",
5
- hash = "hash"
6
- }
7
- export declare class SimFrontOption extends SimOption {
8
- window: Window;
9
- selector: string;
10
- urlType: UrlType;
11
- constructor(window: Window, advice?: ConstructorType<any>[]);
12
- setSelector(selector: string): SimFrontOption;
13
- setUrlType(urlType: UrlType): SimFrontOption;
14
- }
1
+ import { SimOption } from 'simple-boot-core/SimOption';
2
+ import { ConstructorType } from 'simple-boot-core/types/Types';
3
+ export declare enum UrlType {
4
+ path = "path",
5
+ hash = "hash"
6
+ }
7
+ export declare class SimFrontOption extends SimOption {
8
+ window: Window;
9
+ selector: string;
10
+ urlType: UrlType;
11
+ constructor(window: Window, advice?: ConstructorType<any>[]);
12
+ setSelector(selector: string): SimFrontOption;
13
+ setUrlType(urlType: UrlType): SimFrontOption;
14
+ }
@@ -1,45 +1,45 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.SimFrontOption = exports.UrlType = void 0;
19
- var SimOption_1 = require("simple-boot-core/SimOption");
20
- var UrlType;
21
- (function (UrlType) {
22
- UrlType["path"] = "path";
23
- UrlType["hash"] = "hash";
24
- })(UrlType = exports.UrlType || (exports.UrlType = {}));
25
- var SimFrontOption = (function (_super) {
26
- __extends(SimFrontOption, _super);
27
- function SimFrontOption(window, advice) {
28
- if (advice === void 0) { advice = []; }
29
- var _this = _super.call(this, advice) || this;
30
- _this.window = window;
31
- _this.selector = '#app';
32
- _this.urlType = UrlType.path;
33
- return _this;
34
- }
35
- SimFrontOption.prototype.setSelector = function (selector) {
36
- this.selector = selector;
37
- return this;
38
- };
39
- SimFrontOption.prototype.setUrlType = function (urlType) {
40
- this.urlType = urlType;
41
- return this;
42
- };
43
- return SimFrontOption;
44
- }(SimOption_1.SimOption));
45
- exports.SimFrontOption = SimFrontOption;
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.SimFrontOption = exports.UrlType = void 0;
19
+ var SimOption_1 = require("simple-boot-core/SimOption");
20
+ var UrlType;
21
+ (function (UrlType) {
22
+ UrlType["path"] = "path";
23
+ UrlType["hash"] = "hash";
24
+ })(UrlType = exports.UrlType || (exports.UrlType = {}));
25
+ var SimFrontOption = (function (_super) {
26
+ __extends(SimFrontOption, _super);
27
+ function SimFrontOption(window, advice) {
28
+ if (advice === void 0) { advice = []; }
29
+ var _this = _super.call(this, advice) || this;
30
+ _this.window = window;
31
+ _this.selector = '#app';
32
+ _this.urlType = UrlType.path;
33
+ return _this;
34
+ }
35
+ SimFrontOption.prototype.setSelector = function (selector) {
36
+ this.selector = selector;
37
+ return this;
38
+ };
39
+ SimFrontOption.prototype.setUrlType = function (urlType) {
40
+ this.urlType = urlType;
41
+ return this;
42
+ };
43
+ return SimFrontOption;
44
+ }(SimOption_1.SimOption));
45
+ exports.SimFrontOption = SimFrontOption;
package/package.json CHANGED
@@ -1,82 +1,84 @@
1
- {
2
- "name": "simple-boot-front",
3
- "version": "1.0.95",
4
- "main": "SimpleApplication.js",
5
- "license": "MIT",
6
- "description": "front end SPA frameworks",
7
- "keywords": [
8
- "front",
9
- "spa",
10
- "SPA",
11
- "module",
12
- "front-end",
13
- "framwork",
14
- "node"
15
- ],
16
- "author": "visualkhh <visualkhh@gmail.com> (https://github.com/visualkhh)",
17
- "contributors": [
18
- "sewoo <sewooimda@nate.com> (https://github.com/sewoo)",
19
- "SeoDH <adonis_84@naver.com> (https://github.com/SeoDH)",
20
- "tkyung (https://github.com/tkyungDev)",
21
- "Hoil-Gang (https://github.com/khl1154)",
22
- "hwangsero (https://github.com/hwangsero)"
23
- ],
24
- "homepage": "https://github.com/visualkhh/simple-boot-front",
25
- "bugs": {
26
- "url": "https://github.com/visualkhh/simple-boot-front",
27
- "email": "visualkhh@gmail.com"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "https://github.com/visualkhh/simple-boot-front"
32
- },
33
- "jest": {
34
- "transform": {
35
- "^.+\\.ts$": "ts-jest"
36
- },
37
- "testRegex": "\\.test\\.ts$",
38
- "moduleFileExtensions": [
39
- "ts",
40
- "tsx",
41
- "js",
42
- "json"
43
- ],
44
- "globals": {
45
- "ts-jest": {
46
- "diagnostics": true
47
- }
48
- }
49
- },
50
- "scripts": {
51
- "build": "rm -rf dist && tsc --outDir dist --declarationDir dist",
52
- "dev:serve": "npm run serve --workspace=dev",
53
- "dev-onepage:serve": "npm run serve --workspace=dev-onepage",
54
- "npm-build": "rm -rf dist && tsc --outDir dist --declarationDir dist && cp package-prod.json dist/package.json && cp README.MD dist",
55
- "npm-publish": "npm run npm-build && npm publish ./dist",
56
- "tsc": "tsc",
57
- "tsc:watch": "rm -rf ./dist && mkdir dist && cp package.json dist && tsc --watch --sourceMap true",
58
- "tsc:watch:dev": "rm -rf ./dist && mkdir dist && cp package-dev.json dist && tsc --watch --sourceMap true",
59
- "test": "jest --detectOpenHandles --forceExit"
60
- },
61
- "alias": {
62
- },
63
- "devDependencies": {
64
- "@types/jest": "^26.0.22",
65
- "@typescript-eslint/eslint-plugin": "^4.16.1",
66
- "@typescript-eslint/parser": "^4.16.1",
67
- "eslint": "^7.21.0",
68
- "eslint-config-standard": "^16.0.2",
69
- "eslint-plugin-import": "^2.22.1",
70
- "eslint-plugin-node": "^11.1.0",
71
- "eslint-plugin-promise": "^4.3.1",
72
- "jest": "^26.6.3",
73
- "supertest": "^6.1.3",
74
- "ts-jest": "^26.5.4",
75
- "typescript": "^4.3.5"
76
- },
77
- "dependencies": {
78
- "dom-render": "^1.0.63",
79
- "simple-boot-core": "^1.0.22",
80
- "reflect-metadata": "^0.1.13"
81
- }
82
- }
1
+ {
2
+ "name": "simple-boot-front",
3
+ "version": "1.0.99",
4
+ "main": "SimpleApplication.js",
5
+ "license": "MIT",
6
+ "description": "front end SPA frameworks",
7
+ "keywords": [
8
+ "front",
9
+ "spa",
10
+ "SPA",
11
+ "module",
12
+ "front-end",
13
+ "framwork",
14
+ "node"
15
+ ],
16
+ "author": "visualkhh <visualkhh@gmail.com> (https://github.com/visualkhh)",
17
+ "contributors": [
18
+ "sewoo <sewooimda@nate.com> (https://github.com/sewoo)",
19
+ "SeoDH <adonis_84@naver.com> (https://github.com/SeoDH)",
20
+ "tkyung (https://github.com/tkyungDev)",
21
+ "Hoil-Gang (https://github.com/khl1154)",
22
+ "hwangsero (https://github.com/hwangsero)"
23
+ ],
24
+ "homepage": "https://github.com/visualkhh/simple-boot-front",
25
+ "bugs": {
26
+ "url": "https://github.com/visualkhh/simple-boot-front",
27
+ "email": "visualkhh@gmail.com"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/visualkhh/simple-boot-front"
32
+ },
33
+ "jest": {
34
+ "transform": {
35
+ "^.+\\.ts$": "ts-jest"
36
+ },
37
+ "testRegex": "\\.test\\.ts$",
38
+ "moduleFileExtensions": [
39
+ "ts",
40
+ "tsx",
41
+ "js",
42
+ "json"
43
+ ],
44
+ "globals": {
45
+ "ts-jest": {
46
+ "diagnostics": true
47
+ }
48
+ }
49
+ },
50
+ "scripts": {
51
+ "build": "rm -rf dist && tsc --outDir dist --declarationDir dist",
52
+ "dev:serve": "npm run serve --workspace=dev",
53
+ "dev-onepage:serve": "npm run serve --workspace=dev-onepage",
54
+ "npm-build": "rm -rf dist && tsc --outDir dist --declarationDir dist && cp package-prod.json dist/package.json && cp README.MD dist",
55
+ "npm-publish": "npm run npm-build && npm publish ./dist",
56
+ "tsc": "tsc",
57
+ "setting:root-dist": "rm -rf ../dist-simple-boot-front && mkdirp ../dist-simple-boot-front && cp package-root-dist.json ../dist-simple-boot-front/package.json",
58
+ "tsc:root-dist": "npm run setting:root-dist && tsc --outDir ../dist-simple-boot-front --declarationDir ../dist-simple-boot-front",
59
+ "tsc:watch": "rm -rf ./dist && mkdir dist && cp package.json dist && tsc --watch --sourceMap true",
60
+ "tsc:watch:root-dist": "npm run setting:root-dist && tsc --outDir ../dist-simple-boot-front --declarationDir ../dist-simple-boot-front --watch --sourceMap true",
61
+ "tsc:watch:dev": "rm -rf ./dist && mkdir dist && cp package-dev.json dist && tsc --watch --sourceMap true",
62
+ "test": "jest --detectOpenHandles --forceExit"
63
+ },
64
+ "alias": {},
65
+ "devDependencies": {
66
+ "@types/jest": "^26.0.22",
67
+ "@typescript-eslint/eslint-plugin": "^4.16.1",
68
+ "@typescript-eslint/parser": "^4.16.1",
69
+ "eslint": "^7.21.0",
70
+ "eslint-config-standard": "^16.0.2",
71
+ "eslint-plugin-import": "^2.22.1",
72
+ "eslint-plugin-node": "^11.1.0",
73
+ "eslint-plugin-promise": "^4.3.1",
74
+ "jest": "^26.6.3",
75
+ "supertest": "^6.1.3",
76
+ "ts-jest": "^26.5.4",
77
+ "typescript": "^4.4.3"
78
+ },
79
+ "dependencies": {
80
+ "dom-render": "^1.0.68",
81
+ "simple-boot-core": "^1.0.23",
82
+ "reflect-metadata": "^0.1.13"
83
+ }
84
+ }
@@ -1,7 +1,7 @@
1
- import { Runnable } from 'simple-boot-core/run/Runnable';
2
- import { RawSet } from 'dom-render/RawSet';
3
- export declare abstract class ScriptRunnable implements Runnable {
4
- rawSets: Map<RawSet, any>;
5
- render(): void;
6
- abstract run(...arg: any): any;
7
- }
1
+ import { Runnable } from 'simple-boot-core/run/Runnable';
2
+ import { RawSet } from 'dom-render/RawSet';
3
+ export declare abstract class ScriptRunnable implements Runnable {
4
+ rawSets: Map<RawSet, any>;
5
+ render(): void;
6
+ abstract run(...arg: any): any;
7
+ }
@@ -1,22 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScriptRunnable = void 0;
4
- var ScriptRunnable = (function () {
5
- function ScriptRunnable() {
6
- this.rawSets = new Map();
7
- }
8
- ScriptRunnable.prototype.render = function () {
9
- var _this = this;
10
- this.rawSets.forEach(function (value, key) {
11
- var _a;
12
- if (key.isConnected) {
13
- (_a = value._DomRender_proxy) === null || _a === void 0 ? void 0 : _a.render([key]);
14
- }
15
- else {
16
- _this.rawSets.delete(key);
17
- }
18
- });
19
- };
20
- return ScriptRunnable;
21
- }());
22
- exports.ScriptRunnable = ScriptRunnable;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScriptRunnable = void 0;
4
+ var ScriptRunnable = (function () {
5
+ function ScriptRunnable() {
6
+ this.rawSets = new Map();
7
+ }
8
+ ScriptRunnable.prototype.render = function () {
9
+ var _this = this;
10
+ this.rawSets.forEach(function (value, key) {
11
+ var _a;
12
+ if (key.isConnected) {
13
+ (_a = value._DomRender_proxy) === null || _a === void 0 ? void 0 : _a.render([key]);
14
+ }
15
+ else {
16
+ _this.rawSets.delete(key);
17
+ }
18
+ });
19
+ };
20
+ return ScriptRunnable;
21
+ }());
22
+ exports.ScriptRunnable = ScriptRunnable;