@dbos-inc/dbos-sdk 1.13.31-preview.g949a1c98b1 → 1.14.5-preview
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +2 -2
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/cli.js +1 -1
- package/dist/src/dbos-runtime/cli.js.map +1 -1
- package/dist/src/telemetry/logs.js +1 -1
- package/dist/src/telemetry/logs.js.map +1 -1
- package/dist/src/user_database.d.ts +1 -1
- package/dist/src/user_database.d.ts.map +1 -1
- package/dist/src/user_database.js +1 -1
- package/dist/src/user_database.js.map +1 -1
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/eslint.config.js +41 -0
- package/package.json +8 -7
package/eslint.config.js
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
const { FlatCompat } = require("@eslint/eslintrc");
|
2
|
+
const typescriptEslint = require("typescript-eslint");
|
3
|
+
const typescriptEslintPlugin = require("@typescript-eslint/eslint-plugin");
|
4
|
+
const typescriptEslintParser = require("@typescript-eslint/parser");
|
5
|
+
const globals = require("globals");
|
6
|
+
const js = require("@eslint/js");
|
7
|
+
|
8
|
+
const compat = new FlatCompat({
|
9
|
+
baseDirectory: __dirname,
|
10
|
+
recommendedConfig: js.configs.recommended
|
11
|
+
});
|
12
|
+
|
13
|
+
module.exports = typescriptEslint.config(
|
14
|
+
{
|
15
|
+
ignores: [
|
16
|
+
"**/dist/",
|
17
|
+
"**/migrations/*",
|
18
|
+
"packages/create/templates/"
|
19
|
+
]
|
20
|
+
},
|
21
|
+
|
22
|
+
{
|
23
|
+
files: ["**/*.ts"],
|
24
|
+
|
25
|
+
extends: compat.extends("plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-type-checked"),
|
26
|
+
plugins: { "@typescript-eslint": typescriptEslintPlugin },
|
27
|
+
|
28
|
+
languageOptions: {
|
29
|
+
parser: typescriptEslintParser,
|
30
|
+
parserOptions: { project: "./tsconfig.json" },
|
31
|
+
globals: { ...globals.node }
|
32
|
+
},
|
33
|
+
|
34
|
+
rules: {
|
35
|
+
"@typescript-eslint/indent": "off",
|
36
|
+
"@typescript-eslint/unbound-method": ["error", { ignoreStatic: true }],
|
37
|
+
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrors: "none" }],
|
38
|
+
"@typescript-eslint/no-misused-promises": ["error", { checksVoidReturn: false }]
|
39
|
+
}
|
40
|
+
}
|
41
|
+
);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dbos-inc/dbos-sdk",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.14.5-preview",
|
4
4
|
"description": "A Typescript framework built on the database",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -16,8 +16,8 @@
|
|
16
16
|
"scripts": {
|
17
17
|
"build": "tsc --project tsconfig.build.json && npm run --workspaces build",
|
18
18
|
"build-fdb": "tsc --project tsconfig.build-fdb.json && npm run --workspaces build",
|
19
|
-
"lint": "eslint --
|
20
|
-
"lint-fdb": "eslint
|
19
|
+
"lint": "eslint --ignore-pattern src/foundationdb/ --ignore-pattern tests/foundationdb/ .",
|
20
|
+
"lint-fdb": "eslint .",
|
21
21
|
"setversion": "npm run --workspaces setversion && grunt setversion",
|
22
22
|
"test": "npm run build && npm run --workspaces test && npx prisma generate --schema tests/prisma/schema.prisma && jest --coverage --collectCoverageFrom='src/**/*' --collectCoverageFrom='!src/foundationdb/**/*' --detectOpenHandles --testPathIgnorePatterns=examples/* --testPathIgnorePatterns=packages/* --testPathIgnorePatterns=tests/foundationdb/*",
|
23
23
|
"test-fdb": "npm run build-fdb && npm run --workspaces test && npx prisma generate --schema tests/prisma/schema.prisma && jest --runInBand --coverage"
|
@@ -37,16 +37,17 @@
|
|
37
37
|
"@types/pg": "^8.11.2",
|
38
38
|
"@types/supertest": "^6.0.2",
|
39
39
|
"@types/uuid": "^9.0.8",
|
40
|
-
"@typescript-eslint/eslint-plugin": "^
|
41
|
-
"@typescript-eslint/parser": "^
|
42
|
-
"eslint": "^
|
40
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0-alpha.30",
|
41
|
+
"@typescript-eslint/parser": "^8.0.0-alpha.30",
|
42
|
+
"eslint": "^9.4.0",
|
43
43
|
"jest": "^29.7.0",
|
44
44
|
"nerdbank-gitversioning": "^3.6.133",
|
45
45
|
"prisma": "^5.1.1",
|
46
46
|
"supertest": "^7.0.0",
|
47
47
|
"ts-jest": "^29.1.2",
|
48
48
|
"typeorm": "^0.3.17",
|
49
|
-
"typescript": "^5.4.5"
|
49
|
+
"typescript": "^5.4.5",
|
50
|
+
"typescript-eslint": "^8.0.0-alpha.30"
|
50
51
|
},
|
51
52
|
"dependencies": {
|
52
53
|
"@koa/bodyparser": "5.0.0",
|