@digipair/skill-service 0.91.0-0 → 0.92.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,5 @@
1
+ import { PinsSettings } from '@digipair/engine';
2
+ export declare const service: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
3
+ export declare const send: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
4
+ export declare const status: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
5
+ export declare const headers: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
package/package.json CHANGED
@@ -1,28 +1,12 @@
1
1
  {
2
2
  "name": "@digipair/skill-service",
3
- "version": "0.91.0-0",
4
- "type": "module",
5
- "main": "dist/libs/skill-service/index.cjs.js",
6
- "module": "dist/libs/skill-service/index.esm.js",
7
- "types": "dist/libs/skill-service/index.esm.d.ts",
8
- "exports": {
9
- "./package.json": "./libs/skill-service/package.json",
10
- ".": {
11
- "development": "./dist/libs/skill-service/src/index.ts",
12
- "types": "./dist/libs/skill-service/index.esm.d.ts",
13
- "import": "./dist/libs/skill-service/index.esm.js",
14
- "default": "./dist/libs/skill-service/index.cjs.js"
15
- }
16
- },
3
+ "version": "0.92.0",
17
4
  "keywords": [
18
5
  "digipair",
19
- "tool",
20
- "service"
6
+ "service",
7
+ "tool"
21
8
  ],
22
- "nx": {
23
- "name": "skill-service"
24
- },
25
- "dependencies": {
26
- "@digipair/engine": "0.91.0-0"
27
- }
28
- }
9
+ "dependencies": {},
10
+ "main": "./index.cjs.js",
11
+ "module": "./index.esm.js"
12
+ }
package/.swcrc DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "jsc": {
3
- "target": "es2017",
4
- "parser": {
5
- "syntax": "typescript",
6
- "decorators": true,
7
- "dynamicImport": true
8
- },
9
- "transform": {
10
- "decoratorMetadata": true,
11
- "legacyDecorator": true
12
- },
13
- "keepClassNames": true,
14
- "externalHelpers": true,
15
- "loose": true
16
- },
17
- "module": {
18
- "type": "es6"
19
- },
20
- "sourceMaps": true,
21
- "exclude": [
22
- "jest.config.ts",
23
- ".*\\.spec.tsx?$",
24
- ".*\\.test.tsx?$",
25
- "./src/jest-setup.ts$",
26
- "./**/jest-setup.ts$"
27
- ]
28
- }
package/README.md DELETED
@@ -1,7 +0,0 @@
1
- # mylib
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Building
6
-
7
- Run `nx build mylib` to build the library.
package/eslint.config.mjs DELETED
@@ -1,22 +0,0 @@
1
- import baseConfig from '../../eslint.config.mjs';
2
-
3
- export default [
4
- ...baseConfig,
5
- {
6
- files: ['**/*.json'],
7
- rules: {
8
- '@nx/dependency-checks': [
9
- 'error',
10
- {
11
- ignoredFiles: [
12
- '{projectRoot}/eslint.config.{js,cjs,mjs}',
13
- '{projectRoot}/rollup.config.{js,ts,mjs,mts,cjs,cts}',
14
- ],
15
- },
16
- ],
17
- },
18
- languageOptions: {
19
- parser: await import('jsonc-eslint-parser'),
20
- },
21
- },
22
- ];
package/rollup.config.cjs DELETED
@@ -1,28 +0,0 @@
1
- const { withNx } = require('@nx/rollup/with-nx');
2
-
3
- module.exports = withNx(
4
- {
5
- main: 'libs/skill-service/src/index.ts',
6
- outputPath: 'dist/libs/skill-service',
7
- tsConfig: 'libs/skill-service/tsconfig.lib.json',
8
- compiler: 'swc',
9
- format: ['esm', "cjs"],
10
- assets: [
11
- {
12
- input: 'libs/skill-service/',
13
- glob: 'package.json',
14
- output: '.'
15
- },
16
- {
17
- input: 'libs/skill-service/src/',
18
- glob: '*.json',
19
- output: '.'
20
- }
21
- ]
22
- },
23
- {
24
- // Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
25
- // e.g.
26
- // output: { sourcemap: true },
27
- }
28
- );
@@ -1 +0,0 @@
1
- declare module 'handlebars/dist/handlebars.min.js';
@@ -1,7 +0,0 @@
1
- import { skillService } from './skill-service';
2
-
3
- describe('skillService', () => {
4
- it('should work', () => {
5
- expect(skillService()).toEqual('skill-service');
6
- });
7
- });
@@ -1,37 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- import { PinsSettings, executePinsList } from '@digipair/engine';
3
-
4
- class ServiceService {
5
- async service(params: any, _pinsSettingsList: PinsSettings[], context: any): Promise<any> {
6
- const { execute } = params;
7
-
8
- return await executePinsList(execute, context, `${context.__PATH__}.execute`);
9
- }
10
-
11
- async send(params: any, _pinsSettingsList: PinsSettings[], context: any) {
12
- const { body } = params;
13
- return context.protected.res.send(body);
14
- }
15
-
16
- async status(params: any, _pinsSettingsList: PinsSettings[], context: any) {
17
- const { code = 200 } = params;
18
- return context.protected.res.status(code);
19
- }
20
-
21
- async headers(params: any, _pinsSettingsList: PinsSettings[], context: any) {
22
- const { headers } = params;
23
- return context.protected.res.set(headers);
24
- }
25
- }
26
-
27
- export const service = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
28
- new ServiceService().service(params, pinsSettingsList, context);
29
-
30
- export const send = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
31
- new ServiceService().send(params, pinsSettingsList, context);
32
-
33
- export const status = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
34
- new ServiceService().status(params, pinsSettingsList, context);
35
-
36
- export const headers = (params: any, pinsSettingsList: PinsSettings[], context: any) =>
37
- new ServiceService().headers(params, pinsSettingsList, context);
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "files": [],
4
- "include": [],
5
- "references": [
6
- {
7
- "path": "../engine"
8
- },
9
- {
10
- "path": "./tsconfig.lib.json"
11
- }
12
- ]
13
- }
package/tsconfig.lib.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "rootDir": "src",
5
- "outDir": "dist",
6
- "tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
7
- "emitDeclarationOnly": true,
8
- "module": "esnext",
9
- "moduleResolution": "node",
10
- "forceConsistentCasingInFileNames": true,
11
- "types": ["node"]
12
- },
13
- "include": ["src/**/*.ts"],
14
- "references": [
15
- {
16
- "path": "../engine/tsconfig.lib.json"
17
- }
18
- ]
19
- }
File without changes
File without changes
File without changes