@tsed/adapters 6.102.8-rc.1 → 6.102.8-rc.2

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/lib/cjs/index.js CHANGED
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
+ /**
3
+ * @file Automatically generated by barrelsby.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const tslib_1 = require("tslib");
4
7
  (0, tslib_1.__exportStar)(require("./adapters/FileSyncAdapter"), exports);
5
8
  (0, tslib_1.__exportStar)(require("./adapters/LowDbAdapter"), exports);
6
9
  (0, tslib_1.__exportStar)(require("./adapters/MemoryAdapter"), exports);
10
+ (0, tslib_1.__exportStar)(require("./decorators/indexed"), exports);
11
+ (0, tslib_1.__exportStar)(require("./decorators/injectAdapter"), exports);
7
12
  (0, tslib_1.__exportStar)(require("./domain/Adapter"), exports);
8
13
  (0, tslib_1.__exportStar)(require("./domain/AdaptersSettings"), exports);
9
- (0, tslib_1.__exportStar)(require("./decorators/injectAdapter"), exports);
10
- (0, tslib_1.__exportStar)(require("./decorators/indexed"), exports);
11
14
  (0, tslib_1.__exportStar)(require("./services/Adapters"), exports);
12
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,0EAA2C;AAC3C,uEAAwC;AACxC,wEAAyC;AACzC,gEAAiC;AACjC,yEAA0C;AAC1C,0EAA2C;AAC3C,oEAAqC;AACrC,mEAAoC","sourcesContent":["export * from \"./adapters/FileSyncAdapter\";\nexport * from \"./adapters/LowDbAdapter\";\nexport * from \"./adapters/MemoryAdapter\";\nexport * from \"./domain/Adapter\";\nexport * from \"./domain/AdaptersSettings\";\nexport * from \"./decorators/injectAdapter\";\nexport * from \"./decorators/indexed\";\nexport * from \"./services/Adapters\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0EAA2C;AAC3C,uEAAwC;AACxC,wEAAyC;AACzC,oEAAqC;AACrC,0EAA2C;AAC3C,gEAAiC;AACjC,yEAA0C;AAC1C,mEAAoC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./adapters/FileSyncAdapter\";\nexport * from \"./adapters/LowDbAdapter\";\nexport * from \"./adapters/MemoryAdapter\";\nexport * from \"./decorators/indexed\";\nexport * from \"./decorators/injectAdapter\";\nexport * from \"./domain/Adapter\";\nexport * from \"./domain/AdaptersSettings\";\nexport * from \"./services/Adapters\";\n"]}
package/lib/esm/index.js CHANGED
@@ -1,9 +1,12 @@
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
1
4
  export * from "./adapters/FileSyncAdapter.js";
2
5
  export * from "./adapters/LowDbAdapter.js";
3
6
  export * from "./adapters/MemoryAdapter.js";
7
+ export * from "./decorators/indexed.js";
8
+ export * from "./decorators/injectAdapter.js";
4
9
  export * from "./domain/Adapter.js";
5
10
  export * from "./domain/AdaptersSettings.js";
6
- export * from "./decorators/injectAdapter.js";
7
- export * from "./decorators/indexed.js";
8
11
  export * from "./services/Adapters.js";
9
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC","sourcesContent":["export * from \"./adapters/FileSyncAdapter\";\nexport * from \"./adapters/LowDbAdapter\";\nexport * from \"./adapters/MemoryAdapter\";\nexport * from \"./domain/Adapter\";\nexport * from \"./domain/AdaptersSettings\";\nexport * from \"./decorators/injectAdapter\";\nexport * from \"./decorators/indexed\";\nexport * from \"./services/Adapters\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./adapters/FileSyncAdapter\";\nexport * from \"./adapters/LowDbAdapter\";\nexport * from \"./adapters/MemoryAdapter\";\nexport * from \"./decorators/indexed\";\nexport * from \"./decorators/injectAdapter\";\nexport * from \"./domain/Adapter\";\nexport * from \"./domain/AdaptersSettings\";\nexport * from \"./services/Adapters\";\n"]}
@@ -1,8 +1,11 @@
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
1
4
  export * from "./adapters/FileSyncAdapter";
2
5
  export * from "./adapters/LowDbAdapter";
3
6
  export * from "./adapters/MemoryAdapter";
7
+ export * from "./decorators/indexed";
8
+ export * from "./decorators/injectAdapter";
4
9
  export * from "./domain/Adapter";
5
10
  export * from "./domain/AdaptersSettings";
6
- export * from "./decorators/injectAdapter";
7
- export * from "./decorators/indexed";
8
11
  export * from "./services/Adapters";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/adapters",
3
- "version": "6.102.8-rc.1",
3
+ "version": "6.102.8-rc.2",
4
4
  "description": "Database adapters for Ts.ED",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -14,9 +14,10 @@
14
14
  "default": "./lib/esm/index.js"
15
15
  },
16
16
  "scripts": {
17
- "build": "yarn run build:esm && yarn run build:cjs",
17
+ "build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
18
18
  "build:cjs": "tsc --build tsconfig.compile.json",
19
19
  "build:esm": "tsc --build tsconfig.compile.esm.json",
20
+ "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
20
21
  "test": "cross-env NODE_ENV=test yarn jest"
21
22
  },
22
23
  "dependencies": {
@@ -28,21 +29,21 @@
28
29
  "uuid": "8.3.2"
29
30
  },
30
31
  "devDependencies": {
31
- "@tsed/ajv": "6.102.8-rc.1",
32
- "@tsed/common": "6.102.8-rc.1",
33
- "@tsed/core": "6.102.8-rc.1",
34
- "@tsed/di": "6.102.8-rc.1",
35
- "@tsed/json-mapper": "6.102.8-rc.1",
36
- "@tsed/schema": "6.102.8-rc.1",
32
+ "@tsed/ajv": "6.102.8-rc.2",
33
+ "@tsed/common": "6.102.8-rc.2",
34
+ "@tsed/core": "6.102.8-rc.2",
35
+ "@tsed/di": "6.102.8-rc.2",
36
+ "@tsed/json-mapper": "6.102.8-rc.2",
37
+ "@tsed/schema": "6.102.8-rc.2",
37
38
  "@types/fs-extra": "9.0.6"
38
39
  },
39
40
  "peerDependencies": {
40
- "@tsed/ajv": "^6.102.8-rc.1",
41
- "@tsed/common": "^6.102.8-rc.1",
42
- "@tsed/core": "^6.102.8-rc.1",
43
- "@tsed/di": "^6.102.8-rc.1",
44
- "@tsed/json-mapper": "^6.102.8-rc.1",
45
- "@tsed/schema": "^6.102.8-rc.1",
41
+ "@tsed/ajv": "^6.102.8-rc.2",
42
+ "@tsed/common": "^6.102.8-rc.2",
43
+ "@tsed/core": "^6.102.8-rc.2",
44
+ "@tsed/di": "^6.102.8-rc.2",
45
+ "@tsed/json-mapper": "^6.102.8-rc.2",
46
+ "@tsed/schema": "^6.102.8-rc.2",
46
47
  "change-case": "^4.1.2",
47
48
  "lodash": "^4.17.21"
48
49
  },
@@ -52,5 +53,8 @@
52
53
  },
53
54
  "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/orm/adapters",
54
55
  "author": "Romain Lenzotti",
55
- "license": "MIT"
56
+ "license": "MIT",
57
+ "publishConfig": {
58
+ "tag": "rc"
59
+ }
56
60
  }
package/readme.md CHANGED
@@ -29,60 +29,6 @@
29
29
 
30
30
  A package of Ts.ED framework. See website: https://tsed.io/tutorials/adapters
31
31
 
32
- ## Feature
33
-
34
- Currently, `@tsed/adapters` allows you:
35
-
36
- - Create
37
-
38
- ## Installation
39
-
40
- To begin, install the TypeORM module for TS.ED:
41
-
42
- ```bash
43
- npm install --save @tsed/oidc-provider
44
- npm install --save oidc-provider
45
- ```
46
-
47
- Then import `@tsed/oidc-provider` in your Server:
48
-
49
- ```typescript
50
- import {Configuration} from "@tsed/common";
51
- import "@tsed/oidc-provider"; // import typeorm ts.ed module
52
- import {Accounts} from "../services/Accounts";
53
- import {MemoryAdapter} from "../adapters/MemoryAdapter";
54
-
55
- export const rootDir = __dirname;
56
-
57
- @Configuration({
58
- oidc: {
59
- jwksPath: `${rootDir}/../keys/jwks.json`, // don't forget add this path to .gitignore
60
- Adapter: MemoryAdapter,
61
- Accounts: Accounts,
62
- // Clients: Clients,
63
- clients: [
64
- {
65
- client_id: "client_id",
66
- client_secret: "client_secret",
67
- redirect_uris: ["https://host.fr/"]
68
- }
69
- ],
70
- options: {
71
- // Oidc-provider options See https://github.com/panva/node-oidc-provider/blob/master/docs/README.md
72
- formats: {
73
- AccessToken: "jwt"
74
- },
75
- features: {
76
- encryption: {enabled: true},
77
- introspection: {enabled: true},
78
- revocation: {enabled: true}
79
- }
80
- }
81
- }
82
- })
83
- export class Server {}
84
- ```
85
-
86
32
  ## Contributors
87
33
 
88
34
  Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)