@servicetitan/startup 32.7.0 → 33.0.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/startup",
3
- "version": "32.7.0",
3
+ "version": "33.0.1",
4
4
  "description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/startup",
6
6
  "repository": {
@@ -30,10 +30,14 @@
30
30
  "bin",
31
31
  "dist",
32
32
  "jest",
33
+ "patches",
33
34
  "src",
34
35
  "tsconfig"
35
36
  ],
36
37
  "bin": "./bin/index.js",
38
+ "scripts": {
39
+ "postinstall": "node ./src/postinstall.js"
40
+ },
37
41
  "devDependencies": {
38
42
  "@types/cpx": "~1.5.5",
39
43
  "@types/debug": "^4.1.12",
@@ -46,16 +50,17 @@
46
50
  },
47
51
  "dependencies": {
48
52
  "@babel/preset-env": "~7.28.5",
49
- "@jest/core": "~29.7.0",
50
- "@jest/types": "~29.6.3",
53
+ "@jest/core": "~30.2.0",
54
+ "@jest/types": "~30.2.0",
51
55
  "@jsdevtools/coverage-istanbul-loader": "^3.0.5",
52
- "@servicetitan/eslint-config": "32.7.0",
53
- "@servicetitan/install": "32.7.0",
54
- "@servicetitan/stylelint-config": "32.7.0",
56
+ "@servicetitan/eslint-config": "33.0.1",
57
+ "@servicetitan/install": "33.0.1",
58
+ "@servicetitan/stylelint-config": "33.0.1",
55
59
  "@svgr/webpack": "^8.1.0",
56
60
  "@swc/cli": "^0.5.0",
57
61
  "@swc/core": "1.13.5",
58
- "@types/jest": "~29.5.12",
62
+ "@types/debug": "^4.1.12",
63
+ "@types/jest": "~30.0.0",
59
64
  "@vitest/coverage-v8": "^3.2.4",
60
65
  "chalk": "~4.1.2",
61
66
  "cli-table3": "^0.6.5",
@@ -71,9 +76,9 @@
71
76
  "html-webpack-plugin": "~5.6.4",
72
77
  "html-webpack-tags-plugin": "^3.0.2",
73
78
  "identity-obj-proxy": "~3.0.0",
74
- "jest": "~29.7.0",
75
- "jest-circus": "~29.7.0",
76
- "jest-environment-jsdom": "^29.7.0",
79
+ "jest": "~30.2.0",
80
+ "jest-circus": "~30.2.0",
81
+ "jest-environment-jsdom": "^30.2.0",
77
82
  "jest-fetch-mock": "~3.0.3",
78
83
  "json5": "^2.2.3",
79
84
  "jwa": "^1.4.2",
@@ -87,6 +92,7 @@
87
92
  "mini-css-extract-plugin": "~2.9.4",
88
93
  "moment-locales-webpack-plugin": "~1.2.0",
89
94
  "multimatch": "~5.0.0",
95
+ "patch-package": "^8.0.0",
90
96
  "portfinder": "~1.0.38",
91
97
  "postcss": "~8.5.6",
92
98
  "prettier": "~3.6.2",
@@ -142,5 +148,5 @@
142
148
  "cli": {
143
149
  "webpack": false
144
150
  },
145
- "gitHead": "673fb6b56865da309c09f91b4ebf30aaf815a562"
151
+ "gitHead": "6a140ed15688cc4915d3d0e52000c2f8c1f381ca"
146
152
  }
@@ -0,0 +1,19 @@
1
+ diff --git a/node_modules/jsdom/lib/jsdom/browser/Window.js b/node_modules/jsdom/lib/jsdom/browser/Window.js
2
+ index 52d011c..f62f6d6 100644
3
+ --- a/node_modules/jsdom/lib/jsdom/browser/Window.js
4
+ +++ b/node_modules/jsdom/lib/jsdom/browser/Window.js
5
+ @@ -505,10 +505,10 @@ function installOwnProperties(window, options) {
6
+ event: makeReplaceablePropertyDescriptor("event", window),
7
+
8
+ // [LegacyUnforgeable]:
9
+ - window: { configurable: false },
10
+ - document: { configurable: false },
11
+ - location: { configurable: false },
12
+ - top: { configurable: false }
13
+ + window: { configurable: true },
14
+ + document: { configurable: true },
15
+ + location: { configurable: true },
16
+ + top: { configurable: true }
17
+ });
18
+
19
+
@@ -0,0 +1,23 @@
1
+ const { execFileSync } = require('child_process');
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+
5
+ const cwd = process.env.INIT_CWD;
6
+ const patchDir = path.relative(cwd, path.resolve('patches'));
7
+
8
+ try {
9
+ // Only apply patches when installed in project (as opposed to globally or in npx cache)
10
+ if (fs.existsSync('package.json')) {
11
+ execFileSync('npx', ['patch-package', '--error-on-fail', '--patch-dir', patchDir], {
12
+ cwd,
13
+ shell: process.platform === 'win32',
14
+ stdio: 'inherit',
15
+ });
16
+ }
17
+ } catch (e) {
18
+ /*
19
+ * To avoid disrupting workflows only log warning when postinstall fails.
20
+ * To see detailed error, run npm with --foreground-scripts option.
21
+ */
22
+ console.warn(`postinstall failed`, e); // eslint-disable-line no-console
23
+ }
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`expose-loader should work for a nested property for a global object: errors 1`] = `[]`;
4
4