@react-native-harness/tools 1.1.0-rc.3 → 1.1.0

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": "@react-native-harness/tools",
3
- "version": "1.1.0-rc.3",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
package/dist/runtime.d.ts DELETED
@@ -1,10 +0,0 @@
1
- declare global {
2
- var Bun: boolean | undefined;
3
- var Deno: boolean | undefined;
4
- }
5
- export declare const isBun: boolean;
6
- export declare const isDeno: boolean;
7
- export declare const isNode: boolean;
8
- export type Runtime = 'bun' | 'deno' | 'node';
9
- export declare const getRuntime: () => Runtime;
10
- //# sourceMappingURL=runtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,GAAG,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,IAAI,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAED,eAAO,MAAM,KAAK,EAAE,OAAsB,CAAC;AAC3C,eAAO,MAAM,MAAM,EAAE,OAAuB,CAAC;AAC7C,eAAO,MAAM,MAAM,EAAE,OAAoD,CAAC;AAE1E,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C,eAAO,MAAM,UAAU,QAAO,OAI7B,CAAC"}
package/dist/runtime.js DELETED
@@ -1,10 +0,0 @@
1
- export const isBun = !!global.Bun;
2
- export const isDeno = !!global.Deno;
3
- export const isNode = !!global.process?.versions?.node && !isBun;
4
- export const getRuntime = () => {
5
- if (isBun)
6
- return 'bun';
7
- if (isDeno)
8
- return 'deno';
9
- return 'node';
10
- };
package/dist/timeout.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const withTimeout: <T>(promise: Promise<T>, timeout: number, onTimeout: () => Error) => Promise<T>;
2
- //# sourceMappingURL=timeout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../src/timeout.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,CAAC,EAC3B,SAAS,OAAO,CAAC,CAAC,CAAC,EACnB,SAAS,MAAM,EACf,WAAW,MAAM,KAAK,KACrB,OAAO,CAAC,CAAC,CAkBX,CAAC"}
package/dist/timeout.js DELETED
@@ -1,16 +0,0 @@
1
- export const withTimeout = (promise, timeout, onTimeout) => {
2
- return new Promise((resolve, reject) => {
3
- const timeoutId = setTimeout(() => {
4
- reject(onTimeout());
5
- }, timeout);
6
- const onResolve = (result) => {
7
- clearTimeout(timeoutId);
8
- resolve(result);
9
- };
10
- const onReject = (error) => {
11
- clearTimeout(timeoutId);
12
- reject(error);
13
- };
14
- promise.then(onResolve).catch(onReject);
15
- });
16
- };