@spinajs/orm-sqlite 2.0.12 → 2.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spinajs/orm-sqlite",
3
- "version": "2.0.12",
3
+ "version": "2.0.20",
4
4
  "description": "framework orm sql-lite language module",
5
5
  "main": "lib/index.js",
6
6
  "private": false,
@@ -40,12 +40,12 @@
40
40
  },
41
41
  "homepage": "https://github.com/spinajs/main#readme",
42
42
  "dependencies": {
43
- "@spinajs/configuration": "^2.0.12",
44
- "@spinajs/di": "^2.0.12",
43
+ "@spinajs/configuration": "^2.0.19",
44
+ "@spinajs/di": "^2.0.19",
45
45
  "@spinajs/exceptions": "^2.0.12",
46
- "@spinajs/log": "^2.0.12",
47
- "@spinajs/orm": "^2.0.12",
48
- "@spinajs/orm-sql": "^2.0.12",
46
+ "@spinajs/log": "^2.0.19",
47
+ "@spinajs/orm": "^2.0.19",
48
+ "@spinajs/orm-sql": "^2.0.20",
49
49
  "lodash": "^4.17.15",
50
50
  "luxon": "^2.3.0",
51
51
  "sqlite3": "^5.0.2",
@@ -54,5 +54,5 @@
54
54
  "devDependencies": {
55
55
  "@types/sqlite3": "^3.1.5"
56
56
  },
57
- "gitHead": "d7910d799995df6fa9eb8174d4a9b65c81db8352"
57
+ "gitHead": "1fcee7df51698e931758103632c2eb5ccbf7d8a7"
58
58
  }
@@ -1,6 +0,0 @@
1
- import { DatetimeValueConverter } from '@spinajs/orm';
2
- import { DateTime } from 'luxon';
3
- export declare class SqliteDatetimeValueConverter extends DatetimeValueConverter {
4
- toDB(value: Date | DateTime): string;
5
- fromDB(value: string): DateTime;
6
- }
package/lib/converters.js DELETED
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SqliteDatetimeValueConverter = void 0;
4
- /* eslint-disable prettier/prettier */
5
- const orm_1 = require("@spinajs/orm");
6
- const luxon_1 = require("luxon");
7
- class SqliteDatetimeValueConverter extends orm_1.DatetimeValueConverter {
8
- toDB(value) {
9
- if (value instanceof Date) {
10
- return value.toISOString();
11
- }
12
- if (value instanceof luxon_1.DateTime) {
13
- return value.toISO();
14
- }
15
- return null;
16
- }
17
- fromDB(value) {
18
- if (!value) {
19
- return null;
20
- }
21
- return luxon_1.DateTime.fromISO(value);
22
- }
23
- }
24
- exports.SqliteDatetimeValueConverter = SqliteDatetimeValueConverter;
25
- //# sourceMappingURL=converters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"converters.js","sourceRoot":"","sources":["../src/converters.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACtC,sCAAsD;AACtD,iCAAiC;AAEjC,MAAa,4BAA6B,SAAQ,4BAAsB;IAC/D,IAAI,CAAC,KAAsB;QAChC,IAAI,KAAK,YAAY,IAAI,EAAE;YACzB,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;SAC5B;QAED,IAAI,KAAK,YAAY,gBAAQ,EAAE;YAC7B,OAAO,KAAK,CAAC,KAAK,EAAE,CAAC;SACtB;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,KAAa;QACzB,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,IAAI,CAAC;SACb;QAED,OAAO,gBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACF;AApBD,oEAoBC"}