@budibase/backend-core 2.9.18 → 2.9.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/backend-core",
3
- "version": "2.9.18",
3
+ "version": "2.9.19",
4
4
  "description": "Budibase backend core libraries used in server and worker",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "dependencies": {
24
24
  "@budibase/nano": "10.1.2",
25
25
  "@budibase/pouchdb-replication-stream": "1.2.10",
26
- "@budibase/shared-core": "2.9.18",
27
- "@budibase/types": "2.9.18",
26
+ "@budibase/shared-core": "2.9.19",
27
+ "@budibase/types": "2.9.19",
28
28
  "@techpass/passport-openidconnect": "0.3.2",
29
29
  "aws-cloudfront-sign": "2.2.0",
30
30
  "aws-sdk": "2.1030.0",
@@ -89,5 +89,5 @@
89
89
  "tsconfig-paths": "4.0.0",
90
90
  "typescript": "4.7.3"
91
91
  },
92
- "gitHead": "553433172af1afaeaa1a49b8f7b515347d7068c4"
92
+ "gitHead": "1e299bc55448c482ae317151dd4fdddefcca558c"
93
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/backend-core",
3
- "version": "2.9.18",
3
+ "version": "2.9.19",
4
4
  "description": "Budibase backend core libraries used in server and worker",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "dependencies": {
24
24
  "@budibase/nano": "10.1.2",
25
25
  "@budibase/pouchdb-replication-stream": "1.2.10",
26
- "@budibase/shared-core": "2.9.18",
27
- "@budibase/types": "2.9.18",
26
+ "@budibase/shared-core": "2.9.19",
27
+ "@budibase/types": "2.9.19",
28
28
  "@techpass/passport-openidconnect": "0.3.2",
29
29
  "aws-cloudfront-sign": "2.2.0",
30
30
  "aws-sdk": "2.1030.0",
@@ -89,5 +89,5 @@
89
89
  "tsconfig-paths": "4.0.0",
90
90
  "typescript": "4.7.3"
91
91
  },
92
- "gitHead": "553433172af1afaeaa1a49b8f7b515347d7068c4"
92
+ "gitHead": "1e299bc55448c482ae317151dd4fdddefcca558c"
93
93
  }
@@ -1,18 +0,0 @@
1
- const mockS3 = {
2
- headBucket: jest.fn().mockReturnThis(),
3
- deleteObject: jest.fn().mockReturnThis(),
4
- deleteObjects: jest.fn().mockReturnThis(),
5
- createBucket: jest.fn().mockReturnThis(),
6
- listObject: jest.fn().mockReturnThis(),
7
- getSignedUrl: jest.fn((operation: string, params: any) => {
8
- return `http://s3.example.com/${params.Bucket}/${params.Key}`
9
- }),
10
- promise: jest.fn().mockReturnThis(),
11
- catch: jest.fn(),
12
- }
13
-
14
- const AWS = {
15
- S3: jest.fn(() => mockS3),
16
- }
17
-
18
- export default AWS
@@ -1,8 +0,0 @@
1
- const { join } = require("path")
2
- require("dotenv").config({
3
- path: join(__dirname, "..", "..", "hosting", ".env"),
4
- })
5
-
6
- const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator")
7
-
8
- module.exports = jestTestcontainersConfigGenerator()
package/jest.config.ts DELETED
@@ -1,35 +0,0 @@
1
- import { Config } from "@jest/types"
2
-
3
- const baseConfig: Config.InitialProjectOptions = {
4
- preset: "@trendyol/jest-testcontainers",
5
- setupFiles: ["./tests/jestEnv.ts"],
6
- setupFilesAfterEnv: ["./tests/jestSetup.ts"],
7
- transform: {
8
- "^.+\\.ts?$": "@swc/jest",
9
- },
10
- moduleNameMapper: {
11
- "@budibase/types": "<rootDir>/../types/src",
12
- "@budibase/shared-core": ["<rootDir>/../shared-core/src"],
13
- },
14
- }
15
-
16
- const config: Config.InitialOptions = {
17
- projects: [
18
- {
19
- ...baseConfig,
20
- displayName: "sequential test",
21
- testMatch: ["<rootDir>/**/*.seq.spec.[jt]s"],
22
- runner: "jest-serial-runner",
23
- },
24
- {
25
- ...baseConfig,
26
- testMatch: ["<rootDir>/**/!(*.seq).spec.[jt]s"],
27
- },
28
- ],
29
- collectCoverageFrom: ["src/**/*.{js,ts}"],
30
- coverageReporters: ["lcov", "json", "clover"],
31
- }
32
-
33
- process.env.DISABLE_PINO_LOGGER = "1"
34
-
35
- export default config
package/scripts/build.js DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/node
2
- const coreBuild = require("../../../scripts/build")
3
-
4
- coreBuild("./src/plugin/index.ts", "./dist/plugins.js")
5
- coreBuild("./src/index.ts", "./dist/index.js")
6
- coreBuild("./tests/index.ts", "./dist/tests.js")
package/scripts/test.sh DELETED
@@ -1,13 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
-
4
- if [[ -n $CI ]]
5
- then
6
- # --runInBand performs better in ci where resources are limited
7
- echo "jest --coverage --runInBand --forceExit"
8
- jest --coverage --runInBand --forceExit
9
- else
10
- # --maxWorkers performs better in development
11
- echo "jest --coverage --detectOpenHandles"
12
- jest --coverage --detectOpenHandles
13
- fi
@@ -1,29 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es6",
4
- "module": "commonjs",
5
- "lib": ["es2020"],
6
- "strict": true,
7
- "noImplicitAny": true,
8
- "esModuleInterop": true,
9
- "resolveJsonModule": true,
10
- "incremental": true,
11
- "sourceMap": true,
12
- "declaration": true,
13
- "types": ["node", "jest"],
14
- "outDir": "dist",
15
- "skipLibCheck": true,
16
- "paths": {
17
- "@budibase/types": ["../types/src"],
18
- "@budibase/shared-core": ["../shared-core/src"]
19
- }
20
- },
21
- "include": ["**/*.js", "**/*.ts"],
22
- "exclude": [
23
- "node_modules",
24
- "dist",
25
- "**/*.spec.ts",
26
- "**/*.spec.js",
27
- "__mocks__"
28
- ]
29
- }
package/tsconfig.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "./tsconfig.build.json",
3
- "exclude": ["node_modules", "dist"]
4
- }