@fedify/adonisjs 2.4.0-dev.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.
Files changed (82) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +420 -0
  3. package/dist/configure.cjs +108 -0
  4. package/dist/configure.cjs.map +1 -0
  5. package/dist/configure.d.cts +14 -0
  6. package/dist/configure.d.ts +14 -0
  7. package/dist/configure.js +107 -0
  8. package/dist/configure.js.map +1 -0
  9. package/dist/index.cjs +19 -0
  10. package/dist/index.d.cts +8 -0
  11. package/dist/index.d.ts +8 -0
  12. package/dist/index.js +8 -0
  13. package/dist/package.cjs +121 -0
  14. package/dist/package.cjs.map +1 -0
  15. package/dist/package.js +115 -0
  16. package/dist/package.js.map +1 -0
  17. package/dist/providers/fedify_provider.cjs +270 -0
  18. package/dist/providers/fedify_provider.cjs.map +1 -0
  19. package/dist/providers/fedify_provider.d.cts +54 -0
  20. package/dist/providers/fedify_provider.d.ts +55 -0
  21. package/dist/providers/fedify_provider.js +269 -0
  22. package/dist/providers/fedify_provider.js.map +1 -0
  23. package/dist/services/builder.cjs +9 -0
  24. package/dist/services/builder.cjs.map +1 -0
  25. package/dist/services/builder.d.cts +7 -0
  26. package/dist/services/builder.d.ts +8 -0
  27. package/dist/services/builder.js +8 -0
  28. package/dist/services/builder.js.map +1 -0
  29. package/dist/src/builder.cjs +55 -0
  30. package/dist/src/builder.cjs.map +1 -0
  31. package/dist/src/builder.d.cts +14 -0
  32. package/dist/src/builder.d.ts +14 -0
  33. package/dist/src/builder.js +54 -0
  34. package/dist/src/builder.js.map +1 -0
  35. package/dist/src/define_config.cjs +114 -0
  36. package/dist/src/define_config.cjs.map +1 -0
  37. package/dist/src/define_config.d.cts +30 -0
  38. package/dist/src/define_config.d.ts +30 -0
  39. package/dist/src/define_config.js +113 -0
  40. package/dist/src/define_config.js.map +1 -0
  41. package/dist/src/errors.cjs +77 -0
  42. package/dist/src/errors.cjs.map +1 -0
  43. package/dist/src/errors.d.cts +56 -0
  44. package/dist/src/errors.d.ts +56 -0
  45. package/dist/src/errors.js +73 -0
  46. package/dist/src/errors.js.map +1 -0
  47. package/dist/src/fedify_middleware.cjs +507 -0
  48. package/dist/src/fedify_middleware.cjs.map +1 -0
  49. package/dist/src/fedify_middleware.d.cts +85 -0
  50. package/dist/src/fedify_middleware.d.ts +85 -0
  51. package/dist/src/fedify_middleware.js +505 -0
  52. package/dist/src/fedify_middleware.js.map +1 -0
  53. package/dist/src/http_context.cjs +79 -0
  54. package/dist/src/http_context.cjs.map +1 -0
  55. package/dist/src/http_context.d.cts +31 -0
  56. package/dist/src/http_context.d.ts +31 -0
  57. package/dist/src/http_context.js +76 -0
  58. package/dist/src/http_context.js.map +1 -0
  59. package/dist/src/logging.cjs +106 -0
  60. package/dist/src/logging.cjs.map +1 -0
  61. package/dist/src/logging.d.cts +45 -0
  62. package/dist/src/logging.d.ts +45 -0
  63. package/dist/src/logging.js +106 -0
  64. package/dist/src/logging.js.map +1 -0
  65. package/dist/src/types.cjs +1 -0
  66. package/dist/src/types.d.cts +269 -0
  67. package/dist/src/types.d.ts +269 -0
  68. package/dist/src/types.js +1 -0
  69. package/dist/src/unusable_authority.cjs +79 -0
  70. package/dist/src/unusable_authority.cjs.map +1 -0
  71. package/dist/src/unusable_authority.js +76 -0
  72. package/dist/src/unusable_authority.js.map +1 -0
  73. package/dist/stubs/config/fedify.stub +105 -0
  74. package/dist/stubs/federation/main.stub +64 -0
  75. package/dist/stubs/main.cjs +16 -0
  76. package/dist/stubs/main.cjs.map +1 -0
  77. package/dist/stubs/main.d.cts +11 -0
  78. package/dist/stubs/main.d.ts +11 -0
  79. package/dist/stubs/main.js +15 -0
  80. package/dist/stubs/main.js.map +1 -0
  81. package/dist/stubs/start/federation.stub +20 -0
  82. package/package.json +124 -0
@@ -0,0 +1,107 @@
1
+ import { version } from "./package.js";
2
+ import { stubsRoot } from "./stubs/main.js";
3
+
4
+ //#region configure.ts
5
+ /**
6
+ * The range the Fedify runtime packages are installed with.
7
+ *
8
+ * Derived from this package's own version so a release cannot leave it behind:
9
+ * every package in this monorepo shares one version, and the `@fedify/fedify`
10
+ * peer dependency is declared as `workspace:^`, which publishes as this range.
11
+ *
12
+ * Installing unpinned would pull the next major once it is out, which the peer
13
+ * range rejects: a peer warning, and two copies of the vocabulary, which the
14
+ * `instanceof` comparisons noted below cannot survive.
15
+ */
16
+ const FEDIFY_RANGE = `^${version}`;
17
+ /**
18
+ * Wires `@fedify/adonisjs` into an application.
19
+ *
20
+ * Run by `node ace configure @fedify/adonisjs` (and therefore by
21
+ * `node ace add @fedify/adonisjs`); see the module documentation for the
22
+ * steps it performs.
23
+ */
24
+ async function configure(command) {
25
+ const codemods = await command.createCodemods();
26
+ /**
27
+ * Fedify itself is a peer dependency: the application, not this package,
28
+ * decides which version it runs, and having exactly one copy in the tree
29
+ * matters because Fedify's vocabulary classes are compared with `instanceof`.
30
+ *
31
+ * `@fedify/vocab` carries the ActivityStreams classes (`Person`, `Follow`,
32
+ * `Note`, …) that dispatchers and inbox listeners are written against.
33
+ */
34
+ await codemods.installPackages([{
35
+ name: `@fedify/fedify@${FEDIFY_RANGE}`,
36
+ isDevDependency: false
37
+ }, {
38
+ name: `@fedify/vocab@${FEDIFY_RANGE}`,
39
+ isDevDependency: false
40
+ }]);
41
+ /**
42
+ * `PUBLIC_URL` is the canonical origin remote servers use to reach this
43
+ * application. Fedify mints actor URIs and activity IDs from it, so it has to
44
+ * be the public address rather than the listen address — behind a proxy or a
45
+ * `fedify tunnel` those differ.
46
+ *
47
+ * `FEDERATION_HANDLE_HOST` is optional and only needed when fediverse handles
48
+ * live on a different domain than the web origin, for example `@me@example.com`
49
+ * served from `https://social.example.com`.
50
+ */
51
+ await codemods.defineEnvValidations({
52
+ leadingComment: "Variables for configuring Fedify",
53
+ variables: {
54
+ PUBLIC_URL: `Env.schema.string({ format: 'url', tld: false })`,
55
+ FEDERATION_HANDLE_HOST: `Env.schema.string.optional({ format: 'host' })`
56
+ }
57
+ });
58
+ await codemods.defineEnvVariables({ PUBLIC_URL: "http://localhost:3333" });
59
+ /**
60
+ * `config/fedify.ts` — the federation options.
61
+ */
62
+ await codemods.makeUsingStub(stubsRoot, "config/fedify.stub", {});
63
+ /**
64
+ * `start/federation.ts` — a preload file that imports the application's
65
+ * dispatcher modules.
66
+ *
67
+ * A preload file rather than directory globbing: preload files are ordinary
68
+ * application source, so `node ace build` compiles them and their relative
69
+ * imports along with everything else, and AdonisJS imports them after every
70
+ * provider has booted, which is what lets dispatchers use Lucid models.
71
+ */
72
+ await codemods.makeUsingStub(stubsRoot, "start/federation.stub", {});
73
+ /**
74
+ * `app/federation/main.ts` — a starting point for dispatchers.
75
+ */
76
+ await codemods.makeUsingStub(stubsRoot, "federation/main.stub", {});
77
+ await codemods.updateRcFile((rcFile) => {
78
+ rcFile.addProvider("@fedify/adonisjs/fedify_provider");
79
+ rcFile.addPreloadFile("#start/federation");
80
+ });
81
+ /**
82
+ * The middleware must live in the **server** stack.
83
+ *
84
+ * Fedify answers paths the AdonisJS router does not know about
85
+ * (`/.well-known/webfinger`, `/.well-known/nodeinfo`, actor and inbox
86
+ * endpoints), so it has to run before route matching. The server stack also
87
+ * runs before `bodyparser_middleware` and before `@adonisjs/shield`, which
88
+ * matters twice over: HTTP Signature verification needs the raw, unparsed
89
+ * request body, and inbox `POST`s must not be rejected by CSRF protection.
90
+ *
91
+ * It also goes *first* in that stack, so that Fedify negotiates on the
92
+ * client's real `Accept` header. The API starter kit's
93
+ * `force_json_response_middleware`, for example, rewrites every `Accept` to
94
+ * `application/json`, which would make Fedify serve the ActivityPub document
95
+ * to a browser asking for HTML and skip the HTML fall-through.
96
+ */
97
+ await codemods.registerMiddleware("server", [{
98
+ path: "@fedify/adonisjs/fedify_middleware",
99
+ position: "before"
100
+ }]);
101
+ command.logger.success("Configured @fedify/adonisjs");
102
+ command.logger.info("Register dispatchers in app/federation/main.ts, then run \"node ace serve\"");
103
+ }
104
+
105
+ //#endregion
106
+ export { configure };
107
+ //# sourceMappingURL=configure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configure.js","names":["packageJson.version"],"sources":["../configure.ts"],"sourcesContent":["/**\n * The configure hook, run by `node ace configure @fedify/adonisjs`.\n *\n * It performs every wiring step the package needs, so that a freshly configured\n * application already federates: install the Fedify runtime packages, declare\n * the environment variables, publish the config file and the federation preload\n * files, register the service provider, and add the middleware to the server\n * stack.\n *\n * @module\n */\nimport type ConfigureCommand from \"@adonisjs/core/commands/configure\";\n\nimport packageJson from \"./package.json\" with { type: \"json\" };\nimport { stubsRoot } from \"./stubs/main.ts\";\n\n/**\n * The slice of `@adonisjs/assembler`'s `RcFileTransformer` this hook touches.\n *\n * Spelled out rather than inferred because the assembler is an *optional* peer\n * dependency: wherever it is absent — a type-check of a tree that did not\n * install it, for instance — the inferred parameter type of `updateRcFile`'s\n * callback degrades to `any`, and this file stops compiling under\n * `noImplicitAny`.\n */\ninterface RcFileEditor {\n addProvider(providerPath: string): unknown;\n addPreloadFile(modulePath: string): unknown;\n}\n\n/**\n * The range the Fedify runtime packages are installed with.\n *\n * Derived from this package's own version so a release cannot leave it behind:\n * every package in this monorepo shares one version, and the `@fedify/fedify`\n * peer dependency is declared as `workspace:^`, which publishes as this range.\n *\n * Installing unpinned would pull the next major once it is out, which the peer\n * range rejects: a peer warning, and two copies of the vocabulary, which the\n * `instanceof` comparisons noted below cannot survive.\n */\nconst FEDIFY_RANGE = `^${packageJson.version}`;\n\n/**\n * Wires `@fedify/adonisjs` into an application.\n *\n * Run by `node ace configure @fedify/adonisjs` (and therefore by\n * `node ace add @fedify/adonisjs`); see the module documentation for the\n * steps it performs.\n */\nexport async function configure(command: ConfigureCommand): Promise<void> {\n const codemods = await command.createCodemods();\n\n /**\n * Fedify itself is a peer dependency: the application, not this package,\n * decides which version it runs, and having exactly one copy in the tree\n * matters because Fedify's vocabulary classes are compared with `instanceof`.\n *\n * `@fedify/vocab` carries the ActivityStreams classes (`Person`, `Follow`,\n * `Note`, …) that dispatchers and inbox listeners are written against.\n */\n await codemods.installPackages([\n { name: `@fedify/fedify@${FEDIFY_RANGE}`, isDevDependency: false },\n { name: `@fedify/vocab@${FEDIFY_RANGE}`, isDevDependency: false },\n ]);\n\n /**\n * `PUBLIC_URL` is the canonical origin remote servers use to reach this\n * application. Fedify mints actor URIs and activity IDs from it, so it has to\n * be the public address rather than the listen address — behind a proxy or a\n * `fedify tunnel` those differ.\n *\n * `FEDERATION_HANDLE_HOST` is optional and only needed when fediverse handles\n * live on a different domain than the web origin, for example `@me@example.com`\n * served from `https://social.example.com`.\n */\n await codemods.defineEnvValidations({\n leadingComment: \"Variables for configuring Fedify\",\n variables: {\n PUBLIC_URL: `Env.schema.string({ format: 'url', tld: false })`,\n FEDERATION_HANDLE_HOST: `Env.schema.string.optional({ format: 'host' })`,\n },\n });\n\n await codemods.defineEnvVariables({ PUBLIC_URL: \"http://localhost:3333\" });\n\n /**\n * `config/fedify.ts` — the federation options.\n */\n await codemods.makeUsingStub(stubsRoot, \"config/fedify.stub\", {});\n\n /**\n * `start/federation.ts` — a preload file that imports the application's\n * dispatcher modules.\n *\n * A preload file rather than directory globbing: preload files are ordinary\n * application source, so `node ace build` compiles them and their relative\n * imports along with everything else, and AdonisJS imports them after every\n * provider has booted, which is what lets dispatchers use Lucid models.\n */\n await codemods.makeUsingStub(stubsRoot, \"start/federation.stub\", {});\n\n /**\n * `app/federation/main.ts` — a starting point for dispatchers.\n */\n await codemods.makeUsingStub(stubsRoot, \"federation/main.stub\", {});\n\n await codemods.updateRcFile((rcFile: RcFileEditor) => {\n rcFile.addProvider(\"@fedify/adonisjs/fedify_provider\");\n rcFile.addPreloadFile(\"#start/federation\");\n });\n\n /**\n * The middleware must live in the **server** stack.\n *\n * Fedify answers paths the AdonisJS router does not know about\n * (`/.well-known/webfinger`, `/.well-known/nodeinfo`, actor and inbox\n * endpoints), so it has to run before route matching. The server stack also\n * runs before `bodyparser_middleware` and before `@adonisjs/shield`, which\n * matters twice over: HTTP Signature verification needs the raw, unparsed\n * request body, and inbox `POST`s must not be rejected by CSRF protection.\n *\n * It also goes *first* in that stack, so that Fedify negotiates on the\n * client's real `Accept` header. The API starter kit's\n * `force_json_response_middleware`, for example, rewrites every `Accept` to\n * `application/json`, which would make Fedify serve the ActivityPub document\n * to a browser asking for HTML and skip the HTML fall-through.\n */\n await codemods.registerMiddleware(\"server\", [{\n path: \"@fedify/adonisjs/fedify_middleware\",\n position: \"before\",\n }]);\n\n command.logger.success(\"Configured @fedify/adonisjs\");\n command.logger.info(\n 'Register dispatchers in app/federation/main.ts, then run \"node ace serve\"',\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAyCA,MAAM,eAAe,IAAIA;;;;;;;;AASzB,eAAsB,UAAU,SAA0C;CACxE,MAAM,WAAW,MAAM,QAAQ,eAAe;;;;;;;;;CAU9C,MAAM,SAAS,gBAAgB,CAC7B;EAAE,MAAM,kBAAkB;EAAgB,iBAAiB;CAAM,GACjE;EAAE,MAAM,iBAAiB;EAAgB,iBAAiB;CAAM,CAClE,CAAC;;;;;;;;;;;CAYD,MAAM,SAAS,qBAAqB;EAClC,gBAAgB;EAChB,WAAW;GACT,YAAY;GACZ,wBAAwB;EAC1B;CACF,CAAC;CAED,MAAM,SAAS,mBAAmB,EAAE,YAAY,wBAAwB,CAAC;;;;CAKzE,MAAM,SAAS,cAAc,WAAW,sBAAsB,CAAC,CAAC;;;;;;;;;;CAWhE,MAAM,SAAS,cAAc,WAAW,yBAAyB,CAAC,CAAC;;;;CAKnE,MAAM,SAAS,cAAc,WAAW,wBAAwB,CAAC,CAAC;CAElE,MAAM,SAAS,cAAc,WAAyB;EACpD,OAAO,YAAY,kCAAkC;EACrD,OAAO,eAAe,mBAAmB;CAC3C,CAAC;;;;;;;;;;;;;;;;;CAkBD,MAAM,SAAS,mBAAmB,UAAU,CAAC;EAC3C,MAAM;EACN,UAAU;CACZ,CAAC,CAAC;CAEF,QAAQ,OAAO,QAAQ,6BAA6B;CACpD,QAAQ,OAAO,KACb,6EACF;AACF"}
package/dist/index.cjs ADDED
@@ -0,0 +1,19 @@
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_stubs_main = require('./stubs/main.cjs');
3
+ const require_configure = require('./configure.cjs');
4
+ const require_src_define_config = require('./src/define_config.cjs');
5
+ const require_src_errors = require('./src/errors.cjs');
6
+ const require_src_fedify_middleware = require('./src/fedify_middleware.cjs');
7
+ const require_logging = require('./src/logging.cjs');
8
+
9
+ exports.E_FEDERATION_NOT_READY = require_src_errors.E_FEDERATION_NOT_READY;
10
+ exports.E_FEDIFY_CONTEXT_UNAVAILABLE = require_src_errors.E_FEDIFY_CONTEXT_UNAVAILABLE;
11
+ exports.E_INVALID_FEDIFY_CONFIG = require_src_errors.E_INVALID_FEDIFY_CONFIG;
12
+ exports.E_MISSING_FEDERATION = require_src_errors.E_MISSING_FEDERATION;
13
+ exports.FedifyMiddleware = require_src_fedify_middleware.default;
14
+ exports.configure = require_configure.configure;
15
+ exports.configureFedifyLogging = require_logging.configureFedifyLogging;
16
+ exports.default = require_src_fedify_middleware.fedifyMiddleware;
17
+ exports.defineConfig = require_src_define_config.defineConfig;
18
+ exports.fedifyMiddleware = require_src_fedify_middleware.fedifyMiddleware;
19
+ exports.stubsRoot = require_stubs_main.stubsRoot;
@@ -0,0 +1,8 @@
1
+ import { configure } from "./configure.cjs";
2
+ import { stubsRoot } from "./stubs/main.cjs";
3
+ import { ContextData, ContextDataFactory, ContextDataFactoryOption, FedifyConfig, FedifyConfigBase, FedifyLoggingConfig, FedifyTypes, ResolvedFedifyConfig } from "./src/types.cjs";
4
+ import { defineConfig } from "./src/define_config.cjs";
5
+ import FedifyMiddleware, { FedifyMiddlewareArgs, FedifyMiddlewareClass, FedifyMiddlewareHandler, FedifyMiddlewareOptions, fedifyMiddleware } from "./src/fedify_middleware.cjs";
6
+ import { FedifyLoggingOptions, configureFedifyLogging } from "./src/logging.cjs";
7
+ import { E_FEDERATION_NOT_READY, E_FEDIFY_CONTEXT_UNAVAILABLE, E_INVALID_FEDIFY_CONFIG, E_MISSING_FEDERATION } from "./src/errors.cjs";
8
+ export { type ContextData, type ContextDataFactory, type ContextDataFactoryOption, E_FEDERATION_NOT_READY, E_FEDIFY_CONTEXT_UNAVAILABLE, E_INVALID_FEDIFY_CONFIG, E_MISSING_FEDERATION, type FedifyConfig, type FedifyConfigBase, type FedifyLoggingConfig, type FedifyLoggingOptions, FedifyMiddleware, type FedifyMiddlewareArgs, type FedifyMiddlewareClass, type FedifyMiddlewareHandler, type FedifyMiddlewareOptions, type FedifyTypes, type ResolvedFedifyConfig, configure, configureFedifyLogging, fedifyMiddleware as default, defineConfig, fedifyMiddleware, stubsRoot };
@@ -0,0 +1,8 @@
1
+ import { configure } from "./configure.js";
2
+ import { stubsRoot } from "./stubs/main.js";
3
+ import { ContextData, ContextDataFactory, ContextDataFactoryOption, FedifyConfig, FedifyConfigBase, FedifyLoggingConfig, FedifyTypes, ResolvedFedifyConfig } from "./src/types.js";
4
+ import { defineConfig } from "./src/define_config.js";
5
+ import FedifyMiddleware, { FedifyMiddlewareArgs, FedifyMiddlewareClass, FedifyMiddlewareHandler, FedifyMiddlewareOptions, fedifyMiddleware } from "./src/fedify_middleware.js";
6
+ import { FedifyLoggingOptions, configureFedifyLogging } from "./src/logging.js";
7
+ import { E_FEDERATION_NOT_READY, E_FEDIFY_CONTEXT_UNAVAILABLE, E_INVALID_FEDIFY_CONFIG, E_MISSING_FEDERATION } from "./src/errors.js";
8
+ export { type ContextData, type ContextDataFactory, type ContextDataFactoryOption, E_FEDERATION_NOT_READY, E_FEDIFY_CONTEXT_UNAVAILABLE, E_INVALID_FEDIFY_CONFIG, E_MISSING_FEDERATION, type FedifyConfig, type FedifyConfigBase, type FedifyLoggingConfig, type FedifyLoggingOptions, FedifyMiddleware, type FedifyMiddlewareArgs, type FedifyMiddlewareClass, type FedifyMiddlewareHandler, type FedifyMiddlewareOptions, type FedifyTypes, type ResolvedFedifyConfig, configure, configureFedifyLogging, fedifyMiddleware as default, defineConfig, fedifyMiddleware, stubsRoot };
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { stubsRoot } from "./stubs/main.js";
2
+ import { configure } from "./configure.js";
3
+ import { defineConfig } from "./src/define_config.js";
4
+ import { E_FEDERATION_NOT_READY, E_FEDIFY_CONTEXT_UNAVAILABLE, E_INVALID_FEDIFY_CONFIG, E_MISSING_FEDERATION } from "./src/errors.js";
5
+ import FedifyMiddleware, { fedifyMiddleware } from "./src/fedify_middleware.js";
6
+ import { configureFedifyLogging } from "./src/logging.js";
7
+
8
+ export { E_FEDERATION_NOT_READY, E_FEDIFY_CONTEXT_UNAVAILABLE, E_INVALID_FEDIFY_CONFIG, E_MISSING_FEDERATION, FedifyMiddleware, configure, configureFedifyLogging, fedifyMiddleware as default, defineConfig, fedifyMiddleware, stubsRoot };
@@ -0,0 +1,121 @@
1
+
2
+ //#region package.json
3
+ var version = "2.4.0-dev.0";
4
+ var package_default = {
5
+ name: "@fedify/adonisjs",
6
+ version,
7
+ description: "Integration package for Fedify with AdonisJS",
8
+ keywords: [
9
+ "Fedify",
10
+ "Federation",
11
+ "ActivityPub",
12
+ "AdonisJS",
13
+ "fediverse"
14
+ ],
15
+ author: {
16
+ "name": "scammo",
17
+ "email": "pfannkuchensack.ae@gmail.com"
18
+ },
19
+ homepage: "https://fedify.dev/",
20
+ repository: {
21
+ "type": "git",
22
+ "url": "git+https://github.com/fedify-dev/fedify.git",
23
+ "directory": "packages/adonisjs"
24
+ },
25
+ bugs: { "url": "https://github.com/fedify-dev/fedify/issues" },
26
+ funding: ["https://opencollective.com/fedify", "https://github.com/sponsors/dahlia"],
27
+ license: "MIT",
28
+ type: "module",
29
+ engines: { "node": ">=24.0.0" },
30
+ main: "./dist/index.cjs",
31
+ module: "./dist/index.js",
32
+ types: "./dist/index.d.ts",
33
+ exports: {
34
+ ".": {
35
+ "types": {
36
+ "import": "./dist/index.d.ts",
37
+ "require": "./dist/index.d.cts",
38
+ "default": "./dist/index.d.ts"
39
+ },
40
+ "import": "./dist/index.js",
41
+ "require": "./dist/index.cjs",
42
+ "default": "./dist/index.js"
43
+ },
44
+ "./types": {
45
+ "types": {
46
+ "import": "./dist/src/types.d.ts",
47
+ "require": "./dist/src/types.d.cts",
48
+ "default": "./dist/src/types.d.ts"
49
+ },
50
+ "import": "./dist/src/types.js",
51
+ "require": "./dist/src/types.cjs",
52
+ "default": "./dist/src/types.js"
53
+ },
54
+ "./fedify_provider": {
55
+ "types": {
56
+ "import": "./dist/providers/fedify_provider.d.ts",
57
+ "require": "./dist/providers/fedify_provider.d.cts",
58
+ "default": "./dist/providers/fedify_provider.d.ts"
59
+ },
60
+ "import": "./dist/providers/fedify_provider.js",
61
+ "require": "./dist/providers/fedify_provider.cjs",
62
+ "default": "./dist/providers/fedify_provider.js"
63
+ },
64
+ "./fedify_middleware": {
65
+ "types": {
66
+ "import": "./dist/src/fedify_middleware.d.ts",
67
+ "require": "./dist/src/fedify_middleware.d.cts",
68
+ "default": "./dist/src/fedify_middleware.d.ts"
69
+ },
70
+ "import": "./dist/src/fedify_middleware.js",
71
+ "require": "./dist/src/fedify_middleware.cjs",
72
+ "default": "./dist/src/fedify_middleware.js"
73
+ },
74
+ "./services/builder": {
75
+ "types": {
76
+ "import": "./dist/services/builder.d.ts",
77
+ "require": "./dist/services/builder.d.cts",
78
+ "default": "./dist/services/builder.d.ts"
79
+ },
80
+ "import": "./dist/services/builder.js",
81
+ "require": "./dist/services/builder.cjs",
82
+ "default": "./dist/services/builder.js"
83
+ },
84
+ "./package.json": "./package.json"
85
+ },
86
+ files: ["dist/", "package.json"],
87
+ scripts: {
88
+ "build:self": "tsdown",
89
+ "build": "pnpm --filter @fedify/adonisjs... run build:self",
90
+ "prepack": "pnpm build",
91
+ "prepublish": "pnpm build",
92
+ "pretest": "pnpm run build:self",
93
+ "typecheck": "tsc --noEmit",
94
+ "test": "node --test \"src/**/*.test.ts\""
95
+ },
96
+ peerDependencies: {
97
+ "@adonisjs/assembler": "catalog:",
98
+ "@adonisjs/core": "catalog:",
99
+ "@fedify/fedify": "workspace:^"
100
+ },
101
+ peerDependenciesMeta: { "@adonisjs/assembler": { "optional": true } },
102
+ dependencies: { "@logtape/logtape": "catalog:" },
103
+ devDependencies: {
104
+ "@adonisjs/assembler": "catalog:",
105
+ "@adonisjs/core": "catalog:",
106
+ "@fedify/fedify": "workspace:^",
107
+ "@fedify/vocab": "workspace:^",
108
+ "@types/node": "catalog:",
109
+ "tsdown": "catalog:",
110
+ "typescript": "catalog:"
111
+ }
112
+ };
113
+
114
+ //#endregion
115
+ Object.defineProperty(exports, 'version', {
116
+ enumerable: true,
117
+ get: function () {
118
+ return version;
119
+ }
120
+ });
121
+ //# sourceMappingURL=package.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.cjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
@@ -0,0 +1,115 @@
1
+ //#region package.json
2
+ var version = "2.4.0-dev.0";
3
+ var package_default = {
4
+ name: "@fedify/adonisjs",
5
+ version,
6
+ description: "Integration package for Fedify with AdonisJS",
7
+ keywords: [
8
+ "Fedify",
9
+ "Federation",
10
+ "ActivityPub",
11
+ "AdonisJS",
12
+ "fediverse"
13
+ ],
14
+ author: {
15
+ "name": "scammo",
16
+ "email": "pfannkuchensack.ae@gmail.com"
17
+ },
18
+ homepage: "https://fedify.dev/",
19
+ repository: {
20
+ "type": "git",
21
+ "url": "git+https://github.com/fedify-dev/fedify.git",
22
+ "directory": "packages/adonisjs"
23
+ },
24
+ bugs: { "url": "https://github.com/fedify-dev/fedify/issues" },
25
+ funding: ["https://opencollective.com/fedify", "https://github.com/sponsors/dahlia"],
26
+ license: "MIT",
27
+ type: "module",
28
+ engines: { "node": ">=24.0.0" },
29
+ main: "./dist/index.cjs",
30
+ module: "./dist/index.js",
31
+ types: "./dist/index.d.ts",
32
+ exports: {
33
+ ".": {
34
+ "types": {
35
+ "import": "./dist/index.d.ts",
36
+ "require": "./dist/index.d.cts",
37
+ "default": "./dist/index.d.ts"
38
+ },
39
+ "import": "./dist/index.js",
40
+ "require": "./dist/index.cjs",
41
+ "default": "./dist/index.js"
42
+ },
43
+ "./types": {
44
+ "types": {
45
+ "import": "./dist/src/types.d.ts",
46
+ "require": "./dist/src/types.d.cts",
47
+ "default": "./dist/src/types.d.ts"
48
+ },
49
+ "import": "./dist/src/types.js",
50
+ "require": "./dist/src/types.cjs",
51
+ "default": "./dist/src/types.js"
52
+ },
53
+ "./fedify_provider": {
54
+ "types": {
55
+ "import": "./dist/providers/fedify_provider.d.ts",
56
+ "require": "./dist/providers/fedify_provider.d.cts",
57
+ "default": "./dist/providers/fedify_provider.d.ts"
58
+ },
59
+ "import": "./dist/providers/fedify_provider.js",
60
+ "require": "./dist/providers/fedify_provider.cjs",
61
+ "default": "./dist/providers/fedify_provider.js"
62
+ },
63
+ "./fedify_middleware": {
64
+ "types": {
65
+ "import": "./dist/src/fedify_middleware.d.ts",
66
+ "require": "./dist/src/fedify_middleware.d.cts",
67
+ "default": "./dist/src/fedify_middleware.d.ts"
68
+ },
69
+ "import": "./dist/src/fedify_middleware.js",
70
+ "require": "./dist/src/fedify_middleware.cjs",
71
+ "default": "./dist/src/fedify_middleware.js"
72
+ },
73
+ "./services/builder": {
74
+ "types": {
75
+ "import": "./dist/services/builder.d.ts",
76
+ "require": "./dist/services/builder.d.cts",
77
+ "default": "./dist/services/builder.d.ts"
78
+ },
79
+ "import": "./dist/services/builder.js",
80
+ "require": "./dist/services/builder.cjs",
81
+ "default": "./dist/services/builder.js"
82
+ },
83
+ "./package.json": "./package.json"
84
+ },
85
+ files: ["dist/", "package.json"],
86
+ scripts: {
87
+ "build:self": "tsdown",
88
+ "build": "pnpm --filter @fedify/adonisjs... run build:self",
89
+ "prepack": "pnpm build",
90
+ "prepublish": "pnpm build",
91
+ "pretest": "pnpm run build:self",
92
+ "typecheck": "tsc --noEmit",
93
+ "test": "node --test \"src/**/*.test.ts\""
94
+ },
95
+ peerDependencies: {
96
+ "@adonisjs/assembler": "catalog:",
97
+ "@adonisjs/core": "catalog:",
98
+ "@fedify/fedify": "workspace:^"
99
+ },
100
+ peerDependenciesMeta: { "@adonisjs/assembler": { "optional": true } },
101
+ dependencies: { "@logtape/logtape": "catalog:" },
102
+ devDependencies: {
103
+ "@adonisjs/assembler": "catalog:",
104
+ "@adonisjs/core": "catalog:",
105
+ "@fedify/fedify": "workspace:^",
106
+ "@fedify/vocab": "workspace:^",
107
+ "@types/node": "catalog:",
108
+ "tsdown": "catalog:",
109
+ "typescript": "catalog:"
110
+ }
111
+ };
112
+
113
+ //#endregion
114
+ export { version };
115
+ //# sourceMappingURL=package.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}