@alanszp/core 11.0.0 → 12.0.3

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.
Files changed (127) hide show
  1. package/dist/app/appIdentifier.js +13 -3
  2. package/dist/app/appIdentifier.js.map +1 -1
  3. package/package.json +2 -5
  4. package/.gitignore +0 -3
  5. package/.npmignore +0 -3
  6. package/node_modules/@types/node/LICENSE +0 -21
  7. package/node_modules/@types/node/README.md +0 -15
  8. package/node_modules/@types/node/assert/strict.d.ts +0 -8
  9. package/node_modules/@types/node/assert.d.ts +0 -996
  10. package/node_modules/@types/node/async_hooks.d.ts +0 -539
  11. package/node_modules/@types/node/buffer.d.ts +0 -2362
  12. package/node_modules/@types/node/child_process.d.ts +0 -1540
  13. package/node_modules/@types/node/cluster.d.ts +0 -432
  14. package/node_modules/@types/node/console.d.ts +0 -415
  15. package/node_modules/@types/node/constants.d.ts +0 -19
  16. package/node_modules/@types/node/crypto.d.ts +0 -4487
  17. package/node_modules/@types/node/dgram.d.ts +0 -596
  18. package/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  19. package/node_modules/@types/node/dns/promises.d.ts +0 -425
  20. package/node_modules/@types/node/dns.d.ts +0 -809
  21. package/node_modules/@types/node/dom-events.d.ts +0 -122
  22. package/node_modules/@types/node/domain.d.ts +0 -170
  23. package/node_modules/@types/node/events.d.ts +0 -879
  24. package/node_modules/@types/node/fs/promises.d.ts +0 -1239
  25. package/node_modules/@types/node/fs.d.ts +0 -4311
  26. package/node_modules/@types/node/globals.d.ts +0 -411
  27. package/node_modules/@types/node/globals.global.d.ts +0 -1
  28. package/node_modules/@types/node/http.d.ts +0 -1887
  29. package/node_modules/@types/node/http2.d.ts +0 -2382
  30. package/node_modules/@types/node/https.d.ts +0 -550
  31. package/node_modules/@types/node/index.d.ts +0 -88
  32. package/node_modules/@types/node/inspector.d.ts +0 -2747
  33. package/node_modules/@types/node/module.d.ts +0 -315
  34. package/node_modules/@types/node/net.d.ts +0 -949
  35. package/node_modules/@types/node/os.d.ts +0 -478
  36. package/node_modules/@types/node/package.json +0 -229
  37. package/node_modules/@types/node/path.d.ts +0 -191
  38. package/node_modules/@types/node/perf_hooks.d.ts +0 -645
  39. package/node_modules/@types/node/process.d.ts +0 -1561
  40. package/node_modules/@types/node/punycode.d.ts +0 -117
  41. package/node_modules/@types/node/querystring.d.ts +0 -141
  42. package/node_modules/@types/node/readline/promises.d.ts +0 -150
  43. package/node_modules/@types/node/readline.d.ts +0 -539
  44. package/node_modules/@types/node/repl.d.ts +0 -430
  45. package/node_modules/@types/node/stream/consumers.d.ts +0 -12
  46. package/node_modules/@types/node/stream/promises.d.ts +0 -83
  47. package/node_modules/@types/node/stream/web.d.ts +0 -366
  48. package/node_modules/@types/node/stream.d.ts +0 -1701
  49. package/node_modules/@types/node/string_decoder.d.ts +0 -67
  50. package/node_modules/@types/node/test.d.ts +0 -1465
  51. package/node_modules/@types/node/timers/promises.d.ts +0 -93
  52. package/node_modules/@types/node/timers.d.ts +0 -240
  53. package/node_modules/@types/node/tls.d.ts +0 -1210
  54. package/node_modules/@types/node/trace_events.d.ts +0 -182
  55. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  56. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  57. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  58. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  59. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  60. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  61. package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  62. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  63. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  64. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  65. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  66. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  67. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  68. package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  69. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  70. package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  71. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  72. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  73. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  74. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  75. package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  76. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  77. package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  78. package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  79. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  80. package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  81. package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  82. package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  83. package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  84. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  85. package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  86. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  87. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  88. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  89. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  90. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  91. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  92. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  93. package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  94. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  95. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  96. package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  97. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  98. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  99. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  100. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  101. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  102. package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  103. package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  104. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  105. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  106. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  107. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  108. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  109. package/node_modules/@types/node/tty.d.ts +0 -208
  110. package/node_modules/@types/node/url.d.ts +0 -927
  111. package/node_modules/@types/node/util.d.ts +0 -2183
  112. package/node_modules/@types/node/v8.d.ts +0 -764
  113. package/node_modules/@types/node/vm.d.ts +0 -903
  114. package/node_modules/@types/node/wasi.d.ts +0 -179
  115. package/node_modules/@types/node/worker_threads.d.ts +0 -691
  116. package/node_modules/@types/node/zlib.d.ts +0 -517
  117. package/src/app/appIdentifier.ts +0 -5
  118. package/src/app/index.ts +0 -1
  119. package/src/assignKey.ts +0 -25
  120. package/src/editable/index.ts +0 -2
  121. package/src/editable/keepOrUpdate.ts +0 -42
  122. package/src/editable/types.ts +0 -11
  123. package/src/index.ts +0 -4
  124. package/src/lists/ListResult.ts +0 -16
  125. package/src/lists/Orderable.ts +0 -19
  126. package/src/lists/Paginable.ts +0 -25
  127. package/src/lists/index.ts +0 -3
@@ -1,10 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.appIdentifier = void 0;
4
+ const shortEnvName = {
5
+ production: "prd",
6
+ staging: "stg",
7
+ development: "dev",
8
+ test: "tst",
9
+ };
4
10
  function appIdentifier() {
5
- const appName = process.env.API_ORIGIN_NAME || "undefined";
6
- const env = process.env.NODE_ENV || "development";
7
- return `${appName}:${env}`;
11
+ var _a, _b, _c;
12
+ const appName = (_b = (_a = process.env.SERVICE_NAME) !== null && _a !== void 0 ? _a : process.env.API_ORIGIN_NAME) !== null && _b !== void 0 ? _b : "undef";
13
+ const roleName = process.env.ROLE_NAME;
14
+ const env = process.env.NODE_ENV
15
+ ? (_c = shortEnvName[process.env.NODE_ENV]) !== null && _c !== void 0 ? _c : process.env.NODE_ENV
16
+ : "dev";
17
+ return `${roleName ? `${appName}:${roleName}` : appName}:${env}`;
8
18
  }
9
19
  exports.appIdentifier = appIdentifier;
10
20
  //# sourceMappingURL=appIdentifier.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appIdentifier.js","sourceRoot":"","sources":["../../src/app/appIdentifier.ts"],"names":[],"mappings":";;;AAAA,SAAgB,aAAa;IAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,WAAW,CAAC;IAC3D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa,CAAC;IAClD,OAAO,GAAG,OAAO,IAAI,GAAG,EAAE,CAAC;AAC7B,CAAC;AAJD,sCAIC"}
1
+ {"version":3,"file":"appIdentifier.js","sourceRoot":"","sources":["../../src/app/appIdentifier.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAA2B;IAC3C,UAAU,EAAE,KAAK;IACjB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,KAAK;IAClB,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF,SAAgB,aAAa;;IAC3B,MAAM,OAAO,GACX,MAAA,MAAA,OAAO,CAAC,GAAG,CAAC,YAAY,mCAAI,OAAO,CAAC,GAAG,CAAC,eAAe,mCAAI,OAAO,CAAC;IAErE,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;IAEvC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ;QAC9B,CAAC,CAAC,MAAA,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,mCAAI,OAAO,CAAC,GAAG,CAAC,QAAQ;QAC5D,CAAC,CAAC,KAAK,CAAC;IAEV,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,GAAG,EAAE,CAAC;AACnE,CAAC;AAXD,sCAWC"}
package/package.json CHANGED
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "@alanszp/core",
3
- "version": "11.0.0",
3
+ "version": "12.0.3",
4
4
  "description": "Alan's core TS/JS lib.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "license": "MIT",
8
- "files": [
9
- "**/*"
10
- ],
11
8
  "publishConfig": {
12
9
  "access": "public"
13
10
  },
@@ -21,5 +18,5 @@
21
18
  "devDependencies": {
22
19
  "@types/node": "^20.11.17"
23
20
  },
24
- "gitHead": "60b62fa2fff34ef094ea9af69c2bed2373c70f64"
21
+ "gitHead": "3917709ea888ae321c2ea6ab36dfc90597ccd35e"
25
22
  }
package/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- node_modules
2
- *.log
3
- dist
package/.npmignore DELETED
@@ -1,3 +0,0 @@
1
- node_modules
2
- src
3
- *.log
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
@@ -1,15 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/node`
3
-
4
- # Summary
5
- This package contains type definitions for node (https://nodejs.org/).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
-
10
- ### Additional Details
11
- * Last updated: Thu, 08 Feb 2024 20:35:44 GMT
12
- * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
-
14
- # Credits
15
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
@@ -1,8 +0,0 @@
1
- declare module "assert/strict" {
2
- import { strict } from "node:assert";
3
- export = strict;
4
- }
5
- declare module "node:assert/strict" {
6
- import { strict } from "node:assert";
7
- export = strict;
8
- }