@alwatr/random 5.1.2 → 5.1.4

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
@@ -206,7 +206,3 @@ The following companies, organizations, and individuals support Nanolib ongoing
206
206
  ## Contributing
207
207
 
208
208
  Contributions are welcome! Please read our [contribution guidelines](https://github.com/Alwatr/.github/blob/next/CONTRIBUTING.md) before submitting a pull request.
209
-
210
- ## License
211
-
212
- This project is licensed under the [AGPL-3.0 License](LICENSE).
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/random v5.1.2 */
1
+ /* @alwatr/random v5.1.4 */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(main_exports);
38
38
  var import_global_this = require("@alwatr/global-this");
39
39
  var import_package_tracer = require("@alwatr/package-tracer");
40
40
  var globalThis = (0, import_global_this.getGlobalThis)();
41
- __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/random", "5.1.2");
41
+ __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/random", "5.1.4");
42
42
  var hasCrypto = typeof globalThis.crypto !== "undefined";
43
43
  function bytesToHex(bytes) {
44
44
  let result = "";
package/dist/main.mjs CHANGED
@@ -1,10 +1,10 @@
1
- /* @alwatr/random v5.1.2 */
1
+ /* @alwatr/random v5.1.4 */
2
2
 
3
3
  // src/main.ts
4
4
  import { getGlobalThis } from "@alwatr/global-this";
5
5
  import { packageTracer } from "@alwatr/package-tracer";
6
6
  var globalThis = getGlobalThis();
7
- __dev_mode__: packageTracer.add("@alwatr/random", "5.1.2");
7
+ __dev_mode__: packageTracer.add("@alwatr/random", "5.1.4");
8
8
  var hasCrypto = typeof globalThis.crypto !== "undefined";
9
9
  function bytesToHex(bytes) {
10
10
  let result = "";
package/package.json CHANGED
@@ -1,42 +1,20 @@
1
1
  {
2
2
  "name": "@alwatr/random",
3
- "version": "5.1.2",
4
3
  "description": "A lightweight utility library for generating random numbers, strings, UUIDs and more",
4
+ "version": "5.1.4",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
- "keywords": [
7
- "random",
8
- "random-number",
9
- "random-string",
10
- "random-uuid",
11
- "random-boolean",
12
- "shuffle",
13
- "uuid",
14
- "uuid-v4",
15
- "math",
16
- "crypto",
17
- "cryptographically-secure",
18
- "utility",
19
- "array-shuffle",
20
- "random-color",
21
- "cross-platform",
22
- "ECMAScript",
23
- "typescript",
24
- "javascript",
25
- "node",
26
- "nodejs",
27
- "browser",
28
- "esm",
29
- "module",
30
- "utility",
31
- "util",
32
- "utils",
33
- "nanolib",
34
- "alwatr"
35
- ],
36
- "type": "module",
37
- "main": "./dist/main.cjs",
38
- "module": "./dist/main.mjs",
39
- "types": "./dist/main.d.ts",
6
+ "bugs": "https://github.com/Alwatr/nanolib/issues",
7
+ "dependencies": {
8
+ "@alwatr/global-this": "5.5.5",
9
+ "@alwatr/package-tracer": "5.5.5"
10
+ },
11
+ "devDependencies": {
12
+ "@alwatr/nano-build": "5.5.5",
13
+ "@alwatr/prettier-config": "5.0.1",
14
+ "@alwatr/tsconfig-base": "5.0.1",
15
+ "jest": "^30.0.5",
16
+ "typescript": "^5.9.2"
17
+ },
40
18
  "exports": {
41
19
  ".": {
42
20
  "types": "./dist/main.d.ts",
@@ -44,12 +22,46 @@
44
22
  "require": "./dist/main.cjs"
45
23
  }
46
24
  },
47
- "license": "AGPL-3.0-only",
48
25
  "files": [
49
26
  "**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}",
50
27
  "LICENSE",
51
28
  "!demo/**/*"
52
29
  ],
30
+ "homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/random#readme",
31
+ "keywords": [
32
+ "alwatr",
33
+ "array-shuffle",
34
+ "browser",
35
+ "cross-platform",
36
+ "crypto",
37
+ "cryptographically-secure",
38
+ "ECMAScript",
39
+ "esm",
40
+ "javascript",
41
+ "math",
42
+ "module",
43
+ "nanolib",
44
+ "node",
45
+ "nodejs",
46
+ "random",
47
+ "random-boolean",
48
+ "random-color",
49
+ "random-number",
50
+ "random-string",
51
+ "random-uuid",
52
+ "shuffle",
53
+ "typescript",
54
+ "util",
55
+ "utility",
56
+ "utility",
57
+ "utils",
58
+ "uuid",
59
+ "uuid-v4"
60
+ ],
61
+ "license": "MPL-2.0",
62
+ "main": "./dist/main.cjs",
63
+ "module": "./dist/main.mjs",
64
+ "prettier": "@alwatr/prettier-config",
53
65
  "publishConfig": {
54
66
  "access": "public"
55
67
  },
@@ -58,37 +70,23 @@
58
70
  "url": "https://github.com/Alwatr/nanolib",
59
71
  "directory": "packages/random"
60
72
  },
61
- "homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/random#readme",
62
- "bugs": {
63
- "url": "https://github.com/Alwatr/nanolib/issues"
64
- },
65
- "prettier": "@alwatr/prettier-config",
66
73
  "scripts": {
67
74
  "b": "yarn run build",
68
- "t": "yarn run test",
69
- "w": "yarn run watch",
70
- "c": "yarn run clean",
71
- "cb": "yarn run clean && yarn run build",
72
- "d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
73
75
  "build": "yarn run build:ts && yarn run build:es",
74
76
  "build:es": "nano-build --preset=module",
75
77
  "build:ts": "tsc --build",
78
+ "c": "yarn run clean",
79
+ "cb": "yarn run clean && yarn run build",
80
+ "clean": "rm -rfv dist *.tsbuildinfo",
81
+ "d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
82
+ "t": "yarn run test",
76
83
  "test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest",
84
+ "w": "yarn run watch",
77
85
  "watch": "yarn run watch:ts & yarn run watch:es",
78
86
  "watch:es": "yarn run build:es --watch",
79
- "watch:ts": "yarn run build:ts --watch --preserveWatchOutput",
80
- "clean": "rm -rfv dist *.tsbuildinfo"
81
- },
82
- "dependencies": {
83
- "@alwatr/global-this": "^5.5.3",
84
- "@alwatr/package-tracer": "^5.5.3"
85
- },
86
- "devDependencies": {
87
- "@alwatr/nano-build": "^5.5.3",
88
- "@alwatr/prettier-config": "^5.0.0",
89
- "@alwatr/tsconfig-base": "^5.0.0",
90
- "jest": "^29.7.0",
91
- "typescript": "^5.8.3"
87
+ "watch:ts": "yarn run build:ts --watch --preserveWatchOutput"
92
88
  },
93
- "gitHead": "424a7a3e08e5f10fcfe53440d1cead68c88baf32"
89
+ "type": "module",
90
+ "types": "./dist/main.d.ts",
91
+ "gitHead": "102cc505864da042258ffe18894dc5a9157b0040"
94
92
  }