@leismore/lmos-nodejs-primitives 1.1.0 → 1.2.1

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/README.md CHANGED
@@ -18,10 +18,13 @@ import {
18
18
  BIGINT , BIGINT_NEGATIVE ,
19
19
  BIGINT_ZERO , BIGINT_ZERO_NEGATIVE ,
20
20
  STRING , STRING_EMPTY , STRING_MULTILINE,
21
- SYMBOL
21
+ SYMBOL ,
22
+ ALL
22
23
  } from '@leismore/lmos-nodejs-primitives';
23
24
  ```
24
25
 
26
+ `ALL` is an array which contains all primitive values.
27
+
25
28
  ## License
26
29
 
27
30
  © [Leismore](https://www.leismore.co) 2025
@@ -19,4 +19,5 @@ declare const STRING = "Hello, World!";
19
19
  declare const STRING_EMPTY = "";
20
20
  declare const STRING_MULTILINE: string;
21
21
  declare const SYMBOL: unique symbol;
22
- export { NULL, UNDEFINED, TRUE, FALSE, INTEGER, INTEGER_NEGATIVE, FLOAT, FLOAT_NEGATIVE, ZERO, ZERO_NEGATIVE, BIGINT, BIGINT_NEGATIVE, BIGINT_ZERO, BIGINT_ZERO_NEGATIVE, STRING, STRING_EMPTY, STRING_MULTILINE, SYMBOL };
22
+ declare const ALL: (string | number | bigint | boolean | symbol | null | undefined)[];
23
+ export { NULL, UNDEFINED, TRUE, FALSE, INTEGER, INTEGER_NEGATIVE, FLOAT, FLOAT_NEGATIVE, ZERO, ZERO_NEGATIVE, BIGINT, BIGINT_NEGATIVE, BIGINT_ZERO, BIGINT_ZERO_NEGATIVE, STRING, STRING_EMPTY, STRING_MULTILINE, SYMBOL, ALL };
package/dist/src/index.js CHANGED
@@ -29,5 +29,17 @@ const STRING_MULTILINE = ('This is a string' + EOL +
29
29
  'It includes line breaks.' + EOL);
30
30
  // Symbol
31
31
  const SYMBOL = Symbol();
32
+ // All
33
+ const ALL = [
34
+ NULL, UNDEFINED,
35
+ TRUE, FALSE,
36
+ INTEGER, INTEGER_NEGATIVE,
37
+ FLOAT, FLOAT_NEGATIVE,
38
+ ZERO, ZERO_NEGATIVE,
39
+ BIGINT, BIGINT_NEGATIVE,
40
+ BIGINT_ZERO, BIGINT_ZERO_NEGATIVE,
41
+ STRING, STRING_EMPTY, STRING_MULTILINE,
42
+ SYMBOL
43
+ ];
32
44
  // Export all defined primitive values
33
- export { NULL, UNDEFINED, TRUE, FALSE, INTEGER, INTEGER_NEGATIVE, FLOAT, FLOAT_NEGATIVE, ZERO, ZERO_NEGATIVE, BIGINT, BIGINT_NEGATIVE, BIGINT_ZERO, BIGINT_ZERO_NEGATIVE, STRING, STRING_EMPTY, STRING_MULTILINE, SYMBOL };
45
+ export { NULL, UNDEFINED, TRUE, FALSE, INTEGER, INTEGER_NEGATIVE, FLOAT, FLOAT_NEGATIVE, ZERO, ZERO_NEGATIVE, BIGINT, BIGINT_NEGATIVE, BIGINT_ZERO, BIGINT_ZERO_NEGATIVE, STRING, STRING_EMPTY, STRING_MULTILINE, SYMBOL, ALL };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leismore/lmos-nodejs-primitives",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "Examples of all primitive values in JavaScript. Defined for writing unit test.",
5
5
  "keywords": [
6
6
  "JavaScript",
package/tsconfig.json CHANGED
@@ -9,11 +9,7 @@
9
9
  "resolveJsonModule": true,
10
10
  "declaration": true,
11
11
  "allowJs": false,
12
- "outDir": "dist",
13
- "paths": {
14
- "@lib/*": ["./src/lib/*"],
15
- "@test/lib/*": ["./test/lib/*"]
16
- }
12
+ "outDir": "dist"
17
13
  },
18
14
  "include": ["src/**/*", "test/**/*"]
19
15
  }