@powfix/core-js 0.12.4 → 0.12.6

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.
@@ -0,0 +1,9 @@
1
+ export declare enum CRUD {
2
+ CREATE = 1,
3
+ READ = 2,
4
+ UPDATE = 3,
5
+ DELETE = 4
6
+ }
7
+ export declare namespace CRUD {
8
+ function toString(crud: CRUD): string;
9
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CRUD = void 0;
4
+ var CRUD;
5
+ (function (CRUD) {
6
+ CRUD[CRUD["CREATE"] = 1] = "CREATE";
7
+ CRUD[CRUD["READ"] = 2] = "READ";
8
+ CRUD[CRUD["UPDATE"] = 3] = "UPDATE";
9
+ CRUD[CRUD["DELETE"] = 4] = "DELETE";
10
+ })(CRUD || (exports.CRUD = CRUD = {}));
11
+ (function (CRUD) {
12
+ function toString(crud) {
13
+ switch (crud) {
14
+ case CRUD.CREATE: return 'Create';
15
+ case CRUD.READ: return 'Read';
16
+ case CRUD.UPDATE: return 'Update';
17
+ case CRUD.DELETE: return 'Delete';
18
+ default: throw new Error('Unknown crud: ' + crud);
19
+ }
20
+ }
21
+ CRUD.toString = toString;
22
+ })(CRUD || (exports.CRUD = CRUD = {}));
@@ -1,3 +1,4 @@
1
1
  export * from './COORDINATE';
2
+ export * from './CRUD';
2
3
  export * from './DISTANCE';
3
4
  export * from './DURATION';
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./COORDINATE"), exports);
18
+ __exportStar(require("./CRUD"), exports);
18
19
  __exportStar(require("./DISTANCE"), exports);
19
20
  __exportStar(require("./DURATION"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powfix/core-js",
3
- "version": "0.12.4",
3
+ "version": "0.12.6",
4
4
  "description": "core package",
5
5
  "author": "Kwon Kyung-Min <powfix@gmail.com>",
6
6
  "private": false,