@connectedxm/admin 1.8.5 → 2.0.0
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/dist/{index.mjs → index.cjs} +2646 -40
- package/dist/{index.d.mts → index.d.cts} +197 -197
- package/dist/index.d.ts +197 -197
- package/dist/index.js +40 -2646
- package/eslint.config.js +37 -0
- package/package.json +23 -31
package/eslint.config.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import eslint from "@eslint/js";
|
|
2
|
+
import tseslint from "@typescript-eslint/eslint-plugin";
|
|
3
|
+
import tsParser from "@typescript-eslint/parser";
|
|
4
|
+
import reactPlugin from "eslint-plugin-react";
|
|
5
|
+
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
eslint.configs.recommended,
|
|
9
|
+
{
|
|
10
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
11
|
+
languageOptions: {
|
|
12
|
+
parser: tsParser,
|
|
13
|
+
parserOptions: {
|
|
14
|
+
ecmaVersion: "latest",
|
|
15
|
+
sourceType: "module",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
plugins: {
|
|
19
|
+
"@typescript-eslint": tseslint,
|
|
20
|
+
react: reactPlugin,
|
|
21
|
+
"react-hooks": reactHooksPlugin,
|
|
22
|
+
},
|
|
23
|
+
rules: {
|
|
24
|
+
...tseslint.configs.recommended.rules,
|
|
25
|
+
...reactPlugin.configs.recommended.rules,
|
|
26
|
+
...reactHooksPlugin.configs.recommended.rules,
|
|
27
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
28
|
+
"prettier/prettier": "off",
|
|
29
|
+
"eol-last": "off",
|
|
30
|
+
},
|
|
31
|
+
settings: {
|
|
32
|
+
react: {
|
|
33
|
+
version: "detect",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
];
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectedxm/admin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Admin API javascript SDK",
|
|
5
5
|
"author": "ConnectedXM Inc.",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "https://github.com/connectedxm/admin-sdk.git"
|
|
@@ -12,47 +13,38 @@
|
|
|
12
13
|
"module": "dist/index.mjs",
|
|
13
14
|
"types": "dist/index.d.ts",
|
|
14
15
|
"scripts": {
|
|
15
|
-
"
|
|
16
|
-
"lint": "npm run tsc && eslint src/**/*.ts",
|
|
17
|
-
"test": "vitest run",
|
|
16
|
+
"lint": "eslint src/**/*.ts",
|
|
18
17
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
19
|
-
"release": "npm run lint && npm run test && npm run build",
|
|
20
18
|
"local": "npm run release && npm pack",
|
|
21
|
-
"
|
|
22
|
-
"exports": "tsx scripts/addExports.ts",
|
|
23
|
-
"tsc": "tsc"
|
|
19
|
+
"exports": "tsx scripts/addExports.ts"
|
|
24
20
|
},
|
|
25
21
|
"dependencies": {
|
|
26
|
-
"axios": "^1.
|
|
27
|
-
"immer": "^10.
|
|
22
|
+
"axios": "^1.8.4",
|
|
23
|
+
"immer": "^10.1.1"
|
|
28
24
|
},
|
|
29
25
|
"peerDependencies": {
|
|
30
26
|
"@tanstack/react-query": "^5.0.0",
|
|
31
|
-
"react": "^18
|
|
27
|
+
"react": "^18 || ^19"
|
|
32
28
|
},
|
|
33
29
|
"devDependencies": {
|
|
34
|
-
"@babel/parser": "^7.
|
|
35
|
-
"@swc/core": "^1.
|
|
36
|
-
"@tanstack/react-query": "^5.
|
|
30
|
+
"@babel/parser": "^7.26.10",
|
|
31
|
+
"@swc/core": "^1.11.11",
|
|
32
|
+
"@tanstack/react-query": "^5.69.0",
|
|
37
33
|
"@types/glob": "^8.1.0",
|
|
38
|
-
"@types/node": "^
|
|
39
|
-
"@types/react": "^
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
41
|
-
"@typescript-eslint/parser": "^
|
|
42
|
-
"eslint": "^
|
|
43
|
-
"eslint-plugin-react": "^7.
|
|
44
|
-
"eslint-plugin-react-hooks": "^
|
|
45
|
-
"glob": "^
|
|
46
|
-
"recast": "^0.23.
|
|
47
|
-
"tsup": "^8.0
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"typedoc-theme-category-nav": "^0.0.3",
|
|
51
|
-
"typedoc-theme-hierarchy": "^4.0.0",
|
|
52
|
-
"typescript": "^5.4.2",
|
|
53
|
-
"vitest": "^1.3.1"
|
|
34
|
+
"@types/node": "^22.13.11",
|
|
35
|
+
"@types/react": "^19.0.12",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
37
|
+
"@typescript-eslint/parser": "^8.27.0",
|
|
38
|
+
"eslint": "^9.23.0",
|
|
39
|
+
"eslint-plugin-react": "^7.37.4",
|
|
40
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
41
|
+
"glob": "^11.0.1",
|
|
42
|
+
"recast": "^0.23.11",
|
|
43
|
+
"tsup": "^8.4.0",
|
|
44
|
+
"typescript": "^5.8.2",
|
|
45
|
+
"vitest": "^3.0.9"
|
|
54
46
|
},
|
|
55
47
|
"optionalDependencies": {
|
|
56
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
48
|
+
"@rollup/rollup-linux-x64-gnu": "4.36.0"
|
|
57
49
|
}
|
|
58
50
|
}
|