chrome-in-iframe 2.0.0 → 2.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/dist/log.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export type Logger = (scope: string, ...args: unknown[]) => void;
2
+ export declare function setLogger(logger: Logger | null): void;
3
+ export declare function warn(scope: string, ...args: unknown[]): void;
@@ -1,3 +1,3 @@
1
1
  import type { ClientContext, MessageMeta, Messages } from '../channel/types';
2
- export declare function handleReleaseCallbacks(data: Messages['releaseCallbacks'], ctx: ClientContext, _meta: MessageMeta): void;
2
+ export declare function handleReleaseCallbacks(data: Messages['releaseCallbacks'], ctx: ClientContext, meta: MessageMeta): void;
3
3
  export declare function handleDestroyEndpoint(_data: Messages['destroyEndpoint'], ctx: ClientContext, meta: MessageMeta): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-in-iframe",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Bridge library that allows iframes in Chrome extension pages to call Chrome extension APIs",
5
5
  "license": "ISC",
6
6
  "author": "GumerLee",
@@ -10,11 +10,11 @@
10
10
  "sideEffects": false,
11
11
  "exports": {
12
12
  ".": {
13
- "import": {
14
- "types": "./dist/index.d.ts",
15
- "default": "./dist/index.js"
16
- }
17
- }
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "./package.json": "./package.json"
18
18
  },
19
19
  "keywords": [
20
20
  "chrome-extension",
@@ -36,7 +36,6 @@
36
36
  "build": "rollup -c",
37
37
  "dev": "rollup -c -w",
38
38
  "test": "vitest run",
39
- "test:watch": "vitest",
40
39
  "lint": "eslint src test",
41
40
  "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
42
41
  "typecheck": "tsc --noEmit",