@promakeai/inspector-hook 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +54 -53
package/README.md CHANGED
@@ -520,10 +520,9 @@ const inspector = useInspector(iframeRef, {
520
520
 
521
521
  ```typescript
522
522
  interface UrlChangeData {
523
- url: string;
524
- pathname: string;
525
- search: string;
526
- hash: string;
523
+ oldUrl: string;
524
+ newUrl: string;
525
+ timestamp: number;
527
526
  }
528
527
  ```
529
528
 
package/package.json CHANGED
@@ -1,53 +1,54 @@
1
- {
2
- "name": "@promakeai/inspector-hook",
3
- "version": "1.1.0",
4
- "description": "React hook for controlling inspector in parent applications",
5
- "author": "Promake",
6
- "type": "module",
7
- "main": "./dist/index.js",
8
- "module": "./dist/index.js",
9
- "types": "./dist/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js"
14
- },
15
- "./package.json": "./package.json"
16
- },
17
- "files": [
18
- "dist"
19
- ],
20
- "scripts": {
21
- "build": "tsc --build",
22
- "dev": "tsc --watch",
23
- "clean": "rm -rf dist",
24
- "lint": "tsc --build --force --dry",
25
- "test": "vitest run",
26
- "test:watch": "vitest",
27
- "test:coverage": "vitest run --coverage",
28
- "prepublishOnly": "bun run build"
29
- },
30
- "keywords": [
31
- "react",
32
- "hook",
33
- "inspector",
34
- "iframe"
35
- ],
36
- "peerDependencies": {
37
- "react": ">=18.0.0",
38
- "react-dom": ">=18.0.0",
39
- "vite": ">=5.0.0"
40
- },
41
- "peerDependenciesMeta": {
42
- "vite": {
43
- "optional": true
44
- }
45
- },
46
- "devDependencies": {
47
- "@promakeai/inspector-types": "^1.0.1",
48
- "vitest": "^1.0.0"
49
- },
50
- "publishConfig": {
51
- "access": "public"
52
- }
53
- }
1
+ {
2
+ "name": "@promakeai/inspector-hook",
3
+ "version": "1.1.1",
4
+ "description": "React hook for controlling inspector in parent applications",
5
+ "author": "Promake",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsc --build",
22
+ "dev": "tsc --watch",
23
+ "clean": "rm -rf dist",
24
+ "lint": "tsc --build --force --dry",
25
+ "test": "vitest run",
26
+ "test:watch": "vitest",
27
+ "test:coverage": "vitest run --coverage",
28
+ "prepublishOnly": "bun run build",
29
+ "release": "bun run build && npm publish --access public"
30
+ },
31
+ "keywords": [
32
+ "react",
33
+ "hook",
34
+ "inspector",
35
+ "iframe"
36
+ ],
37
+ "peerDependencies": {
38
+ "react": ">=18.0.0",
39
+ "react-dom": ">=18.0.0",
40
+ "vite": ">=5.0.0"
41
+ },
42
+ "peerDependenciesMeta": {
43
+ "vite": {
44
+ "optional": true
45
+ }
46
+ },
47
+ "devDependencies": {
48
+ "@promakeai/inspector-types": "1.0.2",
49
+ "vitest": "^1.0.0"
50
+ },
51
+ "publishConfig": {
52
+ "access": "public"
53
+ }
54
+ }