@ssa-ui-kit/utils 0.0.1-alpha
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/LICENSE +21 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/CallAll.d.ts +1 -0
- package/dist/utils/dates/dateFormatters.d.ts +5 -0
- package/dist/utils/dates/dates.spec.d.ts +1 -0
- package/dist/utils/dates/index.d.ts +1 -0
- package/dist/utils/debounce/debounce.d.ts +3 -0
- package/dist/utils/debounce/debounce.spec.d.ts +1 -0
- package/dist/utils/debounce/index.d.ts +1 -0
- package/dist/utils/objects/assocPath.d.ts +1 -0
- package/dist/utils/objects/assocPath.spec.d.ts +1 -0
- package/dist/utils/objects/dissocPath.d.ts +1 -0
- package/dist/utils/objects/dissocPath.spec.d.ts +1 -0
- package/dist/utils/objects/index.d.ts +7 -0
- package/dist/utils/objects/mapObjIndexed.d.ts +3 -0
- package/dist/utils/objects/mapObjIndexed.spec.d.ts +1 -0
- package/dist/utils/objects/path.d.ts +1 -0
- package/dist/utils/objects/path.spec.d.ts +1 -0
- package/dist/utils/objects/pathOr.d.ts +1 -0
- package/dist/utils/objects/pathOr.spec.d.ts +1 -0
- package/dist/utils/objects/prop.d.ts +1 -0
- package/dist/utils/objects/prop.spec.d.ts +1 -0
- package/dist/utils/objects/propOr.d.ts +1 -0
- package/dist/utils/objects/propOr.spec.d.ts +1 -0
- package/dist/utils/pagination/generateRange.d.ts +3 -0
- package/dist/utils/pagination/generateRange.spec.d.ts +1 -0
- package/dist/utils/pagination/index.d.ts +1 -0
- package/dist/utils/pagination/types.d.ts +1 -0
- package/dist/utils/throttle/index.d.ts +1 -0
- package/dist/utils/throttle/throttle.d.ts +4 -0
- package/dist/utils/throttle/throttle.spec.d.ts +1 -0
- package/dist/utils/types.d.ts +4 -0
- package/package.json +40 -0
- package/src/index.ts +8 -0
- package/src/utils/CallAll.ts +5 -0
- package/src/utils/dates/dateFormatters.ts +61 -0
- package/src/utils/dates/dates.spec.tsx +127 -0
- package/src/utils/dates/index.ts +1 -0
- package/src/utils/debounce/debounce.spec.ts +85 -0
- package/src/utils/debounce/debounce.ts +24 -0
- package/src/utils/debounce/index.ts +1 -0
- package/src/utils/objects/assocPath.spec.tsx +53 -0
- package/src/utils/objects/assocPath.ts +11 -0
- package/src/utils/objects/dissocPath.spec.tsx +49 -0
- package/src/utils/objects/dissocPath.ts +14 -0
- package/src/utils/objects/index.ts +7 -0
- package/src/utils/objects/mapObjIndexed.spec.tsx +33 -0
- package/src/utils/objects/mapObjIndexed.ts +15 -0
- package/src/utils/objects/path.spec.tsx +24 -0
- package/src/utils/objects/path.ts +4 -0
- package/src/utils/objects/pathOr.spec.tsx +23 -0
- package/src/utils/objects/pathOr.ts +11 -0
- package/src/utils/objects/prop.spec.tsx +17 -0
- package/src/utils/objects/prop.ts +4 -0
- package/src/utils/objects/propOr.spec.tsx +17 -0
- package/src/utils/objects/propOr.ts +11 -0
- package/src/utils/pagination/generateRange.spec.ts +100 -0
- package/src/utils/pagination/generateRange.ts +91 -0
- package/src/utils/pagination/index.ts +1 -0
- package/src/utils/pagination/types.ts +4 -0
- package/src/utils/throttle/index.ts +1 -0
- package/src/utils/throttle/throttle.spec.ts +56 -0
- package/src/utils/throttle/throttle.ts +43 -0
- package/src/utils/types.ts +4 -0
- package/tsbuildcache +1 -0
- package/tsconfig.build.json +35 -0
- package/tsconfig.json +17 -0
- package/webpack.config.js +16 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": true,
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"emitDeclarationOnly": true,
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
|
|
8
|
+
"strict": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"target": "es6",
|
|
13
|
+
"module": "esnext",
|
|
14
|
+
"noImplicitAny": false,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
18
|
+
|
|
19
|
+
"noEmit": false,
|
|
20
|
+
"outDir": "./dist",
|
|
21
|
+
"rootDir": "./src",
|
|
22
|
+
"tsBuildInfoFile": "./tsbuildcache",
|
|
23
|
+
"typeRoots": [
|
|
24
|
+
"./src/types",
|
|
25
|
+
"./node_modules/@types",
|
|
26
|
+
"../../node_modules/@types"
|
|
27
|
+
],
|
|
28
|
+
"paths": {}
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
"include": ["src/**/*"],
|
|
32
|
+
"exclude": [
|
|
33
|
+
"dist/**/*",
|
|
34
|
+
]
|
|
35
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"noEmit": false,
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"rootDir": "./src",
|
|
7
|
+
"tsBuildInfoFile": "./tsbuildcache",
|
|
8
|
+
"typeRoots": [
|
|
9
|
+
"./src/types",
|
|
10
|
+
"./node_modules/@types",
|
|
11
|
+
"../../node_modules/@types"
|
|
12
|
+
],
|
|
13
|
+
"paths": {}
|
|
14
|
+
},
|
|
15
|
+
"include": ["src/**/*"],
|
|
16
|
+
"exclude": ["dist/**/*"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const createConfig = require('../../webpack.packages.base');
|
|
4
|
+
|
|
5
|
+
module.exports = () => {
|
|
6
|
+
const currentConfig = createConfig({
|
|
7
|
+
libraryName: 'SSAUtils',
|
|
8
|
+
outputPath: path.resolve(__dirname, 'dist'),
|
|
9
|
+
alias: {
|
|
10
|
+
'@src': path.resolve(__dirname, './src'),
|
|
11
|
+
'@utils': path.resolve(__dirname, './src/utils'),
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
return currentConfig;
|
|
16
|
+
};
|