osra 0.6.13 → 0.6.15

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.
@@ -0,0 +1,10 @@
1
+ import { OSRA_BOX } from '../types.js';
2
+ export type QuotedBox = {
3
+ [OSRA_BOX]: 'quoted';
4
+ box: 'revivable' | 'quoted';
5
+ value: Record<string, unknown>;
6
+ };
7
+ export declare const isQuotedBox: (value: unknown) => value is QuotedBox;
8
+ export declare const isQuotingBoxes: () => boolean;
9
+ export declare const withQuotedBoxes: <T>(fn: () => T) => T;
10
+ export declare const outsideQuoting: <T>(fn: () => T) => T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osra",
3
- "version": "0.6.13",
3
+ "version": "0.6.15",
4
4
  "description": "Easy communication between workers",
5
5
  "homepage": "https://github.com/banou26/osra#readme",
6
6
  "bugs": {
@@ -25,11 +25,13 @@
25
25
  "exports": {
26
26
  ".": {
27
27
  "types": "./build/index.d.ts",
28
- "import": "./build/index.js"
28
+ "import": "./build/index.js",
29
+ "default": "./build/index.js"
29
30
  },
30
31
  "./build/*": {
31
32
  "types": "./build/*.d.ts",
32
- "import": "./build/*.js"
33
+ "import": "./build/*.js",
34
+ "default": "./build/*.js"
33
35
  },
34
36
  "./package.json": "./package.json"
35
37
  },
@@ -47,6 +49,7 @@
47
49
  "test": "npm run build && npm run build-test && npx playwright test",
48
50
  "test-node": "npm run build && npm run build-test-node && node --expose-gc --test --test-force-exit build-test-node/node.js",
49
51
  "test-toolchain": "node --test tests/node/toolchain.ts",
52
+ "test-require": "npm run build && node --test tests/node/require.ts",
50
53
  "test-watch": "set PWTEST_WATCH=1 & npx playwright test",
51
54
  "test-watch-headful": "nodemon --watch build-test --exec \"npx playwright test --headed\"",
52
55
  "test-with-coverage": "VITE_COVERAGE=true npm run build-test && VITE_COVERAGE=true npx playwright test && npm run print-coverage && npm run clean-coverage",