@useshortcut/client 3.2.1 → 3.2.3

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 CHANGED
@@ -1,83 +1,64 @@
1
1
  {
2
2
  "name": "@useshortcut/client",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "A library for interacting with the Shortcut REST API",
5
- "homepage": "https://github.com/useshortcut/shortcut-client-js",
5
+ "homepage": "https://github.com/useshortcut/shortcut-client-js#readme",
6
6
  "bugs": {
7
7
  "url": "https://github.com/useshortcut/shortcut-client-js/issues"
8
8
  },
9
+ "license": "MIT",
9
10
  "repository": {
10
11
  "type": "git",
11
12
  "url": "https://github.com/useshortcut/shortcut-client-js.git"
12
13
  },
13
- "license": "MIT",
14
- "sideEffects": false,
14
+ "files": [
15
+ "lib"
16
+ ],
15
17
  "type": "commonjs",
18
+ "sideEffects": false,
19
+ "main": "./lib/index.cjs",
20
+ "module": "./lib/index.mjs",
21
+ "types": "./lib/index.d.cts",
16
22
  "exports": {
17
23
  ".": {
18
24
  "import": "./lib/index.mjs",
19
- "require": "./lib/index.js"
25
+ "require": "./lib/index.cjs"
20
26
  }
21
27
  },
22
- "main": "./lib/index.js",
23
- "module": "./lib/index.mjs",
24
- "types": "./lib/index.d.ts",
25
- "files": [
26
- "lib"
27
- ],
28
28
  "scripts": {
29
29
  "build": "yarn build:client && yarn build:add-typedoc-comments && NODE_OPTIONS=\"--no-experimental-strip-types\" tsdown",
30
30
  "build:add-typedoc-comments": "npx jscodeshift -t scripts/add-typedoc-comments.ts --extensions=ts --parser=ts src/generated/**",
31
31
  "build:client": "swagger-typescript-api generate --path ./schema/shortcut.swagger.json --output ./src/generated --clean-output --axios --modular --templates ./templates",
32
32
  "build:docs": "typedoc ./src --exclude 'src/__tests__/**'",
33
33
  "check-exports": "attw --pack .",
34
- "format": "prettier --write -l *.{json,md,prettierrc} '{src,scripts}/**/*.ts'",
35
- "format:check": "prettier --check *.{json,md,prettierrc} '{src,scripts}/**/*.ts'",
36
- "lint": "eslint 'src/**/*.{js,ts}'",
34
+ "format": "oxfmt",
35
+ "format:check": "oxfmt --check",
36
+ "lint": "oxlint src examples",
37
37
  "prepublishOnly": "yarn build",
38
38
  "sync:schema": "curl --silent https://developer.shortcut.com/api/rest/v3/shortcut.swagger.json --output ./schema/shortcut.swagger.json && yarn validate:schema",
39
- "test": "jest",
40
- "validate:examples": "npx tsc examples/*.ts --noEmit",
39
+ "test": "vitest",
40
+ "validate:examples": "npx tsc --project examples/tsconfig.json",
41
41
  "validate:schema": "swagger-cli validate ./schema/shortcut.swagger.json"
42
42
  },
43
- "jest": {
44
- "preset": "ts-jest",
45
- "testEnvironment": "node",
46
- "testPathIgnorePatterns": [
47
- "<rootDir>/lib/",
48
- "<rootDir>/node_modules/"
49
- ]
50
- },
51
43
  "dependencies": {
52
- "axios": "1.14.0"
44
+ "axios": "^1.15.0"
53
45
  },
54
46
  "devDependencies": {
55
- "@arethetypeswrong/cli": "^0.18.1",
56
- "@total-typescript/tsconfig": "^1.0.4",
57
- "@types/glob": "^8.1.0",
58
- "@types/jest": "^29.5.14",
47
+ "@arethetypeswrong/cli": "0.18.1",
48
+ "@total-typescript/tsconfig": "1.0.4",
59
49
  "@types/jscodeshift": "17.3.0",
60
- "@types/node": "^22.15.30",
61
- "@typescript-eslint/eslint-plugin": "^8.33.1",
62
- "@typescript-eslint/parser": "^8.33.1",
63
- "eslint": "^8.57.1",
64
- "eslint-config-airbnb-base": "^15.0.0",
65
- "eslint-config-prettier": "^10.1.5",
66
- "eslint-plugin-import": "^2.31.0",
67
- "eslint-plugin-jest": "^28.12.0",
68
- "eslint-plugin-prettier": "^5.4.1",
69
- "glob": "^11.0.2",
70
- "jest": "^29.7.0",
71
- "jscodeshift": "^17.3.0",
72
- "prettier": "^3.5.3",
73
- "stream-to-blob": "^2.0.1",
74
- "swagger-cli": "^4.0.4",
75
- "swagger-typescript-api": "^13.2.0",
76
- "ts-jest": "^29.3.4",
77
- "tsdown": "^0.12.7",
78
- "typedoc": "0.28.5",
50
+ "@types/node": "22.15.30",
51
+ "jscodeshift": "17.3.0",
52
+ "oxfmt": "0.46.0",
53
+ "oxlint": "1.61.0",
54
+ "stream-to-blob": "2.0.1",
55
+ "swagger-cli": "4.0.4",
56
+ "swagger-typescript-api": "13.6.10",
57
+ "tsdown": "0.21.10",
58
+ "typedoc": "0.28.19",
79
59
  "typedoc-plugin-merge-modules": "7.0.0",
80
- "typescript": "^5.8.3"
60
+ "typescript": "6.0.3",
61
+ "vitest": "4.1.5"
81
62
  },
82
- "readme": "https://github.com/useshortcut/shortcut-client-js#readme"
63
+ "packageManager": "yarn@4.14.1+sha512.64df448055b2d37ba269d7db535a469b8da93f8ef1140c25fd7a83c00a8fbaacb214ca0e02553b92a2c54cef78bb67d0b4817fab02001df0e24fac0faccc3b42"
83
64
  }
package/lib/index.js DELETED
@@ -1,5 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_ShortcutClient = require('./ShortcutClient.js');
3
-
4
- exports.ShortcutClient = require_ShortcutClient.ShortcutClient;
5
- exports.default = require_ShortcutClient.ShortcutClient;