@spinajs/session-provider-db 2.0.487 → 2.0.489

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 (23) hide show
  1. package/lib/cjs/index.d.ts +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_20_00.d.ts +28 -0
  4. package/lib/cjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_20_00.d.ts.map +1 -0
  5. package/lib/cjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_20_00.js +58 -0
  6. package/lib/cjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_20_00.js.map +1 -0
  7. package/lib/mjs/index.d.ts +1 -1
  8. package/lib/mjs/index.js +1 -1
  9. package/lib/mjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_20_00.d.ts +28 -0
  10. package/lib/mjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_20_00.d.ts.map +1 -0
  11. package/lib/mjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_20_00.js +55 -0
  12. package/lib/mjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_20_00.js.map +1 -0
  13. package/lib/tsconfig.cjs.tsbuildinfo +1 -1
  14. package/lib/tsconfig.mjs.tsbuildinfo +1 -1
  15. package/package.json +10 -10
  16. package/lib/cjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.d.ts +0 -6
  17. package/lib/cjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.d.ts.map +0 -1
  18. package/lib/cjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.js +0 -31
  19. package/lib/cjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.js.map +0 -1
  20. package/lib/mjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.d.ts +0 -6
  21. package/lib/mjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.d.ts.map +0 -1
  22. package/lib/mjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.js +0 -28
  23. package/lib/mjs/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spinajs/session-provider-db",
3
- "version": "2.0.487",
3
+ "version": "2.0.489",
4
4
  "description": "Simple session provider based on relational db. Usefull for testing or small projects",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -49,18 +49,18 @@
49
49
  },
50
50
  "homepage": "https://github.com/spinajs/main#readme",
51
51
  "dependencies": {
52
- "@spinajs/configuration": "^2.0.487",
53
- "@spinajs/di": "^2.0.487",
54
- "@spinajs/exceptions": "^2.0.487",
55
- "@spinajs/log": "^2.0.487",
56
- "@spinajs/orm": "2.0.487",
57
- "@spinajs/rbac": "^2.0.487",
58
- "@spinajs/reflection": "^2.0.487",
59
- "@spinajs/util": "^2.0.487",
52
+ "@spinajs/configuration": "^2.0.489",
53
+ "@spinajs/di": "^2.0.489",
54
+ "@spinajs/exceptions": "^2.0.489",
55
+ "@spinajs/log": "^2.0.489",
56
+ "@spinajs/orm": "2.0.489",
57
+ "@spinajs/rbac": "^2.0.489",
58
+ "@spinajs/reflection": "^2.0.489",
59
+ "@spinajs/util": "^2.0.489",
60
60
  "luxon": "^3.6.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@spinajs/orm-sqlite": "2.0.487"
63
+ "@spinajs/orm-sqlite": "2.0.489"
64
64
  },
65
65
  "gitHead": "002dc553b0ffffd72193d0121ac425a4083bc9ee"
66
66
  }
@@ -1,6 +0,0 @@
1
- import { OrmMigration, OrmDriver } from '@spinajs/orm';
2
- export declare class UserSessionDBSqlMigration_2022_06_28_01_01_01 extends OrmMigration {
3
- up(connection: OrmDriver): Promise<void>;
4
- down(_: OrmDriver): Promise<void>;
5
- }
6
- //# sourceMappingURL=UserSessionDBSqlMigration_2022_06_28_01_01_01.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserSessionDBSqlMigration_2022_06_28_01_01_01.d.ts","sourceRoot":"","sources":["../../../src/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,SAAS,EAAqB,MAAM,cAAc,CAAC;AAErF,qBACa,6CAA8C,SAAQ,YAAY;IAChE,EAAE,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBxC,IAAI,CAAC,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAC/C"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.UserSessionDBSqlMigration_2022_06_28_01_01_01 = void 0;
10
- const orm_1 = require("@spinajs/orm");
11
- let UserSessionDBSqlMigration_2022_06_28_01_01_01 = class UserSessionDBSqlMigration_2022_06_28_01_01_01 extends orm_1.OrmMigration {
12
- async up(connection) {
13
- await connection.schema().createTable('user_sessions', (table) => {
14
- table.string('SessionId', 36).primaryKey().notNull();
15
- table.dateTime('CreatedAt').notNull();
16
- table.dateTime('Expiration');
17
- table.json('Data').notNull();
18
- table.int('UserId').notNull();
19
- table.foreignKey("UserId").references('users', 'Id').onDelete(orm_1.ReferentialAction.Cascade);
20
- });
21
- // create index explicit, otherwise sqlite driver cannot extract unique index from sqlite_master
22
- await connection.index().table('user_sessions').name('session_id_user_session_idx').columns(['SessionId']).unique();
23
- }
24
- // tslint:disable-next-line: no-empty
25
- async down(_) { }
26
- };
27
- exports.UserSessionDBSqlMigration_2022_06_28_01_01_01 = UserSessionDBSqlMigration_2022_06_28_01_01_01;
28
- exports.UserSessionDBSqlMigration_2022_06_28_01_01_01 = UserSessionDBSqlMigration_2022_06_28_01_01_01 = __decorate([
29
- (0, orm_1.Migration)('session-provider-connection')
30
- ], UserSessionDBSqlMigration_2022_06_28_01_01_01);
31
- //# sourceMappingURL=UserSessionDBSqlMigration_2022_06_28_01_01_01.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserSessionDBSqlMigration_2022_06_28_01_01_01.js","sourceRoot":"","sources":["../../../src/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.ts"],"names":[],"mappings":";;;;;;;;;AAAA,sCAAqF;AAG9E,IAAM,6CAA6C,GAAnD,MAAM,6CAA8C,SAAQ,kBAAY;IACtE,KAAK,CAAC,EAAE,CAAC,UAAqB;QACnC,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/D,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAC;YACrD,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,CAAC;YACtC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;YAC7B,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC;YAC7B,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC;YAE9B,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,uBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3F,CAAC,CAAC,CAAC;QAEH,gGAAgG;QAChG,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtH,CAAC;IAED,qCAAqC;IAC9B,KAAK,CAAC,IAAI,CAAC,CAAY,IAAmB,CAAC;CACnD,CAAA;AAlBY,sGAA6C;wDAA7C,6CAA6C;IADzD,IAAA,eAAS,EAAC,6BAA6B,CAAC;GAC5B,6CAA6C,CAkBzD"}
@@ -1,6 +0,0 @@
1
- import { OrmMigration, OrmDriver } from '@spinajs/orm';
2
- export declare class UserSessionDBSqlMigration_2022_06_28_01_01_01 extends OrmMigration {
3
- up(connection: OrmDriver): Promise<void>;
4
- down(_: OrmDriver): Promise<void>;
5
- }
6
- //# sourceMappingURL=UserSessionDBSqlMigration_2022_06_28_01_01_01.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserSessionDBSqlMigration_2022_06_28_01_01_01.d.ts","sourceRoot":"","sources":["../../../src/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,SAAS,EAAqB,MAAM,cAAc,CAAC;AAErF,qBACa,6CAA8C,SAAQ,YAAY;IAChE,EAAE,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBxC,IAAI,CAAC,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAC/C"}
@@ -1,28 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Migration, OrmMigration, ReferentialAction } from '@spinajs/orm';
8
- let UserSessionDBSqlMigration_2022_06_28_01_01_01 = class UserSessionDBSqlMigration_2022_06_28_01_01_01 extends OrmMigration {
9
- async up(connection) {
10
- await connection.schema().createTable('user_sessions', (table) => {
11
- table.string('SessionId', 36).primaryKey().notNull();
12
- table.dateTime('CreatedAt').notNull();
13
- table.dateTime('Expiration');
14
- table.json('Data').notNull();
15
- table.int('UserId').notNull();
16
- table.foreignKey("UserId").references('users', 'Id').onDelete(ReferentialAction.Cascade);
17
- });
18
- // create index explicit, otherwise sqlite driver cannot extract unique index from sqlite_master
19
- await connection.index().table('user_sessions').name('session_id_user_session_idx').columns(['SessionId']).unique();
20
- }
21
- // tslint:disable-next-line: no-empty
22
- async down(_) { }
23
- };
24
- UserSessionDBSqlMigration_2022_06_28_01_01_01 = __decorate([
25
- Migration('session-provider-connection')
26
- ], UserSessionDBSqlMigration_2022_06_28_01_01_01);
27
- export { UserSessionDBSqlMigration_2022_06_28_01_01_01 };
28
- //# sourceMappingURL=UserSessionDBSqlMigration_2022_06_28_01_01_01.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserSessionDBSqlMigration_2022_06_28_01_01_01.js","sourceRoot":"","sources":["../../../src/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAa,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAG9E,IAAM,6CAA6C,GAAnD,MAAM,6CAA8C,SAAQ,YAAY;IACtE,KAAK,CAAC,EAAE,CAAC,UAAqB;QACnC,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/D,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAC;YACrD,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,CAAC;YACtC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;YAC7B,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC;YAC7B,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC;YAE9B,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3F,CAAC,CAAC,CAAC;QAEH,gGAAgG;QAChG,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtH,CAAC;IAED,qCAAqC;IAC9B,KAAK,CAAC,IAAI,CAAC,CAAY,IAAmB,CAAC;CACnD,CAAA;AAlBY,6CAA6C;IADzD,SAAS,CAAC,6BAA6B,CAAC;GAC5B,6CAA6C,CAkBzD"}