@feathersjs/generators 5.0.0-pre.35
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 +10 -0
- package/LICENSE +22 -0
- package/README.md +23 -0
- package/lib/app/index.d.ts +29 -0
- package/lib/app/index.js +146 -0
- package/lib/app/index.js.map +1 -0
- package/lib/app/index.ts +228 -0
- package/lib/app/static/.gitignore +121 -0
- package/lib/app/templates/app.test.tpl.d.ts +2 -0
- package/lib/app/templates/app.test.tpl.js +49 -0
- package/lib/app/templates/app.test.tpl.js.map +1 -0
- package/lib/app/templates/app.test.tpl.ts +50 -0
- package/lib/app/templates/app.tpl.d.ts +2 -0
- package/lib/app/templates/app.tpl.js +123 -0
- package/lib/app/templates/app.tpl.js.map +1 -0
- package/lib/app/templates/app.tpl.ts +138 -0
- package/lib/app/templates/channels.tpl.d.ts +2 -0
- package/lib/app/templates/channels.tpl.js +50 -0
- package/lib/app/templates/channels.tpl.js.map +1 -0
- package/lib/app/templates/channels.tpl.ts +56 -0
- package/lib/app/templates/client.test.tpl.d.ts +2 -0
- package/lib/app/templates/client.test.tpl.js +27 -0
- package/lib/app/templates/client.test.tpl.js.map +1 -0
- package/lib/app/templates/client.test.tpl.ts +26 -0
- package/lib/app/templates/client.tpl.d.ts +2 -0
- package/lib/app/templates/client.tpl.js +38 -0
- package/lib/app/templates/client.tpl.js.map +1 -0
- package/lib/app/templates/client.tpl.ts +45 -0
- package/lib/app/templates/configuration.tpl.d.ts +2 -0
- package/lib/app/templates/configuration.tpl.js +71 -0
- package/lib/app/templates/configuration.tpl.js.map +1 -0
- package/lib/app/templates/configuration.tpl.ts +82 -0
- package/lib/app/templates/declarations.tpl.d.ts +2 -0
- package/lib/app/templates/declarations.tpl.js +28 -0
- package/lib/app/templates/declarations.tpl.js.map +1 -0
- package/lib/app/templates/declarations.tpl.ts +37 -0
- package/lib/app/templates/index.html.tpl.d.ts +2 -0
- package/lib/app/templates/index.html.tpl.js +45 -0
- package/lib/app/templates/index.html.tpl.js.map +1 -0
- package/lib/app/templates/index.html.tpl.ts +44 -0
- package/lib/app/templates/index.tpl.d.ts +2 -0
- package/lib/app/templates/index.tpl.js +22 -0
- package/lib/app/templates/index.tpl.js.map +1 -0
- package/lib/app/templates/index.tpl.ts +26 -0
- package/lib/app/templates/logger.tpl.d.ts +3 -0
- package/lib/app/templates/logger.tpl.js +45 -0
- package/lib/app/templates/logger.tpl.js.map +1 -0
- package/lib/app/templates/logger.tpl.ts +56 -0
- package/lib/app/templates/package.json.tpl.d.ts +2 -0
- package/lib/app/templates/package.json.tpl.js +58 -0
- package/lib/app/templates/package.json.tpl.js.map +1 -0
- package/lib/app/templates/package.json.tpl.ts +71 -0
- package/lib/app/templates/prettierrc.tpl.d.ts +2 -0
- package/lib/app/templates/prettierrc.tpl.js +11 -0
- package/lib/app/templates/prettierrc.tpl.js.map +1 -0
- package/lib/app/templates/prettierrc.tpl.ts +14 -0
- package/lib/app/templates/readme.md.tpl.d.ts +2 -0
- package/lib/app/templates/readme.md.tpl.js +54 -0
- package/lib/app/templates/readme.md.tpl.js.map +1 -0
- package/lib/app/templates/readme.md.tpl.ts +57 -0
- package/lib/app/templates/services.tpl.d.ts +2 -0
- package/lib/app/templates/services.tpl.js +15 -0
- package/lib/app/templates/services.tpl.js.map +1 -0
- package/lib/app/templates/services.tpl.ts +20 -0
- package/lib/app/templates/tsconfig.json.tpl.d.ts +2 -0
- package/lib/app/templates/tsconfig.json.tpl.js +22 -0
- package/lib/app/templates/tsconfig.json.tpl.js.map +1 -0
- package/lib/app/templates/tsconfig.json.tpl.ts +28 -0
- package/lib/app/templates/validators.tpl.d.ts +2 -0
- package/lib/app/templates/validators.tpl.js +36 -0
- package/lib/app/templates/validators.tpl.js.map +1 -0
- package/lib/app/templates/validators.tpl.ts +40 -0
- package/lib/authentication/index.d.ts +73 -0
- package/lib/authentication/index.js +107 -0
- package/lib/authentication/index.js.map +1 -0
- package/lib/authentication/index.ts +126 -0
- package/lib/authentication/templates/authentication.tpl.d.ts +2 -0
- package/lib/authentication/templates/authentication.tpl.js +40 -0
- package/lib/authentication/templates/authentication.tpl.js.map +1 -0
- package/lib/authentication/templates/authentication.tpl.ts +51 -0
- package/lib/authentication/templates/client.test.tpl.d.ts +2 -0
- package/lib/authentication/templates/client.test.tpl.js +62 -0
- package/lib/authentication/templates/client.test.tpl.js.map +1 -0
- package/lib/authentication/templates/client.test.tpl.ts +74 -0
- package/lib/authentication/templates/config.tpl.d.ts +2 -0
- package/lib/authentication/templates/config.tpl.js +50 -0
- package/lib/authentication/templates/config.tpl.js.map +1 -0
- package/lib/authentication/templates/config.tpl.ts +57 -0
- package/lib/authentication/templates/declarations.tpl.d.ts +2 -0
- package/lib/authentication/templates/declarations.tpl.js +19 -0
- package/lib/authentication/templates/declarations.tpl.js.map +1 -0
- package/lib/authentication/templates/declarations.tpl.ts +34 -0
- package/lib/authentication/templates/knex.tpl.d.ts +2 -0
- package/lib/authentication/templates/knex.tpl.js +45 -0
- package/lib/authentication/templates/knex.tpl.js.map +1 -0
- package/lib/authentication/templates/knex.tpl.ts +62 -0
- package/lib/authentication/templates/schema.json.tpl.d.ts +2 -0
- package/lib/authentication/templates/schema.json.tpl.js +103 -0
- package/lib/authentication/templates/schema.json.tpl.js.map +1 -0
- package/lib/authentication/templates/schema.json.tpl.ts +124 -0
- package/lib/authentication/templates/schema.typebox.tpl.d.ts +3 -0
- package/lib/authentication/templates/schema.typebox.tpl.js +86 -0
- package/lib/authentication/templates/schema.typebox.tpl.js.map +1 -0
- package/lib/authentication/templates/schema.typebox.tpl.ts +108 -0
- package/lib/commons.d.ts +150 -0
- package/lib/commons.js +198 -0
- package/lib/commons.js.map +1 -0
- package/lib/commons.ts +284 -0
- package/lib/connection/index.d.ts +55 -0
- package/lib/connection/index.js +88 -0
- package/lib/connection/index.js.map +1 -0
- package/lib/connection/index.ts +123 -0
- package/lib/connection/templates/knex.tpl.d.ts +2 -0
- package/lib/connection/templates/knex.tpl.js +48 -0
- package/lib/connection/templates/knex.tpl.js.map +1 -0
- package/lib/connection/templates/knex.tpl.ts +67 -0
- package/lib/connection/templates/mongodb.tpl.d.ts +2 -0
- package/lib/connection/templates/mongodb.tpl.js +34 -0
- package/lib/connection/templates/mongodb.tpl.js.map +1 -0
- package/lib/connection/templates/mongodb.tpl.ts +40 -0
- package/lib/hook/index.d.ts +22 -0
- package/lib/hook/index.js +43 -0
- package/lib/hook/index.js.map +1 -0
- package/lib/hook/index.ts +47 -0
- package/lib/hook/templates/hook.tpl.d.ts +2 -0
- package/lib/hook/templates/hook.tpl.js +22 -0
- package/lib/hook/templates/hook.tpl.js.map +1 -0
- package/lib/hook/templates/hook.tpl.ts +33 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +37 -0
- package/lib/index.js.map +1 -0
- package/lib/index.ts +8 -0
- package/lib/service/index.d.ts +64 -0
- package/lib/service/index.js +116 -0
- package/lib/service/index.js.map +1 -0
- package/lib/service/index.ts +191 -0
- package/lib/service/templates/client.tpl.d.ts +2 -0
- package/lib/service/templates/client.tpl.js +30 -0
- package/lib/service/templates/client.tpl.js.map +1 -0
- package/lib/service/templates/client.tpl.ts +56 -0
- package/lib/service/templates/schema.json.tpl.d.ts +2 -0
- package/lib/service/templates/schema.json.tpl.js +83 -0
- package/lib/service/templates/schema.json.tpl.js.map +1 -0
- package/lib/service/templates/schema.json.tpl.ts +98 -0
- package/lib/service/templates/schema.typebox.tpl.d.ts +2 -0
- package/lib/service/templates/schema.typebox.tpl.js +61 -0
- package/lib/service/templates/schema.typebox.tpl.js.map +1 -0
- package/lib/service/templates/schema.typebox.tpl.ts +76 -0
- package/lib/service/templates/service.tpl.d.ts +3 -0
- package/lib/service/templates/service.tpl.js +112 -0
- package/lib/service/templates/service.tpl.js.map +1 -0
- package/lib/service/templates/service.tpl.ts +152 -0
- package/lib/service/templates/test.tpl.d.ts +2 -0
- package/lib/service/templates/test.tpl.js +25 -0
- package/lib/service/templates/test.tpl.js.map +1 -0
- package/lib/service/templates/test.tpl.ts +33 -0
- package/lib/service/type/custom.tpl.d.ts +3 -0
- package/lib/service/type/custom.tpl.js +98 -0
- package/lib/service/type/custom.tpl.js.map +1 -0
- package/lib/service/type/custom.tpl.ts +109 -0
- package/lib/service/type/knex.tpl.d.ts +3 -0
- package/lib/service/type/knex.tpl.js +71 -0
- package/lib/service/type/knex.tpl.js.map +1 -0
- package/lib/service/type/knex.tpl.ts +92 -0
- package/lib/service/type/mongodb.tpl.d.ts +3 -0
- package/lib/service/type/mongodb.tpl.js +50 -0
- package/lib/service/type/mongodb.tpl.js.map +1 -0
- package/lib/service/type/mongodb.tpl.ts +62 -0
- package/package.json +89 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { generator, toFile } from '@feathershq/pinion'
|
|
2
|
+
import { renderSource } from '../../commons'
|
|
3
|
+
import { ServiceGeneratorContext } from '../index'
|
|
4
|
+
|
|
5
|
+
const migrationTemplate = ({
|
|
6
|
+
kebabPath
|
|
7
|
+
}: ServiceGeneratorContext) => /* ts */ `// For more information about this file see https://dove.feathersjs.com/guides/cli/knexfile.html
|
|
8
|
+
import type { Knex } from 'knex'
|
|
9
|
+
|
|
10
|
+
export async function up(knex: Knex): Promise<void> {
|
|
11
|
+
await knex.schema.createTable('${kebabPath}', table => {
|
|
12
|
+
table.increments('id')
|
|
13
|
+
table.string('text')
|
|
14
|
+
})
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export async function down(knex: Knex): Promise<void> {
|
|
18
|
+
await knex.schema.dropTable('${kebabPath}')
|
|
19
|
+
}
|
|
20
|
+
`
|
|
21
|
+
|
|
22
|
+
export const template = ({
|
|
23
|
+
className,
|
|
24
|
+
upperName,
|
|
25
|
+
feathers,
|
|
26
|
+
schema,
|
|
27
|
+
fileName,
|
|
28
|
+
relative
|
|
29
|
+
}: ServiceGeneratorContext) => /* ts */ `// For more information about this file see https://dove.feathersjs.com/guides/cli/service.class.html#database-services
|
|
30
|
+
import type { Params } from '@feathersjs/feathers'
|
|
31
|
+
import { KnexService } from '@feathersjs/knex'
|
|
32
|
+
import type { KnexAdapterParams, KnexAdapterOptions } from '@feathersjs/knex'
|
|
33
|
+
|
|
34
|
+
import type { Application } from '${relative}/declarations'
|
|
35
|
+
${
|
|
36
|
+
schema
|
|
37
|
+
? `import type {
|
|
38
|
+
${upperName},
|
|
39
|
+
${upperName}Data,
|
|
40
|
+
${upperName}Patch,
|
|
41
|
+
${upperName}Query
|
|
42
|
+
} from './${fileName}.schema'
|
|
43
|
+
`
|
|
44
|
+
: `
|
|
45
|
+
export type ${upperName} = any
|
|
46
|
+
export type ${upperName}Data = any
|
|
47
|
+
export type ${upperName}Patch = any
|
|
48
|
+
export type ${upperName}Query = any
|
|
49
|
+
`
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ${upperName}Params extends KnexAdapterParams<${upperName}Query> {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// By default calls the standard Knex adapter service methods but can be customized with your own functionality.
|
|
56
|
+
export class ${className}<ServiceParams extends Params = ${upperName}Params>
|
|
57
|
+
extends KnexService<${upperName}, ${upperName}Data, ServiceParams, ${upperName}Patch> {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export const getOptions = (app: Application): KnexAdapterOptions => {
|
|
61
|
+
return {
|
|
62
|
+
paginate: app.get('paginate'),
|
|
63
|
+
Model: app.get('${feathers.database}Client'),
|
|
64
|
+
name: '${fileName}'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`
|
|
68
|
+
|
|
69
|
+
export const generate = (ctx: ServiceGeneratorContext) =>
|
|
70
|
+
generator(ctx)
|
|
71
|
+
.then(
|
|
72
|
+
renderSource(
|
|
73
|
+
template,
|
|
74
|
+
toFile<ServiceGeneratorContext>(({ lib, folder, fileName }) => [
|
|
75
|
+
lib,
|
|
76
|
+
'services',
|
|
77
|
+
...folder,
|
|
78
|
+
`${fileName}.class`
|
|
79
|
+
])
|
|
80
|
+
)
|
|
81
|
+
)
|
|
82
|
+
.then(
|
|
83
|
+
renderSource(
|
|
84
|
+
migrationTemplate,
|
|
85
|
+
toFile<ServiceGeneratorContext>('migrations', ({ kebabName }) => {
|
|
86
|
+
// Probably not great but it works to align with the Knex migration file format
|
|
87
|
+
const migrationDate = new Date().toISOString().replace(/\D/g, '').substring(0, 14)
|
|
88
|
+
|
|
89
|
+
return `${migrationDate}_${kebabName}`
|
|
90
|
+
})
|
|
91
|
+
)
|
|
92
|
+
)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ServiceGeneratorContext } from '../index';
|
|
2
|
+
export declare const template: ({ className, upperName, schema, fileName, kebabPath, relative }: ServiceGeneratorContext) => string;
|
|
3
|
+
export declare const generate: (ctx: ServiceGeneratorContext) => Promise<ServiceGeneratorContext>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generate = exports.template = void 0;
|
|
4
|
+
const pinion_1 = require("@feathershq/pinion");
|
|
5
|
+
const commons_1 = require("../../commons");
|
|
6
|
+
const template = ({ className, upperName, schema, fileName, kebabPath, relative }) => /* ts */ `// For more information about this file see https://dove.feathersjs.com/guides/cli/service.class.html#database-services
|
|
7
|
+
import type { Params } from '@feathersjs/feathers'
|
|
8
|
+
import { MongoDBService } from \'@feathersjs/mongodb\'
|
|
9
|
+
import type { MongoDBAdapterParams, MongoDBAdapterOptions } from \'@feathersjs/mongodb\'
|
|
10
|
+
|
|
11
|
+
import type { Application } from '${relative}/declarations'
|
|
12
|
+
${schema
|
|
13
|
+
? `import type {
|
|
14
|
+
${upperName},
|
|
15
|
+
${upperName}Data,
|
|
16
|
+
${upperName}Patch,
|
|
17
|
+
${upperName}Query
|
|
18
|
+
} from './${fileName}.schema'
|
|
19
|
+
`
|
|
20
|
+
: `
|
|
21
|
+
export type ${upperName} = any
|
|
22
|
+
export type ${upperName}Data = any
|
|
23
|
+
export type ${upperName}Patch = any
|
|
24
|
+
export type ${upperName}Query = any
|
|
25
|
+
`}
|
|
26
|
+
|
|
27
|
+
export interface ${upperName}Params extends MongoDBAdapterParams<${upperName}Query> {
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// By default calls the standard MongoDB adapter service methods but can be customized with your own functionality.
|
|
31
|
+
export class ${className}<ServiceParams extends Params = ${upperName}Params>
|
|
32
|
+
extends MongoDBService<${upperName}, ${upperName}Data, ServiceParams, ${upperName}Patch> {
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const getOptions = (app: Application): MongoDBAdapterOptions => {
|
|
36
|
+
return {
|
|
37
|
+
paginate: app.get('paginate'),
|
|
38
|
+
Model: app.get('mongodbClient').then(db => db.collection('${kebabPath}'))
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
exports.template = template;
|
|
43
|
+
const generate = (ctx) => (0, pinion_1.generator)(ctx).then((0, commons_1.renderSource)(exports.template, (0, pinion_1.toFile)(({ lib, folder, fileName }) => [
|
|
44
|
+
lib,
|
|
45
|
+
'services',
|
|
46
|
+
...folder,
|
|
47
|
+
`${fileName}.class`
|
|
48
|
+
])));
|
|
49
|
+
exports.generate = generate;
|
|
50
|
+
//# sourceMappingURL=mongodb.tpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongodb.tpl.js","sourceRoot":"","sources":["../../../src/service/type/mongodb.tpl.ts"],"names":[],"mappings":";;;AAAA,+CAAsD;AACtD,2CAA4C;AAGrC,MAAM,QAAQ,GAAG,CAAC,EACvB,SAAS,EACT,SAAS,EACT,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,EACgB,EAAE,EAAE,CAAC,QAAQ,CAAC;;;;;oCAKJ,QAAQ;EAE1C,MAAM;IACJ,CAAC,CAAC;IACF,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;YACD,QAAQ;CACnB;IACG,CAAC,CAAC;cACQ,SAAS;cACT,SAAS;cACT,SAAS;cACT,SAAS;CAEvB;;mBAEmB,SAAS,uCAAuC,SAAS;;;;eAI7D,SAAS,mCAAmC,SAAS;2BACzC,SAAS,KAAK,SAAS,wBAAwB,SAAS;;;;;;gEAMnB,SAAS;;;CAGxE,CAAA;AA5CY,QAAA,QAAQ,YA4CpB;AAEM,MAAM,QAAQ,GAAG,CAAC,GAA4B,EAAE,EAAE,CACvD,IAAA,kBAAS,EAAC,GAAG,CAAC,CAAC,IAAI,CACjB,IAAA,sBAAY,EACV,gBAAQ,EACR,IAAA,eAAM,EAA0B,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IAC7D,GAAG;IACH,UAAU;IACV,GAAG,MAAM;IACT,GAAG,QAAQ,QAAQ;CACpB,CAAC,CACH,CACF,CAAA;AAXU,QAAA,QAAQ,YAWlB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { generator, toFile } from '@feathershq/pinion'
|
|
2
|
+
import { renderSource } from '../../commons'
|
|
3
|
+
import { ServiceGeneratorContext } from '../index'
|
|
4
|
+
|
|
5
|
+
export const template = ({
|
|
6
|
+
className,
|
|
7
|
+
upperName,
|
|
8
|
+
schema,
|
|
9
|
+
fileName,
|
|
10
|
+
kebabPath,
|
|
11
|
+
relative
|
|
12
|
+
}: ServiceGeneratorContext) => /* ts */ `// For more information about this file see https://dove.feathersjs.com/guides/cli/service.class.html#database-services
|
|
13
|
+
import type { Params } from '@feathersjs/feathers'
|
|
14
|
+
import { MongoDBService } from \'@feathersjs/mongodb\'
|
|
15
|
+
import type { MongoDBAdapterParams, MongoDBAdapterOptions } from \'@feathersjs/mongodb\'
|
|
16
|
+
|
|
17
|
+
import type { Application } from '${relative}/declarations'
|
|
18
|
+
${
|
|
19
|
+
schema
|
|
20
|
+
? `import type {
|
|
21
|
+
${upperName},
|
|
22
|
+
${upperName}Data,
|
|
23
|
+
${upperName}Patch,
|
|
24
|
+
${upperName}Query
|
|
25
|
+
} from './${fileName}.schema'
|
|
26
|
+
`
|
|
27
|
+
: `
|
|
28
|
+
export type ${upperName} = any
|
|
29
|
+
export type ${upperName}Data = any
|
|
30
|
+
export type ${upperName}Patch = any
|
|
31
|
+
export type ${upperName}Query = any
|
|
32
|
+
`
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ${upperName}Params extends MongoDBAdapterParams<${upperName}Query> {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// By default calls the standard MongoDB adapter service methods but can be customized with your own functionality.
|
|
39
|
+
export class ${className}<ServiceParams extends Params = ${upperName}Params>
|
|
40
|
+
extends MongoDBService<${upperName}, ${upperName}Data, ServiceParams, ${upperName}Patch> {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const getOptions = (app: Application): MongoDBAdapterOptions => {
|
|
44
|
+
return {
|
|
45
|
+
paginate: app.get('paginate'),
|
|
46
|
+
Model: app.get('mongodbClient').then(db => db.collection('${kebabPath}'))
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`
|
|
50
|
+
|
|
51
|
+
export const generate = (ctx: ServiceGeneratorContext) =>
|
|
52
|
+
generator(ctx).then(
|
|
53
|
+
renderSource(
|
|
54
|
+
template,
|
|
55
|
+
toFile<ServiceGeneratorContext>(({ lib, folder, fileName }) => [
|
|
56
|
+
lib,
|
|
57
|
+
'services',
|
|
58
|
+
...folder,
|
|
59
|
+
`${fileName}.class`
|
|
60
|
+
])
|
|
61
|
+
)
|
|
62
|
+
)
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@feathersjs/generators",
|
|
3
|
+
"version": "5.0.0-pre.35",
|
|
4
|
+
"description": "Feathers CLI core generators, powered by Pinion",
|
|
5
|
+
"homepage": "https://feathersjs.com",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"feathers",
|
|
8
|
+
"pinion"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"funding": {
|
|
12
|
+
"type": "github",
|
|
13
|
+
"url": "https://github.com/sponsors/daffl"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git://github.com/feathersjs/feathers.git",
|
|
18
|
+
"directory": "packages/commons"
|
|
19
|
+
},
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "Feathers contributor",
|
|
22
|
+
"email": "hello@feathersjs.com",
|
|
23
|
+
"url": "https://feathersjs.com"
|
|
24
|
+
},
|
|
25
|
+
"contributors": [],
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/feathersjs/feathers/issues"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">= 16"
|
|
31
|
+
},
|
|
32
|
+
"main": "lib/",
|
|
33
|
+
"types": "lib/",
|
|
34
|
+
"files": [
|
|
35
|
+
"CHANGELOG.md",
|
|
36
|
+
"LICENSE",
|
|
37
|
+
"README.md",
|
|
38
|
+
"lib/**",
|
|
39
|
+
"lib/app/static/.gitignore",
|
|
40
|
+
"*.d.ts",
|
|
41
|
+
"*.js"
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"prepublish": "npm run compile",
|
|
45
|
+
"compile": "shx rm -rf lib/ && tsc && shx cp -r src/. lib/",
|
|
46
|
+
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
|
|
47
|
+
},
|
|
48
|
+
"directories": {
|
|
49
|
+
"lib": "lib"
|
|
50
|
+
},
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@feathershq/pinion": "^0.3.5",
|
|
56
|
+
"chalk": "^4.0.1",
|
|
57
|
+
"lodash": "^4.17.21",
|
|
58
|
+
"prettier": "^2.8.1"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@feathersjs/adapter-commons": "^5.0.0-pre.35",
|
|
62
|
+
"@feathersjs/authentication": "^5.0.0-pre.35",
|
|
63
|
+
"@feathersjs/authentication-client": "^5.0.0-pre.35",
|
|
64
|
+
"@feathersjs/authentication-local": "^5.0.0-pre.35",
|
|
65
|
+
"@feathersjs/authentication-oauth": "^5.0.0-pre.35",
|
|
66
|
+
"@feathersjs/configuration": "^5.0.0-pre.35",
|
|
67
|
+
"@feathersjs/errors": "^5.0.0-pre.35",
|
|
68
|
+
"@feathersjs/express": "^5.0.0-pre.35",
|
|
69
|
+
"@feathersjs/feathers": "^5.0.0-pre.35",
|
|
70
|
+
"@feathersjs/knex": "^5.0.0-pre.35",
|
|
71
|
+
"@feathersjs/koa": "^5.0.0-pre.35",
|
|
72
|
+
"@feathersjs/mongodb": "^5.0.0-pre.35",
|
|
73
|
+
"@feathersjs/rest-client": "^5.0.0-pre.35",
|
|
74
|
+
"@feathersjs/schema": "^5.0.0-pre.35",
|
|
75
|
+
"@feathersjs/socketio": "^5.0.0-pre.35",
|
|
76
|
+
"@feathersjs/transport-commons": "^5.0.0-pre.35",
|
|
77
|
+
"@feathersjs/typebox": "^5.0.0-pre.35",
|
|
78
|
+
"@types/mocha": "^10.0.1",
|
|
79
|
+
"@types/node": "^18.11.18",
|
|
80
|
+
"@types/prettier": "^2.7.2",
|
|
81
|
+
"axios": "^1.2.2",
|
|
82
|
+
"mocha": "^10.2.0",
|
|
83
|
+
"shx": "^0.3.4",
|
|
84
|
+
"ts-node": "^10.9.1",
|
|
85
|
+
"type-fest": "^3.5.0",
|
|
86
|
+
"typescript": "^4.9.4"
|
|
87
|
+
},
|
|
88
|
+
"gitHead": "c641598d9a4de3ceda10f56cf2af288a4236b15e"
|
|
89
|
+
}
|