@senhainfo/shared-utils 1.5.17 → 1.5.18
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/lib/build-where.d.ts +7 -0
- package/lib/build-where.d.ts.map +1 -0
- package/lib/build-where.js +11 -0
- package/lib/build-where.js.map +1 -0
- package/lib/index.d.ts +18 -16
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +7 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +3 -0
- package/lib/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-where.d.ts","sourceRoot":"","sources":["../src/build-where.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,UAAU,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM,CAO1D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildWhere = buildWhere;
|
|
4
|
+
function buildWhere(conditions) {
|
|
5
|
+
const where = conditions
|
|
6
|
+
.filter((condition) => condition.apply)
|
|
7
|
+
.map((condition) => condition.text)
|
|
8
|
+
.join(' and ');
|
|
9
|
+
return where ? `where ${where}` : '';
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=build-where.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-where.js","sourceRoot":"","sources":["../src/build-where.ts"],"names":[],"mappings":";;AAKA,gCAOC;AAPD,SAAgB,UAAU,CAAC,UAAuB;IAChD,MAAM,KAAK,GAAG,UAAU;SACrB,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;SACtC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;SAClC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEjB,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACvC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export *
|
|
1
|
+
export * from './app-log';
|
|
2
|
+
export * from './assign-default-values';
|
|
3
|
+
export * from './build-where';
|
|
4
|
+
export * from './execute-promise';
|
|
5
|
+
export * from './format-case';
|
|
6
|
+
export * from './format-text';
|
|
7
|
+
export * from './generate-metadata-response';
|
|
8
|
+
export * from './get-ip-address';
|
|
9
|
+
export * from './get-random-data';
|
|
10
|
+
export * from './http-status-enum';
|
|
11
|
+
export * from './parse-request-url';
|
|
12
|
+
export * from './process-form-data';
|
|
13
|
+
export * from './remove-undefined-props';
|
|
14
|
+
export * from './split-array';
|
|
15
|
+
export * from './types';
|
|
16
|
+
export * from './windows-service';
|
|
17
|
+
export * from './xor-encrypt';
|
|
18
|
+
export * as Exceptions from './exceptions';
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAE9B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAE9B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.Exceptions = void 0;
|
|
40
40
|
__exportStar(require("./app-log"), exports);
|
|
41
41
|
__exportStar(require("./assign-default-values"), exports);
|
|
42
|
+
__exportStar(require("./build-where"), exports);
|
|
42
43
|
__exportStar(require("./execute-promise"), exports);
|
|
43
44
|
__exportStar(require("./format-case"), exports);
|
|
44
45
|
__exportStar(require("./format-text"), exports);
|
|
@@ -50,6 +51,7 @@ __exportStar(require("./parse-request-url"), exports);
|
|
|
50
51
|
__exportStar(require("./process-form-data"), exports);
|
|
51
52
|
__exportStar(require("./remove-undefined-props"), exports);
|
|
52
53
|
__exportStar(require("./split-array"), exports);
|
|
54
|
+
__exportStar(require("./types"), exports);
|
|
53
55
|
__exportStar(require("./windows-service"), exports);
|
|
54
56
|
__exportStar(require("./xor-encrypt"), exports);
|
|
55
57
|
exports.Exceptions = __importStar(require("./exceptions"));
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,+DAA6C;AAC7C,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AACpC,sDAAoC;AACpC,2DAAyC;AACzC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAE9B,2DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0DAAwC;AACxC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,+DAA6C;AAC7C,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AACpC,sDAAoC;AACpC,2DAAyC;AACzC,gDAA8B;AAC9B,0CAAwB;AACxB,oDAAkC;AAClC,gDAA8B;AAE9B,2DAA2C"}
|
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;KAC9B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;CAC7B,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,IAAI,IAAI;KAC5B,GAAG,IAAI,MAAM,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,QAAQ,GAAG,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;CAC3E,CAAC"}
|
package/lib/types.js
ADDED
package/lib/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|