@supabase/functions-js 2.0.0-rc.1 → 2.0.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/README.md CHANGED
@@ -4,3 +4,16 @@ JS Client library to interact with Supabase Functions.
4
4
 
5
5
  ## Docs
6
6
  https://supabase.github.io/functions-js/index.html
7
+
8
+ ## testing
9
+
10
+ To run tests you will need Node 18+.
11
+
12
+ You are going to need docker daemon running to execute tests.
13
+
14
+ To start test run use the following command:
15
+
16
+ ```sh
17
+ npm i
18
+ npm run test
19
+ ```
@@ -1,3 +1,3 @@
1
1
  import { Fetch } from './types';
2
- export declare const resolveFetch: (customFetch?: typeof fetch | undefined) => Fetch;
2
+ export declare const resolveFetch: (customFetch?: Fetch) => Fetch;
3
3
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAO,MAAM,YAAY,8CAA0B,KAUlD,CAAA"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAO,MAAM,YAAY,iBAAkB,KAAK,KAAG,KAUlD,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const version = "2.0.0-rc.1";
1
+ export declare const version = "2.0.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '2.0.0-rc.1';
4
+ exports.version = '2.0.0';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,3 @@
1
1
  import { Fetch } from './types';
2
- export declare const resolveFetch: (customFetch?: typeof fetch | undefined) => Fetch;
2
+ export declare const resolveFetch: (customFetch?: Fetch) => Fetch;
3
3
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAO,MAAM,YAAY,8CAA0B,KAUlD,CAAA"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAO,MAAM,YAAY,iBAAkB,KAAK,KAAG,KAUlD,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const version = "2.0.0-rc.1";
1
+ export declare const version = "2.0.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,2 +1,2 @@
1
- export const version = '2.0.0-rc.1';
1
+ export const version = '2.0.0';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@supabase/functions-js",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0",
4
4
  "description": "JS Client library to interact with Supabase Functions.",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",
7
7
  "types": "dist/module/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "scripts": {
10
- "clean": "rimraf dist docs",
10
+ "clean": "rimraf dist docs/v2",
11
11
  "format": "prettier --write \"{src,test}/**/*.ts\"",
12
12
  "build": "run-s clean format build:*",
13
13
  "build:main": "tsc -p tsconfig.json",
14
14
  "build:module": "tsc -p tsconfig.module.json",
15
- "docs": "typedoc src/index.ts src/types.ts --excludePrivate --excludeProtected",
16
- "docs:json": "typedoc --json docs/spec.json --excludeExternals src/index.ts src/types.ts",
17
- "test": "echo \"Error: no test specified\" && exit 1"
15
+ "docs": "typedoc src/index.ts --out docs/v2",
16
+ "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
17
+ "test": "jest"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
@@ -38,12 +38,23 @@
38
38
  "cross-fetch": "^3.1.5"
39
39
  },
40
40
  "devDependencies": {
41
+ "@types/jest": "^28.1.0",
42
+ "@types/jsonwebtoken": "^8.5.8",
43
+ "@types/node": "^18.7.0",
44
+ "genversion": "^3.0.2",
45
+ "jest": "^28.1.0",
46
+ "jsonwebtoken": "^8.5.1",
47
+ "nanoid": "^3.3.1",
41
48
  "npm-run-all": "^4.1.5",
42
49
  "prettier": "^2.6.0",
43
50
  "rimraf": "^3.0.2",
44
51
  "semantic-release": "^19.0.2",
45
52
  "semantic-release-plugin-update-version-in-files": "^1.1.0",
46
- "typedoc": "^0.22.16",
53
+ "testcontainers": "^8.5.1",
54
+ "ts-jest": "^28.0.0",
55
+ "ts-node": "^10.9.0",
56
+ "ts-test-decorators": "^0.0.6",
57
+ "typedoc": "^0.22.13",
47
58
  "typescript": "^4.6.2"
48
59
  },
49
60
  "publishConfig": {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.0.0-rc.1'
1
+ export const version = '2.0.0'