@feathersjs/generators 5.0.0-pre.38 → 5.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.38...v5.0.0) (2023-02-24)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **generators:** Fix typo in service client generator ([#3068](https://github.com/feathersjs/feathers/issues/3068)) ([612032e](https://github.com/feathersjs/feathers/commit/612032eced24ecbcf255d51ff0d537d74227cfd7))
|
|
11
|
+
|
|
6
12
|
# [5.0.0-pre.38](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.37...v5.0.0-pre.38) (2023-02-17)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -14,7 +14,6 @@ export type {
|
|
|
14
14
|
`;
|
|
15
15
|
const registrationTemplate = ({ camelName }) => ` client.configure(${camelName}Client)`;
|
|
16
16
|
const toClientFile = (0, pinion_1.toFile)(({ lib }) => [lib, 'client']);
|
|
17
|
-
const generate = async (ctx) => (0, pinion_1.generator)(ctx);
|
|
17
|
+
const generate = async (ctx) => (0, pinion_1.generator)(ctx).then((0, pinion_1.when)(({ lib, language }) => (0, commons_1.fileExists)(lib, `client.${language}`), (0, commons_1.injectSource)(registrationTemplate, (0, pinion_1.before)('return client'), toClientFile), (0, commons_1.injectSource)(importTemplate, (0, pinion_1.after)(({ language }) => language === 'ts' ? 'import type { AuthenticationClientOptions }' : 'import authenticationClient'), toClientFile)));
|
|
18
18
|
exports.generate = generate;
|
|
19
|
-
(0, pinion_1.when)(({ lib, language }) => (0, commons_1.fileExists)(lib, `client.${language}`), (0, commons_1.injectSource)(registrationTemplate, (0, pinion_1.before)('return client'), toClientFile), (0, commons_1.injectSource)(importTemplate, (0, pinion_1.after)(({ language }) => language === 'ts' ? 'import type { AuthenticationClientOptions }' : 'import authenticationClient'), toClientFile));
|
|
20
19
|
//# sourceMappingURL=client.tpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.tpl.js","sourceRoot":"","sources":["../../../src/service/templates/client.tpl.ts"],"names":[],"mappings":";;;AAAA,+CAA2E;AAC3E,2CAAwD;AAGxD,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAA2B,EAAE,EAAE,CAAC,QAAQ,CAAC;WAC9F,SAAS,6BAA6B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ;;IAEzE,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;qBACQ,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ;CAChD,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,EAAE,SAAS,EAA2B,EAAE,EAAE,CACtE,sBAAsB,SAAS,SAAS,CAAA;AAE1C,MAAM,YAAY,GAAG,IAAA,eAAM,EAA0B,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA;AAE3E,MAAM,QAAQ,GAAG,KAAK,EAAE,GAA4B,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"client.tpl.js","sourceRoot":"","sources":["../../../src/service/templates/client.tpl.ts"],"names":[],"mappings":";;;AAAA,+CAA2E;AAC3E,2CAAwD;AAGxD,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAA2B,EAAE,EAAE,CAAC,QAAQ,CAAC;WAC9F,SAAS,6BAA6B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ;;IAEzE,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;qBACQ,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ;CAChD,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,EAAE,SAAS,EAA2B,EAAE,EAAE,CACtE,sBAAsB,SAAS,SAAS,CAAA;AAE1C,MAAM,YAAY,GAAG,IAAA,eAAM,EAA0B,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA;AAE3E,MAAM,QAAQ,GAAG,KAAK,EAAE,GAA4B,EAAE,EAAE,CAC7D,IAAA,kBAAS,EAAC,GAAG,CAAC,CAAC,IAAI,CACjB,IAAA,aAAI,EACF,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAA,oBAAU,EAAC,GAAG,EAAE,UAAU,QAAQ,EAAE,CAAC,EAC5D,IAAA,sBAAY,EAAC,oBAAoB,EAAE,IAAA,eAAM,EAAC,eAAe,CAAC,EAAE,YAAY,CAAC,EACzE,IAAA,sBAAY,EACV,cAAc,EACd,IAAA,cAAK,EAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC9C,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,6CAA6C,CAAC,CAAC,CAAC,6BAA6B,CAClG,EACD,YAAY,CACb,CACF,CACF,CAAA;AAbU,QAAA,QAAQ,YAalB"}
|
|
@@ -17,15 +17,17 @@ const registrationTemplate = ({ camelName }: ServiceGeneratorContext) =>
|
|
|
17
17
|
|
|
18
18
|
const toClientFile = toFile<ServiceGeneratorContext>(({ lib }) => [lib, 'client'])
|
|
19
19
|
|
|
20
|
-
export const generate = async (ctx: ServiceGeneratorContext) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
export const generate = async (ctx: ServiceGeneratorContext) =>
|
|
21
|
+
generator(ctx).then(
|
|
22
|
+
when<ServiceGeneratorContext>(
|
|
23
|
+
({ lib, language }) => fileExists(lib, `client.${language}`),
|
|
24
|
+
injectSource(registrationTemplate, before('return client'), toClientFile),
|
|
25
|
+
injectSource(
|
|
26
|
+
importTemplate,
|
|
27
|
+
after<ServiceGeneratorContext>(({ language }) =>
|
|
28
|
+
language === 'ts' ? 'import type { AuthenticationClientOptions }' : 'import authenticationClient'
|
|
29
|
+
),
|
|
30
|
+
toClientFile
|
|
31
|
+
)
|
|
32
|
+
)
|
|
30
33
|
)
|
|
31
|
-
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/generators",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Feathers CLI core generators, powered by Pinion",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"keywords": [
|
|
@@ -59,36 +59,36 @@
|
|
|
59
59
|
"typescript": "^4.9.5"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@feathersjs/adapter-commons": "^5.0.0
|
|
63
|
-
"@feathersjs/authentication": "^5.0.0
|
|
64
|
-
"@feathersjs/authentication-client": "^5.0.0
|
|
65
|
-
"@feathersjs/authentication-local": "^5.0.0
|
|
66
|
-
"@feathersjs/authentication-oauth": "^5.0.0
|
|
67
|
-
"@feathersjs/configuration": "^5.0.0
|
|
68
|
-
"@feathersjs/errors": "^5.0.0
|
|
69
|
-
"@feathersjs/express": "^5.0.0
|
|
70
|
-
"@feathersjs/feathers": "^5.0.0
|
|
71
|
-
"@feathersjs/knex": "^5.0.0
|
|
72
|
-
"@feathersjs/koa": "^5.0.0
|
|
73
|
-
"@feathersjs/mongodb": "^5.0.0
|
|
74
|
-
"@feathersjs/rest-client": "^5.0.0
|
|
75
|
-
"@feathersjs/schema": "^5.0.0
|
|
76
|
-
"@feathersjs/socketio": "^5.0.0
|
|
77
|
-
"@feathersjs/transport-commons": "^5.0.0
|
|
78
|
-
"@feathersjs/typebox": "^5.0.0
|
|
62
|
+
"@feathersjs/adapter-commons": "^5.0.0",
|
|
63
|
+
"@feathersjs/authentication": "^5.0.0",
|
|
64
|
+
"@feathersjs/authentication-client": "^5.0.0",
|
|
65
|
+
"@feathersjs/authentication-local": "^5.0.0",
|
|
66
|
+
"@feathersjs/authentication-oauth": "^5.0.0",
|
|
67
|
+
"@feathersjs/configuration": "^5.0.0",
|
|
68
|
+
"@feathersjs/errors": "^5.0.0",
|
|
69
|
+
"@feathersjs/express": "^5.0.0",
|
|
70
|
+
"@feathersjs/feathers": "^5.0.0",
|
|
71
|
+
"@feathersjs/knex": "^5.0.0",
|
|
72
|
+
"@feathersjs/koa": "^5.0.0",
|
|
73
|
+
"@feathersjs/mongodb": "^5.0.0",
|
|
74
|
+
"@feathersjs/rest-client": "^5.0.0",
|
|
75
|
+
"@feathersjs/schema": "^5.0.0",
|
|
76
|
+
"@feathersjs/socketio": "^5.0.0",
|
|
77
|
+
"@feathersjs/transport-commons": "^5.0.0",
|
|
78
|
+
"@feathersjs/typebox": "^5.0.0",
|
|
79
79
|
"@types/mocha": "^10.0.1",
|
|
80
|
-
"@types/node": "^18.
|
|
80
|
+
"@types/node": "^18.14.1",
|
|
81
81
|
"@types/prettier": "^2.7.2",
|
|
82
|
-
"axios": "^1.3.
|
|
82
|
+
"axios": "^1.3.4",
|
|
83
83
|
"mocha": "^10.2.0",
|
|
84
|
-
"mongodb": "^5.0
|
|
84
|
+
"mongodb": "^5.1.0",
|
|
85
85
|
"mssql": "^9.1.1",
|
|
86
86
|
"mysql": "^2.18.1",
|
|
87
87
|
"pg": "^8.9.0",
|
|
88
88
|
"shx": "^0.3.4",
|
|
89
89
|
"sqlite3": "^5.1.4",
|
|
90
90
|
"ts-node": "^10.9.1",
|
|
91
|
-
"type-fest": "^3.
|
|
91
|
+
"type-fest": "^3.6.0"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
|
|
94
94
|
}
|