@grest-ts/http 0.0.63 → 0.0.65
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 +161 -156
- package/dist/src/_dedupCheck.js +1 -1
- package/dist/src/client/GGHttpSchema.createClient.d.ts +2 -2
- package/dist/src/client/GGHttpSchema.createClient.d.ts.map +1 -1
- package/dist/src/client/GGHttpSchema.createClient.js.map +1 -1
- package/dist/src/index-browser.d.ts +0 -1
- package/dist/src/index-browser.d.ts.map +1 -1
- package/dist/src/index-browser.js +0 -1
- package/dist/src/index-browser.js.map +1 -1
- package/dist/src/index-node.d.ts +0 -2
- package/dist/src/index-node.d.ts.map +1 -1
- package/dist/src/index-node.js +0 -2
- package/dist/src/index-node.js.map +1 -1
- package/dist/src/rpc/RpcResponse/GGRpcResponseParser.d.ts.map +1 -1
- package/dist/src/rpc/RpcResponse/GGRpcResponseParser.js +13 -2
- package/dist/src/rpc/RpcResponse/GGRpcResponseParser.js.map +1 -1
- package/dist/src/schema/GGHttpSchema.d.ts +8 -2
- package/dist/src/schema/GGHttpSchema.d.ts.map +1 -1
- package/dist/src/schema/GGHttpSchema.js +6 -6
- package/dist/src/schema/GGHttpSchema.js.map +1 -1
- package/dist/src/server/GGHttp.d.ts +6 -6
- package/dist/src/server/GGHttp.d.ts.map +1 -1
- package/dist/src/server/GGHttp.js +4 -3
- package/dist/src/server/GGHttp.js.map +1 -1
- package/dist/src/server/GGHttpSchema.startServer.d.ts +5 -20
- package/dist/src/server/GGHttpSchema.startServer.d.ts.map +1 -1
- package/dist/src/server/GGHttpSchema.startServer.js +5 -12
- package/dist/src/server/GGHttpSchema.startServer.js.map +1 -1
- package/dist/src/server/GGHttpServer.d.ts +10 -8
- package/dist/src/server/GGHttpServer.d.ts.map +1 -1
- package/dist/src/server/GGHttpServer.js +4 -4
- package/dist/src/server/GGHttpServer.js.map +1 -1
- package/dist/src/server/checkers/checkPermissionsAtStart.d.ts +6 -4
- package/dist/src/server/checkers/checkPermissionsAtStart.d.ts.map +1 -1
- package/dist/src/server/checkers/checkPermissionsAtStart.js +14 -9
- package/dist/src/server/checkers/checkPermissionsAtStart.js.map +1 -1
- package/dist/testkit/clientHttp/GGHttpSchema.callOn.d.ts +2 -2
- package/dist/testkit/clientHttp/GGHttpSchema.callOn.d.ts.map +1 -1
- package/dist/testkit/clientHttp/GGHttpSchema.callOn.js.map +1 -1
- package/dist/testkit/mock/GGHttpSchema.mock.d.ts +1 -1
- package/dist/testkit/mock/GGHttpSchema.mock.d.ts.map +1 -1
- package/dist/testkit/routing/GGHttpSchema.routing.d.ts +1 -1
- package/dist/testkit/routing/GGHttpSchema.routing.d.ts.map +1 -1
- package/dist/testkit/routing/GGHttpSchema.routing.js.map +1 -1
- package/dist/tsconfig.publish.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/_dedupCheck.ts +1 -1
- package/src/client/GGHttpSchema.createClient.test.ts +22 -4
- package/src/client/GGHttpSchema.createClient.ts +5 -5
- package/src/index-browser.ts +0 -1
- package/src/index-node.ts +0 -2
- package/src/rpc/RpcResponse/GGRpcResponseParser.ts +13 -2
- package/src/schema/GGHttpSchema.ts +14 -12
- package/src/server/GGHttp.ts +11 -10
- package/src/server/GGHttpSchema.startServer.ts +11 -35
- package/src/server/GGHttpServer.ts +13 -12
- package/src/server/checkers/checkPermissionsAtStart.ts +17 -11
- package/dist/src/schema/httpSchema.d.ts +0 -41
- package/dist/src/schema/httpSchema.d.ts.map +0 -1
- package/dist/src/schema/httpSchema.js +0 -48
- package/dist/src/schema/httpSchema.js.map +0 -1
- package/src/schema/httpSchema.ts +0 -58
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GGHttpSchema.mock.d.ts","sourceRoot":"","sources":["../../../testkit/mock/GGHttpSchema.mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,uBAAuB,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAC,MAAM,mBAAmB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,EAAE,MAAM,CAAC;IAChC,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC;gBAEzB,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,qBAAqB;IAStD,MAAM,IAAI,MAAM;IAIvB,SAAS,CAAC,UAAU,IAAI,IAAI;IAI5B,SAAS,CAAC,YAAY,IAAI,IAAI;IAI9B,SAAS,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG;CAGhD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import type { GGApiRoutingSelector } from "./GGApiRoutingSelector";
|
|
5
5
|
import { GGContractApiDefinition } from "@grest-ts/schema";
|
|
6
6
|
declare module "../../src/schema/GGHttpSchema" {
|
|
7
|
-
interface GGHttpSchema<TContract extends GGContractApiDefinition
|
|
7
|
+
interface GGHttpSchema<TContract extends GGContractApiDefinition> {
|
|
8
8
|
/**
|
|
9
9
|
* Routing selector for this API (for testing)
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GGHttpSchema.routing.d.ts","sourceRoot":"","sources":["../../../testkit/routing/GGHttpSchema.routing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAA;AAEhE,OAAO,EAAC,uBAAuB,EAAC,MAAM,kBAAkB,CAAC;AAMzD,OAAO,QAAQ,+BAA+B,CAAC;IAC3C,UAAU,YAAY,CAAC,SAAS,SAAS,uBAAuB
|
|
1
|
+
{"version":3,"file":"GGHttpSchema.routing.d.ts","sourceRoot":"","sources":["../../../testkit/routing/GGHttpSchema.routing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAA;AAEhE,OAAO,EAAC,uBAAuB,EAAC,MAAM,kBAAkB,CAAC;AAMzD,OAAO,QAAQ,+BAA+B,CAAC;IAC3C,UAAU,YAAY,CAAC,SAAS,SAAS,uBAAuB;QAC5D;;WAEG;QACH,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAA;KACzC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GGHttpSchema.routing.js","sourceRoot":"","sources":["../../../testkit/routing/GGHttpSchema.routing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAC,8BAA8B,EAAC,MAAM,mCAAmC,CAAA;AAEhF,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAG3D,kDAAkD;AAClD,MAAM,gBAAgB,GAAG,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"GGHttpSchema.routing.js","sourceRoot":"","sources":["../../../testkit/routing/GGHttpSchema.routing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAC,8BAA8B,EAAC,MAAM,mCAAmC,CAAA;AAEhF,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAG3D,kDAAkD;AAClD,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAqD,CAAA;AAYzF,yCAAyC;AACzC,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE;IACrD,GAAG;QACC,IAAI,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,QAAQ,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YACxD,gBAAgB,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;QACxC,CAAC;QACD,OAAO,QAAQ,CAAA;IACnB,CAAC;IACD,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,IAAI;CACrB,CAAC,CAAA"}
|