@firebase/data-connect 0.1.3 → 0.2.0-canary.144bc3709

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.
@@ -21,22 +21,17 @@ import { AuthTokenProvider } from '../../core/FirebaseAuthProvider';
21
21
  * @internal
22
22
  */
23
23
  export interface DataConnectTransport {
24
- invokeQuery<T, U>(queryName: string, body?: U): PromiseLike<{
24
+ invokeQuery<T, U>(queryName: string, body?: U): Promise<{
25
25
  data: T;
26
26
  errors: Error[];
27
27
  }>;
28
- invokeMutation<T, U>(queryName: string, body?: U): PromiseLike<{
28
+ invokeMutation<T, U>(queryName: string, body?: U): Promise<{
29
29
  data: T;
30
30
  errors: Error[];
31
31
  }>;
32
32
  useEmulator(host: string, port?: number, sslEnabled?: boolean): void;
33
33
  onTokenChanged: (token: string | null) => void;
34
34
  }
35
- export interface CancellableOperation<T> extends PromiseLike<{
36
- data: T;
37
- }> {
38
- cancel: () => void;
39
- }
40
35
  /**
41
36
  * @internal
42
37
  */
@@ -47,11 +47,11 @@ export declare class RESTTransport implements DataConnectTransport {
47
47
  data: T;
48
48
  errors: Error[];
49
49
  }>;
50
- invokeQuery: <T, U>(queryName: string, body?: U) => PromiseLike<{
50
+ invokeQuery: <T, U>(queryName: string, body?: U) => Promise<{
51
51
  data: T;
52
52
  errors: Error[];
53
53
  }>;
54
- invokeMutation: <T, U>(queryName: string, body?: U) => PromiseLike<{
54
+ invokeMutation: <T, U>(queryName: string, body?: U) => Promise<{
55
55
  data: T;
56
56
  errors: Error[];
57
57
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/data-connect",
3
- "version": "0.1.3",
3
+ "version": "0.2.0-canary.144bc3709",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",
@@ -31,10 +31,10 @@
31
31
  "prettier": "prettier --write '*.js' '*.ts' '@(src|test)/**/*.ts'",
32
32
  "build:deps": "lerna run --scope @firebase/'{app,data-connect}' --include-dependencies build",
33
33
  "dev": "rollup -c -w",
34
- "test": "run-p --npm-path npm test:emulator",
35
- "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:emulator",
36
- "test:all": "run-p --npm-path npm lint test:unit",
37
- "test:browser": "karma start --single-run",
34
+ "test": "run-p --npm-path npm lint test:emulator",
35
+ "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
36
+ "test:all": "run-p --npm-path npm lint test:browser test:node",
37
+ "test:browser": "karma start",
38
38
  "test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
39
39
  "test:unit": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/unit/**/*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
40
40
  "test:emulator": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/dataconnect-test-runner.ts",
@@ -45,17 +45,17 @@
45
45
  },
46
46
  "license": "Apache-2.0",
47
47
  "peerDependencies": {
48
- "@firebase/app": "0.x"
48
+ "@firebase/app": "0.10.18-canary.144bc3709"
49
49
  },
50
50
  "dependencies": {
51
- "@firebase/auth-interop-types": "0.2.4",
52
- "@firebase/component": "0.6.11",
53
- "@firebase/logger": "0.4.4",
54
- "@firebase/util": "1.10.2",
51
+ "@firebase/auth-interop-types": "0.2.4-canary.144bc3709",
52
+ "@firebase/component": "0.6.12-canary.144bc3709",
53
+ "@firebase/logger": "0.4.4-canary.144bc3709",
54
+ "@firebase/util": "1.10.3-canary.144bc3709",
55
55
  "tslib": "^2.1.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@firebase/app": "0.10.17",
58
+ "@firebase/app": "0.10.18-canary.144bc3709",
59
59
  "rollup": "2.79.1",
60
60
  "rollup-plugin-typescript2": "0.31.2",
61
61
  "typescript": "5.5.4"