@powfix/core-js 0.12.0 → 0.12.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.
@@ -1,3 +1 @@
1
- export * from './Hook';
2
- export * from './HookFn';
3
- export * from './HookType';
1
+ export * from './sequelize';
@@ -14,6 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Hook"), exports);
18
- __exportStar(require("./HookFn"), exports);
19
- __exportStar(require("./HookType"), exports);
17
+ __exportStar(require("./sequelize"), exports);
@@ -0,0 +1,3 @@
1
+ export interface ReloadOption {
2
+ reload: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { Transaction } from "sequelize";
2
+ export interface TransactionOption {
3
+ transaction: Transaction;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ReloadOption } from "./ReloadOption";
2
+ import { TransactionOption } from "./TransactionOption";
3
+ export interface UpsertOptions extends Partial<ReloadOption>, Partial<TransactionOption> {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export * from './Hook';
2
+ export * from './HookFn';
3
+ export * from './HookType';
4
+ export * from './ReloadOption';
5
+ export * from './TransactionOption';
6
+ export * from './UpsertOptions';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Hook"), exports);
18
+ __exportStar(require("./HookFn"), exports);
19
+ __exportStar(require("./HookType"), exports);
20
+ __exportStar(require("./ReloadOption"), exports);
21
+ __exportStar(require("./TransactionOption"), exports);
22
+ __exportStar(require("./UpsertOptions"), exports);
@@ -36,6 +36,11 @@ class TimeService {
36
36
  if (option.autoStart) {
37
37
  this.start();
38
38
  }
39
+ // Bind
40
+ this.sync = this.sync.bind(this);
41
+ this.start = this.start.bind(this);
42
+ this.stop = this.stop.bind(this);
43
+ this.fetchServerNTPResult = this.fetchServerNTPResult.bind(this);
39
44
  }
40
45
  getOption() {
41
46
  return this.option;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powfix/core-js",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "core package",
5
5
  "author": "Kwon Kyung-Min <powfix@gmail.com>",
6
6
  "private": false,