@kamen/create-webapp 1.0.50 → 1.0.52
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 +2 -2
- package/index.js +5 -9
- package/package.json +1 -1
- package/scripts/index.js +2 -4
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
createRandomFromRange,
|
|
16
16
|
createRandomFromList,
|
|
17
17
|
createRandomColorFromSaturationLightnessAlpha
|
|
18
|
-
} from '@kamen/create-webapp';
|
|
18
|
+
} from '@kamen/create-webapp/helpers/random';
|
|
19
19
|
|
|
20
20
|
const characters = Array
|
|
21
21
|
.from({length: 26}, (_, index) => [
|
|
@@ -47,7 +47,7 @@ console.dir(data);
|
|
|
47
47
|
```js
|
|
48
48
|
const {
|
|
49
49
|
createRandomFromList
|
|
50
|
-
} = await import('https://esm.run/@kamen/create-webapp');
|
|
50
|
+
} = await import('https://esm.run/@kamen/create-webapp/helpers/random');
|
|
51
51
|
|
|
52
52
|
function createAlphabet() {
|
|
53
53
|
const baseChar = 'a';
|
package/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
const primitiveTypeRe = /^string|number|bigint|boolean|symbol$/;
|
|
2
2
|
const objectTypeRe = /^object|function$/;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {default as
|
|
4
|
+
import {modulo} from './helpers/list';
|
|
5
|
+
|
|
6
|
+
export {default as list} from './helpers/list';
|
|
7
|
+
export {default as random} from './helpers/random';
|
|
8
|
+
export {default as temporal} from './helpers/temporal';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* @param {*} value
|
|
@@ -281,9 +283,3 @@ export const introspection = {
|
|
|
281
283
|
isPrimitive,
|
|
282
284
|
isObject
|
|
283
285
|
};
|
|
284
|
-
|
|
285
|
-
export const numbering = {
|
|
286
|
-
modulo,
|
|
287
|
-
range,
|
|
288
|
-
clamp
|
|
289
|
-
};
|
package/package.json
CHANGED
package/scripts/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import {cwd, versions} from 'node:process';
|
|
4
|
-
|
|
5
|
-
import {modulo} from '@kamen/create-webapp';
|
|
4
|
+
import {modulo} from '@kamen/create-webapp/helpers/list';
|
|
6
5
|
|
|
7
6
|
console.log(modulo(-10, 4));
|
|
8
|
-
|
|
9
7
|
console.log('versions', versions);
|
|
10
8
|
console.log('cwd()', cwd());
|
|
11
9
|
|
|
12
|
-
process.exit(0);
|
|
10
|
+
process.exit(0);
|