@n8n/db 1.17.0 → 1.18.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.
- package/dist/build.tsbuildinfo +1 -1
- package/dist/entities/deployment-key.d.ts +7 -0
- package/dist/entities/deployment-key.js +37 -0
- package/dist/entities/deployment-key.js.map +1 -0
- package/dist/entities/index.d.ts +3 -1
- package/dist/entities/index.js +4 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/migrations/common/1776150756000-CreateFavoritesTable.d.ts +5 -0
- package/dist/migrations/common/1776150756000-CreateFavoritesTable.js +22 -0
- package/dist/migrations/common/1776150756000-CreateFavoritesTable.js.map +1 -0
- package/dist/migrations/common/1777000000000-CreateDeploymentKeyTable.d.ts +5 -0
- package/dist/migrations/common/1777000000000-CreateDeploymentKeyTable.js +18 -0
- package/dist/migrations/common/1777000000000-CreateDeploymentKeyTable.js.map +1 -0
- package/dist/migrations/postgresdb/index.js +4 -0
- package/dist/migrations/postgresdb/index.js.map +1 -1
- package/dist/migrations/sqlite/index.js +4 -0
- package/dist/migrations/sqlite/index.js.map +1 -1
- package/dist/repositories/deployment-key.repository.d.ts +12 -0
- package/dist/repositories/deployment-key.repository.js +52 -0
- package/dist/repositories/deployment-key.repository.js.map +1 -0
- package/dist/repositories/execution.repository.d.ts +1 -1
- package/dist/repositories/execution.repository.js +15 -9
- package/dist/repositories/execution.repository.js.map +1 -1
- package/dist/repositories/index.d.ts +1 -1
- package/dist/repositories/index.js +3 -3
- package/dist/repositories/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/repositories/clock.repository.d.ts +0 -8
- package/dist/repositories/clock.repository.js +0 -41
- package/dist/repositories/clock.repository.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/db",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/**/*",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"LICENSE_EE.md",
|
|
10
|
+
"LICENSE.md"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@n8n/typeorm": "0.3.20-16",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"uuid": "10.0.0",
|
|
21
21
|
"xss": "1.0.15",
|
|
22
22
|
"zod": "3.25.67",
|
|
23
|
-
"@n8n/api-types": "1.
|
|
24
|
-
"@n8n/
|
|
25
|
-
"@n8n/
|
|
23
|
+
"@n8n/api-types": "1.18.0",
|
|
24
|
+
"@n8n/config": "2.17.0",
|
|
25
|
+
"@n8n/backend-common": "1.18.0",
|
|
26
|
+
"@n8n/decorators": "1.18.0",
|
|
27
|
+
"@n8n/permissions": "0.57.0",
|
|
28
|
+
"@n8n/utils": "1.29.0",
|
|
29
|
+
"n8n-core": "2.18.0",
|
|
26
30
|
"@n8n/di": "0.10.0",
|
|
27
|
-
"@n8n/
|
|
28
|
-
"
|
|
29
|
-
"@n8n/constants": "0.21.0",
|
|
30
|
-
"@n8n/utils": "1.28.0",
|
|
31
|
-
"n8n-core": "2.17.0",
|
|
32
|
-
"n8n-workflow": "2.17.0"
|
|
31
|
+
"@n8n/constants": "0.22.0",
|
|
32
|
+
"n8n-workflow": "2.18.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/lodash": "4.17.17",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DatabaseConfig } from '@n8n/config';
|
|
2
|
-
import { DataSource } from '@n8n/typeorm';
|
|
3
|
-
export declare class ClockRepository {
|
|
4
|
-
private readonly dataSource;
|
|
5
|
-
private readonly databaseConfig;
|
|
6
|
-
constructor(dataSource: DataSource, databaseConfig: DatabaseConfig);
|
|
7
|
-
getDbTime(): Promise<Date>;
|
|
8
|
-
}
|
|
@@ -1,41 +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
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ClockRepository = void 0;
|
|
13
|
-
const config_1 = require("@n8n/config");
|
|
14
|
-
const di_1 = require("@n8n/di");
|
|
15
|
-
const typeorm_1 = require("@n8n/typeorm");
|
|
16
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
17
|
-
let ClockRepository = class ClockRepository {
|
|
18
|
-
constructor(dataSource, databaseConfig) {
|
|
19
|
-
this.dataSource = dataSource;
|
|
20
|
-
this.databaseConfig = databaseConfig;
|
|
21
|
-
}
|
|
22
|
-
async getDbTime() {
|
|
23
|
-
if (this.databaseConfig.type === 'postgresdb') {
|
|
24
|
-
const [{ now }] = await this.dataSource.query('SELECT CURRENT_TIMESTAMP(3) AS now');
|
|
25
|
-
return now;
|
|
26
|
-
}
|
|
27
|
-
const [{ now }] = await this.dataSource.query("SELECT STRFTIME('%Y-%m-%dT%H:%M:%fZ', 'NOW') AS now");
|
|
28
|
-
const date = new Date(now);
|
|
29
|
-
if (Number.isNaN(date.getTime())) {
|
|
30
|
-
throw new n8n_workflow_1.UnexpectedError(`Invalid DB server time: ${now}`);
|
|
31
|
-
}
|
|
32
|
-
return date;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.ClockRepository = ClockRepository;
|
|
36
|
-
exports.ClockRepository = ClockRepository = __decorate([
|
|
37
|
-
(0, di_1.Service)(),
|
|
38
|
-
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
39
|
-
config_1.DatabaseConfig])
|
|
40
|
-
], ClockRepository);
|
|
41
|
-
//# sourceMappingURL=clock.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clock.repository.js","sourceRoot":"","sources":["../../src/repositories/clock.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAA6C;AAC7C,gCAAkC;AAClC,0CAA0C;AAC1C,+CAA+C;AAIxC,IAAM,eAAe,GAArB,MAAM,eAAe;IAC3B,YACkB,UAAsB,EACtB,cAA8B;QAD9B,eAAU,GAAV,UAAU,CAAY;QACtB,mBAAc,GAAd,cAAc,CAAgB;IAC7C,CAAC;IAEJ,KAAK,CAAC,SAAS;QACd,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;YAC/C,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC5C,oCAAoC,CACpC,CAAC;YACF,OAAO,GAAG,CAAC;QACZ,CAAC;QAGD,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC5C,qDAAqD,CACrD,CAAC;QACF,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,8BAAe,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AAxBY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,YAAO,GAAE;qCAGqB,oBAAU;QACN,uBAAc;GAHpC,eAAe,CAwB3B"}
|