obsidian-integration-testing 4.2.2 → 4.2.4
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/README.md +4 -7
- package/dist/lib/cjs/exec.cjs +1 -1
- package/dist/lib/cjs/library.cjs +1 -1
- package/dist/lib/cjs/strict-proxy.cjs +97 -0
- package/dist/lib/cjs/strict-proxy.d.cts +44 -0
- package/dist/lib/cjs/transport-factory.cjs +3 -2
- package/dist/lib/cjs/type-guards.cjs +11 -1
- package/dist/lib/cjs/type-guards.d.cts +26 -0
- package/dist/lib/esm/exec.mjs +1 -1
- package/dist/lib/esm/library.mjs +1 -1
- package/dist/lib/esm/strict-proxy.d.mts +44 -0
- package/dist/lib/esm/strict-proxy.mjs +72 -0
- package/dist/lib/esm/transport-factory.mjs +3 -2
- package/dist/lib/esm/type-guards.d.mts +26 -0
- package/dist/lib/esm/type-guards.mjs +9 -1
- package/dist/obsidian-integration-testing-4.2.4.tgz +0 -0
- package/package.json +2 -5
- package/dist/obsidian-integration-testing-4.2.2.tgz +0 -0
- package/patches/@wdio+protocols+9.27.0.patch +0 -12
- package/patches/@wdio+types+9.27.0.patch +0 -13
- package/patches/vite+8.0.12.patch +0 -15
- package/patches/webdriverio+9.27.0.patch +0 -38
- package/scripts/postinstall.mjs +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "obsidian-integration-testing",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
4
4
|
"description": "Simplifies integration testing of Obsidian plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"obsidian",
|
|
@@ -67,9 +67,7 @@
|
|
|
67
67
|
"**/package.json",
|
|
68
68
|
"dist/",
|
|
69
69
|
"LICENSE",
|
|
70
|
-
"
|
|
71
|
-
"README.md",
|
|
72
|
-
"scripts/postinstall.mjs"
|
|
70
|
+
"README.md"
|
|
73
71
|
],
|
|
74
72
|
"scripts": {
|
|
75
73
|
"build": "jiti scripts/build.ts",
|
|
@@ -81,7 +79,6 @@
|
|
|
81
79
|
"commit": "jiti scripts/commit.ts",
|
|
82
80
|
"format": "jiti scripts/format.ts",
|
|
83
81
|
"format:check": "jiti scripts/format-check.ts",
|
|
84
|
-
"postinstall": "node scripts/postinstall.mjs",
|
|
85
82
|
"lint": "jiti scripts/lint.ts",
|
|
86
83
|
"lint:fix": "jiti scripts/lint-fix.ts",
|
|
87
84
|
"lint:md": "jiti scripts/lint-md.ts",
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/@wdio/protocols/tsconfig.json b/node_modules/@wdio/protocols/tsconfig.json
|
|
2
|
-
index 21e7b19..8dbebc0 100644
|
|
3
|
-
--- a/node_modules/@wdio/protocols/tsconfig.json
|
|
4
|
-
+++ b/node_modules/@wdio/protocols/tsconfig.json
|
|
5
|
-
@@ -1,7 +1,5 @@
|
|
6
|
-
{
|
|
7
|
-
- "extends": "../../tsconfig",
|
|
8
|
-
"compilerOptions": {
|
|
9
|
-
- "baseUrl": ".",
|
|
10
|
-
"outDir": "build",
|
|
11
|
-
"rootDir": "src",
|
|
12
|
-
"removeComments": false
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/@wdio/types/build/Capabilities.d.ts b/node_modules/@wdio/types/build/Capabilities.d.ts
|
|
2
|
-
index 945fb98..e17332d 100644
|
|
3
|
-
--- a/node_modules/@wdio/types/build/Capabilities.d.ts
|
|
4
|
-
+++ b/node_modules/@wdio/types/build/Capabilities.d.ts
|
|
5
|
-
@@ -146,7 +146,7 @@ export interface WithRequestedCapabilities {
|
|
6
|
-
* })
|
|
7
|
-
* ```
|
|
8
|
-
*/
|
|
9
|
-
- capabilities: RequestedStandaloneCapabilities;
|
|
10
|
-
+ capabilities?: RequestedStandaloneCapabilities;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The `capabilities` property is a required property when defining a testrunner configuration.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/vite/dist/node/index.d.ts b/node_modules/vite/dist/node/index.d.ts
|
|
2
|
-
index 023a11a..e72d5b0 100644
|
|
3
|
-
--- a/node_modules/vite/dist/node/index.d.ts
|
|
4
|
-
+++ b/node_modules/vite/dist/node/index.d.ts
|
|
5
|
-
@@ -2770,7 +2770,9 @@ interface ConfigPluginContext extends Omit<MinimalPluginContext, "meta" | "envir
|
|
6
|
-
}
|
|
7
|
-
interface MinimalPluginContextWithoutEnvironment extends Omit<MinimalPluginContext, "environment"> {}
|
|
8
|
-
declare module "rolldown" {
|
|
9
|
-
- interface MinimalPluginContext extends PluginContextExtension {}
|
|
10
|
-
+ interface MinimalPluginContext {
|
|
11
|
-
+ environment: Environment;
|
|
12
|
-
+ }
|
|
13
|
-
interface PluginContextMeta extends PluginContextMetaExtension {}
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/webdriverio/build/index.js b/node_modules/webdriverio/build/index.js
|
|
2
|
-
index 49fdef4..518d80b 100644
|
|
3
|
-
--- a/node_modules/webdriverio/build/index.js
|
|
4
|
-
+++ b/node_modules/webdriverio/build/index.js
|
|
5
|
-
@@ -3763,7 +3763,7 @@ import { getBrowserObject as getBrowserObject6 } from "@wdio/utils";
|
|
6
|
-
|
|
7
|
-
// src/utils/interception/index.ts
|
|
8
|
-
import logger8 from "@wdio/logger";
|
|
9
|
-
-import { URLPattern } from "urlpattern-polyfill";
|
|
10
|
-
+import { URLPattern } from "node:url";
|
|
11
|
-
|
|
12
|
-
// src/utils/Timer.ts
|
|
13
|
-
var TIMEOUT_ERROR = "timeout";
|
|
14
|
-
diff --git a/node_modules/webdriverio/build/node.js b/node_modules/webdriverio/build/node.js
|
|
15
|
-
index ec3e2ae..6cd9a8e 100644
|
|
16
|
-
--- a/node_modules/webdriverio/build/node.js
|
|
17
|
-
+++ b/node_modules/webdriverio/build/node.js
|
|
18
|
-
@@ -3950,7 +3950,7 @@ import { getBrowserObject as getBrowserObject7 } from "@wdio/utils";
|
|
19
|
-
|
|
20
|
-
// src/utils/interception/index.ts
|
|
21
|
-
import logger9 from "@wdio/logger";
|
|
22
|
-
-import { URLPattern } from "urlpattern-polyfill";
|
|
23
|
-
+import { URLPattern } from "node:url";
|
|
24
|
-
|
|
25
|
-
// src/utils/Timer.ts
|
|
26
|
-
var TIMEOUT_ERROR = "timeout";
|
|
27
|
-
diff --git a/node_modules/webdriverio/build/utils/interception/index.d.ts b/node_modules/webdriverio/build/utils/interception/index.d.ts
|
|
28
|
-
index b757b23..78c79dd 100644
|
|
29
|
-
--- a/node_modules/webdriverio/build/utils/interception/index.d.ts
|
|
30
|
-
+++ b/node_modules/webdriverio/build/utils/interception/index.d.ts
|
|
31
|
-
@@ -1,6 +1,6 @@
|
|
32
|
-
import type { JsonCompatible } from '@wdio/types';
|
|
33
|
-
import { type local, type remote } from 'webdriver';
|
|
34
|
-
-import { URLPattern } from 'urlpattern-polyfill';
|
|
35
|
-
+import { URLPattern } from 'node:url';
|
|
36
|
-
import type { MockFilterOptions, RequestWithOptions, RespondWithOptions } from './types.js';
|
|
37
|
-
import type { WaitForOptions } from '../../types.js';
|
|
38
|
-
type RespondBody = string | JsonCompatible | Buffer;
|
package/scripts/postinstall.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import {
|
|
3
|
-
join,
|
|
4
|
-
relative
|
|
5
|
-
} from 'node:path/posix';
|
|
6
|
-
import {
|
|
7
|
-
cwd,
|
|
8
|
-
env
|
|
9
|
-
} from 'node:process';
|
|
10
|
-
|
|
11
|
-
const isGlobalInstall = env.npm_config_global === 'true';
|
|
12
|
-
|
|
13
|
-
if (isGlobalInstall) {
|
|
14
|
-
console.log('Global install detected, skipping patch-package...');
|
|
15
|
-
process.exit(0);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
let pkgDir = cwd().replace(/\\/g, '/');
|
|
19
|
-
const patchDir = join(pkgDir, 'patches');
|
|
20
|
-
const relativePath = '/node_modules/obsidian-integration-testing';
|
|
21
|
-
if (pkgDir.endsWith(relativePath)) {
|
|
22
|
-
pkgDir = pkgDir.slice(0, -relativePath.length);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
spawnSync(`npx patch-package --patch-dir "${relative(pkgDir, patchDir)}"`, {
|
|
26
|
-
shell: true,
|
|
27
|
-
stdio: 'inherit',
|
|
28
|
-
cwd: pkgDir
|
|
29
|
-
});
|