@oneplatformdev/utils 0.1.1-4 → 0.1.1-7
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/package.json +7 -12
- package/eslint.config.mjs +0 -23
- package/src/cn/cn.ts +0 -7
- package/src/cn/index.ts +0 -1
- package/src/composeRefs/composeRefs.ts +0 -12
- package/src/composeRefs/index.ts +0 -1
- package/src/index.ts +0 -3
- package/src/types/PartialOne.ts +0 -1
- package/src/types/index.ts +0 -1
- package/tsconfig.json +0 -10
- package/tsconfig.lib.json +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneplatformdev/utils",
|
|
3
|
-
"version": "0.1.1-
|
|
3
|
+
"version": "0.1.1-7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -8,23 +8,18 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./package.json": "./package.json",
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"default": "./index.js"
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
15
14
|
},
|
|
16
15
|
"./*": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"default": "./*.js"
|
|
16
|
+
"types": "./dist/*.d.ts",
|
|
17
|
+
"import": "./dist/*.js",
|
|
18
|
+
"default": "./dist/*.js"
|
|
21
19
|
}
|
|
22
20
|
},
|
|
23
21
|
"files": [
|
|
24
22
|
"dist",
|
|
25
|
-
"*",
|
|
26
|
-
"src",
|
|
27
|
-
"lib",
|
|
28
23
|
"!**/*.tsbuildinfo"
|
|
29
24
|
],
|
|
30
25
|
"dependencies": {
|
package/eslint.config.mjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import baseConfig from "../../eslint.config.mjs";
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
...baseConfig,
|
|
5
|
-
{
|
|
6
|
-
"files": [
|
|
7
|
-
"**/*.json"
|
|
8
|
-
],
|
|
9
|
-
"rules": {
|
|
10
|
-
"@nx/dependency-checks": [
|
|
11
|
-
"error",
|
|
12
|
-
{
|
|
13
|
-
"ignoredFiles": [
|
|
14
|
-
"{projectRoot}/eslint.config.{js,cjs,mjs,ts,cts,mts}"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"languageOptions": {
|
|
20
|
-
"parser": (await import('jsonc-eslint-parser'))
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
];
|
package/src/cn/cn.ts
DELETED
package/src/cn/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, cn } from './cn';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Ref, RefCallback } from "react";
|
|
2
|
-
|
|
3
|
-
export function composeRefs<T>(...refs: Array<Ref<T> | undefined | null>) {
|
|
4
|
-
return (node: T | null) => {
|
|
5
|
-
for (const ref of refs) {
|
|
6
|
-
if (!ref) continue;
|
|
7
|
-
if (typeof ref === "function") (ref as RefCallback<T>)(node);
|
|
8
|
-
else (ref as { current: T | null }).current = node;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export default composeRefs;
|
package/src/composeRefs/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, composeRefs } from './composeRefs';
|
package/src/index.ts
DELETED
package/src/types/PartialOne.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type PartialOne<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
package/src/types/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type * from './PartialOne'
|
package/tsconfig.json
DELETED
package/tsconfig.lib.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"baseUrl": ".",
|
|
5
|
-
"rootDir": "src",
|
|
6
|
-
"outDir": "dist",
|
|
7
|
-
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
|
|
8
|
-
"emitDeclarationOnly": false,
|
|
9
|
-
"forceConsistentCasingInFileNames": true,
|
|
10
|
-
"types": ["node"]
|
|
11
|
-
},
|
|
12
|
-
"include": ["src/**/*.ts"],
|
|
13
|
-
"references": []
|
|
14
|
-
}
|