@fougere/adapter-rest 0.19.1-alpha.0 → 0.20.1-alpha.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.
@@ -0,0 +1,10 @@
1
+ import { Format, type Accepted } from '@fougere/schema';
2
+ /** What `protocols: { rest: … }` may say — nothing yet, so nothing is admitted. */
3
+ declare const REST: Format<object>;
4
+ declare module '@fougere/core' {
5
+ interface FougereProtocols {
6
+ rest: Accepted<typeof REST>;
7
+ }
8
+ }
9
+ export {};
10
+ //# sourceMappingURL=RestProtocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RestProtocol.d.ts","sourceRoot":"","sources":["../src/RestProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGxD,mFAAmF;AACnF,QAAA,MAAM,IAAI,gBAAsC,CAAC;AAEjD,OAAO,QAAQ,eAAe,CAAC;IAC7B,UAAU,gBAAgB;QACxB,IAAI,EAAE,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;KAC7B;CACF"}
@@ -0,0 +1,6 @@
1
+ import { Format } from '@fougere/schema';
2
+ import { Protocols } from '@fougere/core';
3
+ /** What `protocols: { rest: … }` may say — nothing yet, so nothing is admitted. */
4
+ const REST = Format.of('protocol/rest').closed();
5
+ Protocols.register('rest', { format: REST });
6
+ //# sourceMappingURL=RestProtocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RestProtocol.js","sourceRoot":"","sources":["../src/RestProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiB,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,mFAAmF;AACnF,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,CAAC;AAQjD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './RestProtocol.js';
1
2
  export { generateRoutes, type RouteDefinition } from './routes/RouteDefinition.js';
2
3
  export type { HttpMethod } from '@fougere/http';
3
4
  export { registerRoutes } from './register.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import './RestProtocol.js';
1
2
  export { generateRoutes } from './routes/RouteDefinition.js';
2
3
  export { registerRoutes } from './register.js';
3
4
  // No schema endpoint here. Discovery is `rpc.discover` on the envelope — one
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,6BAA6B,CAAC;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,sCAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAwB,MAAM,6BAA6B,CAAC;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,sCAAsC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fougere/adapter-rest",
3
- "version": "0.19.1-alpha.0",
3
+ "version": "0.20.1-alpha.0",
4
4
  "description": "Entity → REST routes.",
5
5
  "keywords": [
6
6
  "fougere",
@@ -21,7 +21,8 @@
21
21
  "exports": {
22
22
  ".": {
23
23
  "types": "./dist/index.d.ts",
24
- "import": "./dist/index.js"
24
+ "import": "./dist/index.js",
25
+ "default": "./dist/index.js"
25
26
  }
26
27
  },
27
28
  "files": [
@@ -29,9 +30,9 @@
29
30
  "src"
30
31
  ],
31
32
  "dependencies": {
32
- "@fougere/core": "0.19.1-alpha.0",
33
- "@fougere/schema": "0.19.1-alpha.0",
34
- "@fougere/http": "0.19.1-alpha.0"
33
+ "@fougere/core": "0.20.1-alpha.0",
34
+ "@fougere/schema": "0.20.1-alpha.0",
35
+ "@fougere/http": "0.20.1-alpha.0"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public"
@@ -0,0 +1,13 @@
1
+ import { Format, type Accepted } from '@fougere/schema';
2
+ import { Protocols } from '@fougere/core';
3
+
4
+ /** What `protocols: { rest: … }` may say — nothing yet, so nothing is admitted. */
5
+ const REST = Format.of('protocol/rest').closed();
6
+
7
+ declare module '@fougere/core' {
8
+ interface FougereProtocols {
9
+ rest: Accepted<typeof REST>;
10
+ }
11
+ }
12
+
13
+ Protocols.register('rest', { format: REST });
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './RestProtocol.js';
1
2
  export { generateRoutes, type RouteDefinition } from './routes/RouteDefinition.js';
2
3
  export type { HttpMethod } from '@fougere/http';
3
4
  export { registerRoutes } from './register.js';