@@ -126,6 +130,28 @@
}
#app-root {
position: relative;
+ border: 1px solid var(--spectrum-global-color-gray-300);
+ }
+
+ /* Custom scrollbars */
+ :global(::-webkit-scrollbar) {
+ width: 8px;
+ height: 8px;
+ }
+ :global(::-webkit-scrollbar-track) {
+ background: var(--spectrum-alias-background-color-default);
+ }
+ :global(::-webkit-scrollbar-thumb) {
+ background-color: var(--spectrum-global-color-gray-400);
+ border-radius: 4px;
+ }
+ :global(::-webkit-scrollbar-corner) {
+ background: var(--spectrum-alias-background-color-default);
+ }
+ :global(*) {
+ scrollbar-width: thin;
+ scrollbar-color: var(--spectrum-global-color-gray-400)
+ var(--spectrum-alias-background-color-default);
}
.error {
diff --git a/packages/client/src/components/preview/HoverIndicator.svelte b/packages/client/src/components/preview/HoverIndicator.svelte
index d049a1f94b..5cdf3eccff 100644
--- a/packages/client/src/components/preview/HoverIndicator.svelte
+++ b/packages/client/src/components/preview/HoverIndicator.svelte
@@ -29,4 +29,9 @@
})
-
+
diff --git a/packages/client/src/components/preview/SelectionIndicator.svelte b/packages/client/src/components/preview/SelectionIndicator.svelte
index bb71856211..031e940b9d 100644
--- a/packages/client/src/components/preview/SelectionIndicator.svelte
+++ b/packages/client/src/components/preview/SelectionIndicator.svelte
@@ -5,7 +5,7 @@
diff --git a/packages/client/src/components/preview/SettingsBar.svelte b/packages/client/src/components/preview/SettingsBar.svelte
index 5905535323..69197e6ede 100644
--- a/packages/client/src/components/preview/SettingsBar.svelte
+++ b/packages/client/src/components/preview/SettingsBar.svelte
@@ -138,11 +138,11 @@
padding: 6px 8px;
opacity: 0;
flex-direction: row;
- background: var(--background);
+ background: var(--spectrum-alias-background-color-primary);
justify-content: center;
align-items: center;
border-radius: 4px;
- box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
gap: 2px;
transition: opacity 0.13s ease-in-out;
}
@@ -155,4 +155,14 @@
margin: 0 4px;
background-color: var(--spectrum-global-color-gray-300);
}
+
+ /* Theme overrides */
+ :global(.spectrum--dark) .bar,
+ :global(.spectrum--darkest) .bar {
+ background: var(--spectrum-global-color-gray-200);
+ }
+ :global(.spectrum--dark) .divider,
+ :global(.spectrum--darkest) .divider {
+ background: var(--spectrum-global-color-gray-400);
+ }
diff --git a/packages/client/src/index.js b/packages/client/src/index.js
index 66bbce2770..b7a303d9d8 100644
--- a/packages/client/src/index.js
+++ b/packages/client/src/index.js
@@ -1,5 +1,5 @@
import ClientApp from "./components/ClientApp.svelte"
-import { builderStore } from "./store"
+import { builderStore, appStore } from "./store"
let app
@@ -7,14 +7,18 @@ const loadBudibase = () => {
// Update builder store with any builder flags
builderStore.set({
inBuilder: !!window["##BUDIBASE_IN_BUILDER##"],
- appId: window["##BUDIBASE_APP_ID##"],
layout: window["##BUDIBASE_PREVIEW_LAYOUT##"],
screen: window["##BUDIBASE_PREVIEW_SCREEN##"],
selectedComponentId: window["##BUDIBASE_SELECTED_COMPONENT_ID##"],
previewId: window["##BUDIBASE_PREVIEW_ID##"],
previewType: window["##BUDIBASE_PREVIEW_TYPE##"],
+ theme: window["##BUDIBASE_PREVIEW_THEME##"],
})
+ // Set app ID - this window flag is set by both the preview and the real
+ // server rendered app HTML
+ appStore.actions.setAppID(window["##BUDIBASE_APP_ID##"])
+
// Create app if one hasn't been created yet
if (!app) {
app = new ClientApp({
diff --git a/packages/client/src/store/app.js b/packages/client/src/store/app.js
new file mode 100644
index 0000000000..eb5a259a25
--- /dev/null
+++ b/packages/client/src/store/app.js
@@ -0,0 +1,27 @@
+import * as API from "../api"
+import { get, writable } from "svelte/store"
+
+const createAppStore = () => {
+ const store = writable({})
+
+ // Fetches the app definition including screens, layouts and theme
+ const fetchAppDefinition = async () => {
+ const appDefinition = await API.fetchAppPackage(get(store).appId)
+ store.set(appDefinition)
+ }
+
+ // Sets the initial app ID
+ const setAppID = id => {
+ store.update(state => {
+ state.appId = id
+ return state
+ })
+ }
+
+ return {
+ subscribe: store.subscribe,
+ actions: { setAppID, fetchAppDefinition },
+ }
+}
+
+export const appStore = createAppStore()
diff --git a/packages/client/src/store/auth.js b/packages/client/src/store/auth.js
index 9829d2e350..604da7f9ad 100644
--- a/packages/client/src/store/auth.js
+++ b/packages/client/src/store/auth.js
@@ -1,26 +1,13 @@
import * as API from "../api"
-import { writable, get } from "svelte/store"
-import { builderStore } from "./builder"
-import { TableNames } from "../constants"
+import { writable } from "svelte/store"
const createAuthStore = () => {
const store = writable(null)
// Fetches the user object if someone is logged in and has reloaded the page
const fetchUser = async () => {
- // Fetch the first user if inside the builder
- if (get(builderStore).inBuilder) {
- const users = await API.fetchTableData(TableNames.USERS)
- if (!users.error && users[0] != null) {
- store.set(users[0])
- }
- }
-
- // Or fetch the current user from localstorage in a real app
- else {
- const user = await API.fetchSelf()
- store.set(user)
- }
+ const user = await API.fetchSelf()
+ store.set(user)
}
return {
diff --git a/packages/client/src/store/index.js b/packages/client/src/store/index.js
index 9f2dbfdcfb..9a6c74e028 100644
--- a/packages/client/src/store/index.js
+++ b/packages/client/src/store/index.js
@@ -1,4 +1,5 @@
export { authStore } from "./auth"
+export { appStore } from "./app"
export { notificationStore } from "./notification"
export { routeStore } from "./routes"
export { screenStore } from "./screens"
diff --git a/packages/client/src/store/initialise.js b/packages/client/src/store/initialise.js
index 9e24439980..1900e62ce1 100644
--- a/packages/client/src/store/initialise.js
+++ b/packages/client/src/store/initialise.js
@@ -1,7 +1,7 @@
import { routeStore } from "./routes"
-import { screenStore } from "./screens"
+import { appStore } from "./app"
export async function initialise() {
await routeStore.actions.fetchRoutes()
- await screenStore.actions.fetchScreens()
+ await appStore.actions.fetchAppDefinition()
}
diff --git a/packages/client/src/store/screens.js b/packages/client/src/store/screens.js
index 46255d0822..367d9ecfea 100644
--- a/packages/client/src/store/screens.js
+++ b/packages/client/src/store/screens.js
@@ -1,16 +1,12 @@
-import { writable, derived, get } from "svelte/store"
+import { derived } from "svelte/store"
import { routeStore } from "./routes"
import { builderStore } from "./builder"
-import * as API from "../api"
+import { appStore } from "./app"
const createScreenStore = () => {
- const config = writable({
- screens: [],
- layouts: [],
- })
const store = derived(
- [config, routeStore, builderStore],
- ([$config, $routeStore, $builderStore]) => {
+ [appStore, routeStore, builderStore],
+ ([$appStore, $routeStore, $builderStore]) => {
let activeLayout, activeScreen
let layouts, screens
if ($builderStore.inBuilder) {
@@ -23,8 +19,8 @@ const createScreenStore = () => {
activeLayout = { props: { _component: "screenslot" } }
// Find the correct screen by matching the current route
- screens = $config.screens
- layouts = $config.layouts
+ screens = $appStore.screens
+ layouts = $appStore.layouts
if ($routeStore.activeRoute) {
activeScreen = screens.find(
screen => screen._id === $routeStore.activeRoute.screenId
@@ -40,17 +36,8 @@ const createScreenStore = () => {
}
)
- const fetchScreens = async () => {
- const appDefinition = await API.fetchAppDefinition(get(builderStore).appId)
- config.set({
- screens: appDefinition.screens,
- layouts: appDefinition.layouts,
- })
- }
-
return {
subscribe: store.subscribe,
- actions: { fetchScreens },
}
}
diff --git a/packages/client/src/utils/styleable.js b/packages/client/src/utils/styleable.js
index 3f02b36600..13eae2ea7f 100644
--- a/packages/client/src/utils/styleable.js
+++ b/packages/client/src/utils/styleable.js
@@ -29,7 +29,7 @@ export const styleable = (node, styles = {}) => {
// overridden by any user specified styles
let baseStyles = {}
if (newStyles.empty) {
- baseStyles.border = "2px dashed var(--grey-5)"
+ baseStyles.border = "2px dashed var(--spectrum-global-color-gray-600)"
baseStyles.padding = "var(--spacing-l)"
baseStyles.overflow = "hidden"
}
diff --git a/packages/server/.gitignore b/packages/server/.gitignore
index c737d00466..e8589f631d 100644
--- a/packages/server/.gitignore
+++ b/packages/server/.gitignore
@@ -2,6 +2,7 @@ node_modules/
myapps/
.env
builder/*
+client/*
public/
db/dev.db/
dist
diff --git a/packages/server/.vscode/launch.json b/packages/server/.vscode/launch.json
index 7417938376..a07cf96b80 100644
--- a/packages/server/.vscode/launch.json
+++ b/packages/server/.vscode/launch.json
@@ -5,10 +5,13 @@
"version": "0.2.0",
"configurations": [
{
+ "name": "Start Server",
"type": "node",
"request": "launch",
- "name": "Start Server",
- "program": "${workspaceFolder}/src/index.js"
+ "runtimeExecutable": "node",
+ "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
+ "args": ["src/index.ts"],
+ "cwd": "${workspaceRoot}",
},
{
"type": "node",
diff --git a/packages/server/nodemon.json b/packages/server/nodemon.json
new file mode 100644
index 0000000000..a5640776e4
--- /dev/null
+++ b/packages/server/nodemon.json
@@ -0,0 +1,6 @@
+{
+ "watch": ["src"],
+ "ext": "js,ts,json",
+ "ignore": ["src/**/*.spec.ts", "src/**/*.spec.js"],
+ "exec": "ts-node src/index.ts"
+}
\ No newline at end of file
diff --git a/packages/server/package.json b/packages/server/package.json
index d37fed9b7a..1c7d27bd09 100644
--- a/packages/server/package.json
+++ b/packages/server/package.json
@@ -13,12 +13,13 @@
"postbuild": "copyfiles -u 1 src/**/*.svelte dist/ && copyfiles -u 1 src/**/*.hbs dist/ && copyfiles -u 1 src/**/*.json dist/",
"test": "jest --coverage --maxWorkers=2",
"test:watch": "jest --watch",
- "build:docker": "docker build . -t app-service",
+ "predocker": "copyfiles -f ../client/dist/budibase-client.js ../standard-components/manifest.json client",
+ "build:docker": "yarn run predocker && docker build . -t app-service",
"run:docker": "node dist/index.js",
"dev:stack:up": "node scripts/dev/manage.js up",
"dev:stack:down": "node scripts/dev/manage.js down",
"dev:stack:nuke": "node scripts/dev/manage.js nuke",
- "dev:builder": "yarn run dev:stack:up && ts-node src/index.ts",
+ "dev:builder": "yarn run dev:stack:up && nodemon",
"format": "prettier --config ../../.prettierrc.json 'src/**/*.ts' --write",
"lint": "eslint --fix src/",
"lint:fix": "yarn run format && yarn run lint",
diff --git a/packages/server/scripts/integrations/mysql/init.sql b/packages/server/scripts/integrations/mysql/init.sql
index 3ffe84cd7d..8cd120a8a3 100644
--- a/packages/server/scripts/integrations/mysql/init.sql
+++ b/packages/server/scripts/integrations/mysql/init.sql
@@ -1,9 +1,22 @@
CREATE DATABASE IF NOT EXISTS main;
USE main;
CREATE TABLE Persons (
- PersonID int NOT NULL PRIMARY KEY,
+ PersonID int NOT NULL AUTO_INCREMENT,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
- City varchar(255)
+ City varchar(255),
+ PRIMARY KEY (PersonID)
);
+CREATE TABLE Tasks (
+ TaskID int NOT NULL AUTO_INCREMENT,
+ PersonID INT,
+ TaskName varchar(255),
+ PRIMARY KEY (TaskID),
+ CONSTRAINT fkPersons
+ FOREIGN KEY(PersonID)
+ REFERENCES Persons(PersonID)
+);
+INSERT INTO Persons (FirstName, LastName, Address, City) VALUES ('Mike', 'Hughes', '123 Fake Street', 'Belfast');
+INSERT INTO Tasks (PersonID, TaskName) VALUES (1, 'assembling');
+INSERT INTO Tasks (PersonID, TaskName) VALUES (1, 'processing');
diff --git a/packages/server/scripts/integrations/mysql/reset.sh b/packages/server/scripts/integrations/mysql/reset.sh
new file mode 100755
index 0000000000..32778bd11f
--- /dev/null
+++ b/packages/server/scripts/integrations/mysql/reset.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+docker-compose down
+docker volume prune -f
diff --git a/packages/server/scripts/integrations/postgres/init.sql b/packages/server/scripts/integrations/postgres/init.sql
index 8d76f54a10..5a99520c1e 100644
--- a/packages/server/scripts/integrations/postgres/init.sql
+++ b/packages/server/scripts/integrations/postgres/init.sql
@@ -1,17 +1,42 @@
SELECT 'CREATE DATABASE main'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'main')\gexec
CREATE TABLE Persons (
- PersonID INT NOT NULL PRIMARY KEY,
+ PersonID SERIAL PRIMARY KEY,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
- City varchar(255)
+ City varchar(255) DEFAULT 'Belfast'
);
CREATE TABLE Tasks (
- TaskID INT NOT NULL PRIMARY KEY,
+ TaskID SERIAL PRIMARY KEY,
PersonID INT,
TaskName varchar(255),
CONSTRAINT fkPersons
FOREIGN KEY(PersonID)
REFERENCES Persons(PersonID)
);
+CREATE TABLE Products (
+ ProductID SERIAL PRIMARY KEY,
+ ProductName varchar(255)
+);
+CREATE TABLE Products_Tasks (
+ ProductID INT NOT NULL,
+ TaskID INT NOT NULL,
+ CONSTRAINT fkProducts
+ FOREIGN KEY(ProductID)
+ REFERENCES Products(ProductID),
+ CONSTRAINT fkTasks
+ FOREIGN KEY(TaskID)
+ REFERENCES Tasks(TaskID),
+ PRIMARY KEY (ProductID, TaskID)
+);
+INSERT INTO Persons (FirstName, LastName, Address, City) VALUES ('Mike', 'Hughes', '123 Fake Street', 'Belfast');
+INSERT INTO Tasks (PersonID, TaskName) VALUES (1, 'assembling');
+INSERT INTO Tasks (PersonID, TaskName) VALUES (1, 'processing');
+INSERT INTO Products (ProductName) VALUES ('Computers');
+INSERT INTO Products (ProductName) VALUES ('Laptops');
+INSERT INTO Products (ProductName) VALUES ('Chairs');
+INSERT INTO Products_Tasks (ProductID, TaskID) VALUES (1, 1);
+INSERT INTO Products_Tasks (ProductID, TaskID) VALUES (2, 1);
+INSERT INTO Products_Tasks (ProductID, TaskID) VALUES (3, 1);
+INSERT INTO Products_Tasks (ProductID, TaskID) VALUES (1, 2);
diff --git a/packages/server/scripts/integrations/postgres/reset.sh b/packages/server/scripts/integrations/postgres/reset.sh
new file mode 100755
index 0000000000..32778bd11f
--- /dev/null
+++ b/packages/server/scripts/integrations/postgres/reset.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+docker-compose down
+docker volume prune -f
diff --git a/packages/server/src/api/controllers/application.js b/packages/server/src/api/controllers/application.js
index 7db8bacd0b..a2e254461a 100644
--- a/packages/server/src/api/controllers/application.js
+++ b/packages/server/src/api/controllers/application.js
@@ -33,6 +33,11 @@ const {
} = require("../../utilities/workerRequests")
const { clientLibraryPath } = require("../../utilities")
const { getAllLocks } = require("../../utilities/redis")
+const {
+ updateClientLibrary,
+ backupClientLibrary,
+ revertClientLibrary,
+} = require("../../utilities/fileSystem/clientLibrary")
const URL_REGEX_SLASH = /\/|\\/g
@@ -67,15 +72,18 @@ async function getAppUrlIfNotInUse(ctx) {
let url
if (ctx.request.body.url) {
url = encodeURI(ctx.request.body.url)
- } else {
+ } else if (ctx.request.body.name) {
url = encodeURI(`${ctx.request.body.name}`)
}
- url = `/${url.replace(URL_REGEX_SLASH, "")}`.toLowerCase()
+ if (url) {
+ url = `/${url.replace(URL_REGEX_SLASH, "")}`.toLowerCase()
+ }
if (!env.SELF_HOSTED) {
return url
}
const deployedApps = await getDeployedApps(ctx)
if (
+ url &&
deployedApps[url] != null &&
deployedApps[url].appId !== ctx.params.appId
) {
@@ -161,7 +169,15 @@ exports.fetchAppDefinition = async function (ctx) {
exports.fetchAppPackage = async function (ctx) {
const db = new CouchDB(ctx.params.appId)
const application = await db.get(DocumentTypes.APP_METADATA)
- const [layouts, screens] = await Promise.all([getLayouts(db), getScreens(db)])
+ const layouts = await getLayouts(db)
+ let screens = await getScreens(db)
+
+ // Only filter screens if the user is not a builder
+ if (!(ctx.user.builder && ctx.user.builder.global)) {
+ const userRoleId = getUserRoleId(ctx)
+ const accessController = new AccessController(ctx.params.appId)
+ screens = await accessController.checkScreensAccess(screens, userRoleId)
+ }
ctx.body = {
application,
@@ -220,27 +236,54 @@ exports.create = async function (ctx) {
}
exports.update = async function (ctx) {
- const url = await getAppUrlIfNotInUse(ctx)
+ const data = await updateAppPackage(ctx, ctx.request.body, ctx.params.appId)
+ ctx.status = 200
+ ctx.body = data
+}
+
+exports.updateClient = async function (ctx) {
+ // Get current app version
const db = new CouchDB(ctx.params.appId)
const application = await db.get(DocumentTypes.APP_METADATA)
+ const currentVersion = application.version
- const data = ctx.request.body
- const newData = { ...application, ...data, url }
- if (ctx.request.body._rev !== application._rev) {
- newData._rev = application._rev
+ // Update client library and manifest
+ if (!env.isTest()) {
+ await backupClientLibrary(ctx.params.appId)
+ await updateClientLibrary(ctx.params.appId)
}
- // the locked by property is attached by server but generated from
- // Redis, shouldn't ever store it
- if (newData.lockedBy) {
- delete newData.lockedBy
+ // Update versions in app package
+ const appPackageUpdates = {
+ version: packageJson.version,
+ revertableVersion: currentVersion,
}
-
- const response = await db.put(newData)
- data._rev = response.rev
-
+ const data = await updateAppPackage(ctx, appPackageUpdates, ctx.params.appId)
ctx.status = 200
- ctx.body = response
+ ctx.body = data
+}
+
+exports.revertClient = async function (ctx) {
+ // Check app can be reverted
+ const db = new CouchDB(ctx.params.appId)
+ const application = await db.get(DocumentTypes.APP_METADATA)
+ if (!application.revertableVersion) {
+ ctx.throw(400, "There is no version to revert to")
+ }
+
+ // Update client library and manifest
+ if (!env.isTest()) {
+ await revertClientLibrary(ctx.params.appId)
+ }
+
+ // Update versions in app package
+ const appPackageUpdates = {
+ version: application.revertableVersion,
+ revertableVersion: null,
+ }
+ const data = await updateAppPackage(ctx, appPackageUpdates, ctx.params.appId)
+ ctx.status = 200
+ ctx.body = data
}
exports.delete = async function (ctx) {
@@ -258,6 +301,23 @@ exports.delete = async function (ctx) {
ctx.body = result
}
+const updateAppPackage = async (ctx, appPackage, appId) => {
+ const url = await getAppUrlIfNotInUse(ctx)
+ const db = new CouchDB(appId)
+ const application = await db.get(DocumentTypes.APP_METADATA)
+
+ const newAppPackage = { ...application, ...appPackage, url }
+ if (appPackage._rev !== application._rev) {
+ newAppPackage._rev = application._rev
+ }
+
+ // the locked by property is attached by server but generated from
+ // Redis, shouldn't ever store it
+ delete newAppPackage.lockedBy
+
+ return await db.put(newAppPackage)
+}
+
const createEmptyAppPackage = async (ctx, app) => {
const db = new CouchDB(app.appId)
diff --git a/packages/server/src/api/controllers/component.js b/packages/server/src/api/controllers/component.js
index c678d8e587..06cb2cd211 100644
--- a/packages/server/src/api/controllers/component.js
+++ b/packages/server/src/api/controllers/component.js
@@ -20,10 +20,14 @@ exports.fetchAppComponentDefinitions = async function (ctx) {
const definitions = {}
for (let { manifest, library } of componentManifests) {
for (let key of Object.keys(manifest)) {
- const fullComponentName = `${library}/${key}`.toLowerCase()
- definitions[fullComponentName] = {
- component: fullComponentName,
- ...manifest[key],
+ if (key === "features") {
+ definitions[key] = manifest[key]
+ } else {
+ const fullComponentName = `${library}/${key}`.toLowerCase()
+ definitions[fullComponentName] = {
+ component: fullComponentName,
+ ...manifest[key],
+ }
}
}
}
diff --git a/packages/server/src/api/controllers/datasource.js b/packages/server/src/api/controllers/datasource.js
index b6d25b7b83..dabd5a6e96 100644
--- a/packages/server/src/api/controllers/datasource.js
+++ b/packages/server/src/api/controllers/datasource.js
@@ -48,7 +48,7 @@ exports.buildSchemaFromDb = async function (ctx) {
// Connect to the DB and build the schema
const connector = new Connector(datasource.config)
- await connector.buildSchema(datasource._id)
+ await connector.buildSchema(datasource._id, datasource.entities)
datasource.entities = connector.tables
const response = await db.post(datasource)
diff --git a/packages/server/src/api/controllers/row/ExternalRequest.ts b/packages/server/src/api/controllers/row/ExternalRequest.ts
new file mode 100644
index 0000000000..c5fad441bf
--- /dev/null
+++ b/packages/server/src/api/controllers/row/ExternalRequest.ts
@@ -0,0 +1,525 @@
+import {
+ Operation,
+ SearchFilters,
+ SortJson,
+ PaginationJson,
+ RelationshipsJson,
+} from "../../../definitions/datasource"
+import {
+ Row,
+ Table,
+ FieldSchema,
+ Datasource,
+} from "../../../definitions/common"
+import {
+ breakRowIdField,
+ generateRowIdField,
+} from "../../../integrations/utils"
+
+interface ManyRelationship {
+ tableId?: string
+ id?: string
+ isUpdate?: boolean
+ [key: string]: any
+}
+
+interface RunConfig {
+ id: string
+ row: Row
+ filters: SearchFilters
+ sort: SortJson
+ paginate: PaginationJson
+}
+
+module External {
+ const { makeExternalQuery } = require("./utils")
+ const { DataSourceOperation, FieldTypes } = require("../../../constants")
+ const { breakExternalTableId, isSQL } = require("../../../integrations/utils")
+ const { processObjectSync } = require("@budibase/string-templates")
+ const { cloneDeep } = require("lodash/fp")
+ const { isEqual } = require("lodash")
+ const CouchDB = require("../../../db")
+
+ function buildFilters(
+ id: string | undefined,
+ filters: SearchFilters,
+ table: Table
+ ) {
+ const primary = table.primary
+ // if passed in array need to copy for shifting etc
+ let idCopy = cloneDeep(id)
+ if (filters) {
+ // need to map over the filters and make sure the _id field isn't present
+ for (let filter of Object.values(filters)) {
+ if (filter._id && primary) {
+ const parts = breakRowIdField(filter._id)
+ for (let field of primary) {
+ filter[field] = parts.shift()
+ }
+ }
+ // make sure this field doesn't exist on any filter
+ delete filter._id
+ }
+ }
+ // there is no id, just use the user provided filters
+ if (!idCopy || !table) {
+ return filters
+ }
+ // if used as URL parameter it will have been joined
+ if (!Array.isArray(idCopy)) {
+ idCopy = breakRowIdField(idCopy)
+ }
+ const equal: any = {}
+ if (primary && idCopy) {
+ for (let field of primary) {
+ // work through the ID and get the parts
+ equal[field] = idCopy.shift()
+ }
+ }
+ return {
+ equal,
+ }
+ }
+
+ function generateIdForRow(row: Row, table: Table): string {
+ const primary = table.primary
+ if (!row || !primary) {
+ return ""
+ }
+ // build id array
+ let idParts = []
+ for (let field of primary) {
+ if (row[field]) {
+ idParts.push(row[field])
+ }
+ }
+ if (idParts.length === 0) {
+ return ""
+ }
+ return generateRowIdField(idParts)
+ }
+
+ function getEndpoint(tableId: string | undefined, operation: string) {
+ if (!tableId) {
+ return {}
+ }
+ const { datasourceId, tableName } = breakExternalTableId(tableId)
+ return {
+ datasourceId,
+ entityId: tableName,
+ operation,
+ }
+ }
+
+ function basicProcessing(row: Row, table: Table) {
+ const thisRow: { [key: string]: any } = {}
+ // filter the row down to what is actually the row (not joined)
+ for (let fieldName of Object.keys(table.schema)) {
+ thisRow[fieldName] = row[fieldName]
+ }
+ thisRow._id = generateIdForRow(row, table)
+ thisRow.tableId = table._id
+ thisRow._rev = "rev"
+ return thisRow
+ }
+
+ function isMany(field: FieldSchema) {
+ return (
+ field.relationshipType && field.relationshipType.split("-")[0] === "many"
+ )
+ }
+
+ class ExternalRequest {
+ private readonly appId: string
+ private operation: Operation
+ private tableId: string
+ private datasource: Datasource
+ private tables: { [key: string]: Table } = {}
+
+ constructor(
+ appId: string,
+ operation: Operation,
+ tableId: string,
+ datasource: Datasource
+ ) {
+ this.appId = appId
+ this.operation = operation
+ this.tableId = tableId
+ this.datasource = datasource
+ if (datasource && datasource.entities) {
+ this.tables = datasource.entities
+ }
+ }
+
+ inputProcessing(row: Row, table: Table) {
+ if (!row) {
+ return { row, manyRelationships: [] }
+ }
+ // we don't really support composite keys for relationships, this is why [0] is used
+ // @ts-ignore
+ const tablePrimary: string = table.primary[0]
+ let newRow: Row = {},
+ manyRelationships: ManyRelationship[] = []
+ for (let [key, field] of Object.entries(table.schema)) {
+ // if set already, or not set just skip it
+ if (!row[key] || newRow[key] || field.autocolumn) {
+ continue
+ }
+ // if its not a link then just copy it over
+ if (field.type !== FieldTypes.LINK) {
+ newRow[key] = row[key]
+ continue
+ }
+ const { tableName: linkTableName } = breakExternalTableId(field.tableId)
+ // table has to exist for many to many
+ if (!this.tables[linkTableName]) {
+ continue
+ }
+ const linkTable = this.tables[linkTableName]
+ // @ts-ignore
+ const linkTablePrimary = linkTable.primary[0]
+ if (!isMany(field)) {
+ newRow[field.foreignKey || linkTablePrimary] = breakRowIdField(
+ row[key][0]
+ )[0]
+ } else {
+ // we're not inserting a doc, will be a bunch of update calls
+ const isUpdate = !field.through
+ const thisKey: string = isUpdate ? "id" : linkTablePrimary
+ // @ts-ignore
+ const otherKey: string = isUpdate ? field.foreignKey : tablePrimary
+ row[key].map((relationship: any) => {
+ // we don't really support composite keys for relationships, this is why [0] is used
+ manyRelationships.push({
+ tableId: field.through || field.tableId,
+ isUpdate,
+ [thisKey]: breakRowIdField(relationship)[0],
+ // leave the ID for enrichment later
+ [otherKey]: `{{ literal ${tablePrimary} }}`,
+ })
+ })
+ }
+ }
+ // we return the relationships that may need to be created in the through table
+ // we do this so that if the ID is generated by the DB it can be inserted
+ // after the fact
+ return { row: newRow, manyRelationships }
+ }
+
+ /**
+ * This iterates through the returned rows and works out what elements of the rows
+ * actually match up to another row (based on primary keys) - this is pretty specific
+ * to SQL and the way that SQL relationships are returned based on joins.
+ */
+ updateRelationshipColumns(
+ row: Row,
+ rows: { [key: string]: Row },
+ relationships: RelationshipsJson[]
+ ) {
+ const columns: { [key: string]: any } = {}
+ for (let relationship of relationships) {
+ const linkedTable = this.tables[relationship.tableName]
+ if (!linkedTable) {
+ continue
+ }
+ let linked = basicProcessing(row, linkedTable)
+ if (!linked._id) {
+ continue
+ }
+ // if not returning full docs then get the minimal links out
+ const display = linkedTable.primaryDisplay
+ linked = {
+ primaryDisplay: display ? linked[display] : undefined,
+ _id: linked._id,
+ }
+ columns[relationship.column] = linked
+ }
+ for (let [column, related] of Object.entries(columns)) {
+ if (!row._id) {
+ continue
+ }
+ const rowId: string = row._id
+ if (!Array.isArray(rows[rowId][column])) {
+ rows[rowId][column] = []
+ }
+ // make sure relationship hasn't been found already
+ if (
+ !rows[rowId][column].find(
+ (relation: Row) => relation._id === related._id
+ )
+ ) {
+ rows[rowId][column].push(related)
+ }
+ }
+ return rows
+ }
+
+ outputProcessing(
+ rows: Row[],
+ table: Table,
+ relationships: RelationshipsJson[]
+ ) {
+ if (rows[0].read === true) {
+ return []
+ }
+ let finalRows: { [key: string]: Row } = {}
+ for (let row of rows) {
+ const rowId = generateIdForRow(row, table)
+ row._id = rowId
+ // this is a relationship of some sort
+ if (finalRows[rowId]) {
+ finalRows = this.updateRelationshipColumns(
+ row,
+ finalRows,
+ relationships
+ )
+ continue
+ }
+ const thisRow = basicProcessing(row, table)
+ finalRows[thisRow._id] = thisRow
+ // do this at end once its been added to the final rows
+ finalRows = this.updateRelationshipColumns(
+ row,
+ finalRows,
+ relationships
+ )
+ }
+ return Object.values(finalRows)
+ }
+
+ /**
+ * Gets the list of relationship JSON structures based on the columns in the table,
+ * this will be used by the underlying library to build whatever relationship mechanism
+ * it has (e.g. SQL joins).
+ */
+ buildRelationships(table: Table): RelationshipsJson[] {
+ const relationships = []
+ for (let [fieldName, field] of Object.entries(table.schema)) {
+ if (field.type !== FieldTypes.LINK) {
+ continue
+ }
+ const { tableName: linkTableName } = breakExternalTableId(field.tableId)
+ // no table to link to, this is not a valid relationships
+ if (!this.tables[linkTableName]) {
+ continue
+ }
+ const linkTable = this.tables[linkTableName]
+ if (!table.primary || !linkTable.primary) {
+ continue
+ }
+ const definition = {
+ // if no foreign key specified then use the name of the field in other table
+ from: field.foreignKey || table.primary[0],
+ to: field.fieldName,
+ tableName: linkTableName,
+ through: undefined,
+ // need to specify where to put this back into
+ column: fieldName,
+ }
+ if (field.through) {
+ const { tableName: throughTableName } = breakExternalTableId(
+ field.through
+ )
+ definition.through = throughTableName
+ // don't support composite keys for relationships
+ definition.from = table.primary[0]
+ definition.to = linkTable.primary[0]
+ }
+ relationships.push(definition)
+ }
+ return relationships
+ }
+
+ /**
+ * This is a cached lookup, of relationship records, this is mainly for creating/deleting junction
+ * information.
+ */
+ async lookup(
+ row: Row,
+ relationship: ManyRelationship,
+ cache: { [key: string]: Row[] } = {}
+ ) {
+ const { tableId, isUpdate, id, ...rest } = relationship
+ const { tableName } = breakExternalTableId(tableId)
+ const table = this.tables[tableName]
+ if (isUpdate) {
+ return { rows: [], table }
+ }
+ // if not updating need to make sure we have a list of all possible options
+ let fullKey: string = tableId + "/",
+ rowKey: string = ""
+ for (let key of Object.keys(rest)) {
+ if (row[key]) {
+ fullKey += key
+ rowKey = key
+ }
+ }
+ if (cache[fullKey] == null) {
+ cache[fullKey] = await makeExternalQuery(this.appId, {
+ endpoint: getEndpoint(tableId, DataSourceOperation.READ),
+ filters: {
+ equal: {
+ [rowKey]: row[rowKey],
+ },
+ },
+ })
+ }
+ return { rows: cache[fullKey], table }
+ }
+
+ /**
+ * Once a row has been written we may need to update a many field, e.g. updating foreign keys
+ * in a bunch of rows in another table, or inserting/deleting rows from a junction table (many to many).
+ * This is quite a complex process and is handled by this function, there are a few things going on here:
+ * 1. If updating foreign keys its relatively simple, just create a filter for the row that needs updated
+ * and write the various components.
+ * 2. If junction table, then we lookup what exists already, write what doesn't exist, work out what
+ * isn't supposed to exist anymore and delete those. This is better than the usual method of delete them
+ * all and then re-create, as theres no chance of losing data (e.g. delete succeed, but write fail).
+ */
+ async handleManyRelationships(row: Row, relationships: ManyRelationship[]) {
+ const { appId } = this
+ if (relationships.length === 0) {
+ return
+ }
+ // if we're creating (in a through table) need to wipe the existing ones first
+ const promises = []
+ const cache: { [key: string]: Row[] } = {}
+ for (let relationship of relationships) {
+ const { tableId, isUpdate, id, ...rest } = relationship
+ const body = processObjectSync(rest, row)
+ const { table, rows } = await this.lookup(row, relationship, cache)
+ const found = rows.find(row => isEqual(body, row))
+ const operation = isUpdate
+ ? DataSourceOperation.UPDATE
+ : DataSourceOperation.CREATE
+ if (!found) {
+ promises.push(
+ makeExternalQuery(appId, {
+ endpoint: getEndpoint(tableId, operation),
+ // if we're doing many relationships then we're writing, only one response
+ body,
+ filters: buildFilters(id, {}, table),
+ })
+ )
+ } else {
+ // remove the relationship from the rows
+ rows.splice(rows.indexOf(found), 1)
+ }
+ }
+ // finally if creating, cleanup any rows that aren't supposed to be here
+ for (let [key, rows] of Object.entries(cache)) {
+ // @ts-ignore
+ const tableId: string = key.split("/").shift()
+ const { tableName } = breakExternalTableId(tableId)
+ const table = this.tables[tableName]
+ for (let row of rows) {
+ promises.push(
+ makeExternalQuery(this.appId, {
+ endpoint: getEndpoint(tableId, DataSourceOperation.DELETE),
+ filters: buildFilters(generateIdForRow(row, table), {}, table),
+ })
+ )
+ }
+ }
+ await Promise.all(promises)
+ }
+
+ /**
+ * This function is a bit crazy, but the exact purpose of it is to protect against the scenario in which
+ * you have column overlap in relationships, e.g. we join a few different tables and they all have the
+ * concept of an ID, but for some of them it will be null (if they say don't have a relationship).
+ * Creating the specific list of fields that we desire, and excluding the ones that are no use to us
+ * is more performant and has the added benefit of protecting against this scenario.
+ */
+ buildFields(table: Table) {
+ function extractNonLinkFieldNames(table: Table, existing: string[] = []) {
+ return Object.entries(table.schema)
+ .filter(
+ column =>
+ column[1].type !== FieldTypes.LINK &&
+ !existing.find((field: string) => field.includes(column[0]))
+ )
+ .map(column => `${table.name}.${column[0]}`)
+ }
+ let fields = extractNonLinkFieldNames(table)
+ for (let field of Object.values(table.schema)) {
+ if (field.type !== FieldTypes.LINK) {
+ continue
+ }
+ const { tableName: linkTableName } = breakExternalTableId(field.tableId)
+ const linkTable = this.tables[linkTableName]
+ if (linkTable) {
+ const linkedFields = extractNonLinkFieldNames(linkTable, fields)
+ fields = fields.concat(linkedFields)
+ }
+ }
+ return fields
+ }
+
+ async run({ id, row, filters, sort, paginate }: RunConfig) {
+ const { appId, operation, tableId } = this
+ let { datasourceId, tableName } = breakExternalTableId(tableId)
+ if (!this.datasource) {
+ const db = new CouchDB(appId)
+ this.datasource = await db.get(datasourceId)
+ if (!this.datasource || !this.datasource.entities) {
+ throw "No tables found, fetch tables before query."
+ }
+ this.tables = this.datasource.entities
+ }
+ const table = this.tables[tableName]
+ let isSql = isSQL(this.datasource)
+ if (!table) {
+ throw `Unable to process query, table "${tableName}" not defined.`
+ }
+ // clean up row on ingress using schema
+ filters = buildFilters(id, filters, table)
+ const relationships = this.buildRelationships(table)
+ const processed = this.inputProcessing(row, table)
+ row = processed.row
+ if (
+ operation === DataSourceOperation.DELETE &&
+ (filters == null || Object.keys(filters).length === 0)
+ ) {
+ throw "Deletion must be filtered"
+ }
+ let json = {
+ endpoint: {
+ datasourceId,
+ entityId: tableName,
+ operation,
+ },
+ resource: {
+ // have to specify the fields to avoid column overlap (for SQL)
+ fields: isSql ? this.buildFields(table) : [],
+ },
+ filters,
+ sort,
+ paginate,
+ relationships,
+ body: row,
+ // pass an id filter into extra, purely for mysql/returning
+ extra: {
+ idFilter: buildFilters(id || generateIdForRow(row, table), {}, table),
+ },
+ }
+ // can't really use response right now
+ const response = await makeExternalQuery(appId, json)
+ // handle many to many relationships now if we know the ID (could be auto increment)
+ if (processed.manyRelationships) {
+ await this.handleManyRelationships(
+ response[0],
+ processed.manyRelationships
+ )
+ }
+ const output = this.outputProcessing(response, table, relationships)
+ // if reading it'll just be an array of rows, return whole thing
+ return operation === DataSourceOperation.READ && Array.isArray(response)
+ ? output
+ : { row: output[0], table }
+ }
+ }
+
+ module.exports = ExternalRequest
+}
diff --git a/packages/server/src/api/controllers/row/external.js b/packages/server/src/api/controllers/row/external.js
index 896f5a78e2..3a96064a9f 100644
--- a/packages/server/src/api/controllers/row/external.js
+++ b/packages/server/src/api/controllers/row/external.js
@@ -1,136 +1,19 @@
-const { makeExternalQuery } = require("./utils")
-const { DataSourceOperation, SortDirection } = require("../../../constants")
-const { getExternalTable } = require("../table/utils")
+const {
+ DataSourceOperation,
+ SortDirection,
+ FieldTypes,
+} = require("../../../constants")
const {
breakExternalTableId,
- generateRowIdField,
breakRowIdField,
} = require("../../../integrations/utils")
-const { cloneDeep } = require("lodash/fp")
+const ExternalRequest = require("./ExternalRequest")
+const CouchDB = require("../../../db")
-function inputProcessing(row, table) {
- if (!row) {
- return row
- }
- let newRow = {}
- for (let key of Object.keys(table.schema)) {
- // currently excludes empty strings
- if (row[key]) {
- newRow[key] = row[key]
- }
- }
- return newRow
-}
-
-function generateIdForRow(row, table) {
- if (!row) {
- return
- }
- const primary = table.primary
- // build id array
- let idParts = []
- for (let field of primary) {
- idParts.push(row[field])
- }
- return generateRowIdField(idParts)
-}
-
-function outputProcessing(rows, table) {
- // if no rows this is what is returned? Might be PG only
- if (rows[0].read === true) {
- return []
- }
- for (let row of rows) {
- row._id = generateIdForRow(row, table)
- row.tableId = table._id
- row._rev = "rev"
- }
- return rows
-}
-
-function buildFilters(id, filters, table) {
- const primary = table.primary
- // if passed in array need to copy for shifting etc
- let idCopy = cloneDeep(id)
- if (filters) {
- // need to map over the filters and make sure the _id field isn't present
- for (let filter of Object.values(filters)) {
- if (filter._id) {
- const parts = breakRowIdField(filter._id)
- for (let field of primary) {
- filter[field] = parts.shift()
- }
- }
- // make sure this field doesn't exist on any filter
- delete filter._id
- }
- }
- // there is no id, just use the user provided filters
- if (!idCopy || !table) {
- return filters
- }
- // if used as URL parameter it will have been joined
- if (typeof idCopy === "string") {
- idCopy = breakRowIdField(idCopy)
- }
- const equal = {}
- for (let field of primary) {
- // work through the ID and get the parts
- equal[field] = idCopy.shift()
- }
- return {
- equal,
- }
-}
-
-async function handleRequest(
- appId,
- operation,
- tableId,
- { id, row, filters, sort, paginate } = {}
-) {
- let { datasourceId, tableName } = breakExternalTableId(tableId)
- const table = await getExternalTable(appId, datasourceId, tableName)
- if (!table) {
- throw `Unable to process query, table "${tableName}" not defined.`
- }
- // clean up row on ingress using schema
- filters = buildFilters(id, filters, table)
- row = inputProcessing(row, table)
- if (
- operation === DataSourceOperation.DELETE &&
- (filters == null || Object.keys(filters).length === 0)
- ) {
- throw "Deletion must be filtered"
- }
- let json = {
- endpoint: {
- datasourceId,
- entityId: tableName,
- operation,
- },
- resource: {
- // not specifying any fields means "*"
- fields: [],
- },
- filters,
- sort,
- paginate,
- body: row,
- // pass an id filter into extra, purely for mysql/returning
- extra: {
- idFilter: buildFilters(id || generateIdForRow(row, table), {}, table),
- },
- }
- // can't really use response right now
- const response = await makeExternalQuery(appId, json)
- // we searched for rows in someway
- if (operation === DataSourceOperation.READ && Array.isArray(response)) {
- return outputProcessing(response, table)
- } else {
- row = outputProcessing(response, table)[0]
- return { row, table }
- }
+async function handleRequest(appId, operation, tableId, opts = {}) {
+ return new ExternalRequest(appId, operation, tableId, opts.datasource).run(
+ opts
+ )
}
exports.patch = async ctx => {
@@ -172,9 +55,15 @@ exports.find = async ctx => {
const appId = ctx.appId
const id = ctx.params.rowId
const tableId = ctx.params.tableId
- return handleRequest(appId, DataSourceOperation.READ, tableId, {
- id,
- })
+ const response = await handleRequest(
+ appId,
+ DataSourceOperation.READ,
+ tableId,
+ {
+ id,
+ }
+ )
+ return response ? response[0] : response
}
exports.destroy = async ctx => {
@@ -270,7 +159,56 @@ exports.validate = async () => {
return { valid: true }
}
-exports.fetchEnrichedRow = async () => {
- // TODO: How does this work
- throw "Not Implemented"
+exports.fetchEnrichedRow = async ctx => {
+ const appId = ctx.appId
+ const id = ctx.params.rowId
+ const tableId = ctx.params.tableId
+ const { datasourceId, tableName } = breakExternalTableId(tableId)
+ const db = new CouchDB(appId)
+ const datasource = await db.get(datasourceId)
+ if (!datasource || !datasource.entities) {
+ ctx.throw(400, "Datasource has not been configured for plus API.")
+ }
+ const tables = datasource.entities
+ const response = await handleRequest(
+ appId,
+ DataSourceOperation.READ,
+ tableId,
+ {
+ id,
+ datasource,
+ }
+ )
+ const table = tables[tableName]
+ const row = response[0]
+ // this seems like a lot of work, but basically we need to dig deeper for the enrich
+ // for a single row, there is probably a better way to do this with some smart multi-layer joins
+ for (let [fieldName, field] of Object.entries(table.schema)) {
+ if (
+ field.type !== FieldTypes.LINK ||
+ !row[fieldName] ||
+ row[fieldName].length === 0
+ ) {
+ continue
+ }
+ const links = row[fieldName]
+ const linkedTableId = field.tableId
+ const linkedTable = tables[breakExternalTableId(linkedTableId).tableName]
+ // don't support composite keys right now
+ const linkedIds = links.map(link => breakRowIdField(link._id)[0])
+ row[fieldName] = await handleRequest(
+ appId,
+ DataSourceOperation.READ,
+ linkedTableId,
+ {
+ tables,
+ filters: {
+ oneOf: {
+ [linkedTable.primary]: linkedIds,
+ },
+ },
+ }
+ )
+ }
+ return row
}
diff --git a/packages/server/src/api/controllers/table/utils.js b/packages/server/src/api/controllers/table/utils.js
index cdfd390027..78dae60ab1 100644
--- a/packages/server/src/api/controllers/table/utils.js
+++ b/packages/server/src/api/controllers/table/utils.js
@@ -204,15 +204,18 @@ class TableSaveFunctions {
}
}
-exports.getExternalTable = async (appId, datasourceId, tableName) => {
+exports.getAllExternalTables = async (appId, datasourceId) => {
const db = new CouchDB(appId)
const datasource = await db.get(datasourceId)
if (!datasource || !datasource.entities) {
throw "Datasource is not configured fully."
}
- return Object.values(datasource.entities).find(
- entity => entity.name === tableName
- )
+ return datasource.entities
+}
+
+exports.getExternalTable = async (appId, datasourceId, tableName) => {
+ const entities = await exports.getAllExternalTables(appId, datasourceId)
+ return entities[tableName]
}
exports.TableSaveFunctions = TableSaveFunctions
diff --git a/packages/server/src/api/routes/application.js b/packages/server/src/api/routes/application.js
index a7209df3e9..c2eb19e101 100644
--- a/packages/server/src/api/routes/application.js
+++ b/packages/server/src/api/routes/application.js
@@ -11,6 +11,16 @@ router
.get("/api/applications/:appId/appPackage", controller.fetchAppPackage)
.put("/api/applications/:appId", authorized(BUILDER), controller.update)
.post("/api/applications", authorized(BUILDER), controller.create)
+ .post(
+ "/api/applications/:appId/client/update",
+ authorized(BUILDER),
+ controller.updateClient
+ )
+ .post(
+ "/api/applications/:appId/client/revert",
+ authorized(BUILDER),
+ controller.revertClient
+ )
.delete("/api/applications/:appId", authorized(BUILDER), controller.delete)
module.exports = router
diff --git a/packages/server/src/api/routes/tests/application.spec.js b/packages/server/src/api/routes/tests/application.spec.js
index 2333787e6e..05e0bc231b 100644
--- a/packages/server/src/api/routes/tests/application.spec.js
+++ b/packages/server/src/api/routes/tests/application.spec.js
@@ -94,7 +94,7 @@ describe("/applications", () => {
})
describe("update", () => {
- it("should be able to fetch the app package", async () => {
+ it("should be able to update the app package", async () => {
const res = await request
.put(`/api/applications/${config.getAppId()}`)
.send({
@@ -107,6 +107,30 @@ describe("/applications", () => {
})
})
+ describe("manage client library version", () => {
+ it("should be able to update the app client library version", async () => {
+ console.log(config.getAppId())
+ await request
+ .post(`/api/applications/${config.getAppId()}/client/update`)
+ .set(config.defaultHeaders())
+ .expect("Content-Type", /json/)
+ .expect(200)
+ })
+ it("should be able to revert the app client library version", async () => {
+ // We need to first update the version so that we can then revert
+ await request
+ .post(`/api/applications/${config.getAppId()}/client/update`)
+ .set(config.defaultHeaders())
+ .expect("Content-Type", /json/)
+ .expect(200)
+ await request
+ .post(`/api/applications/${config.getAppId()}/client/revert`)
+ .set(config.defaultHeaders())
+ .expect("Content-Type", /json/)
+ .expect(200)
+ })
+ })
+
describe("edited at", () => {
it("middleware should set edited at", async () => {
const headers = config.defaultHeaders()
diff --git a/packages/server/src/api/routes/tests/datasource.spec.js b/packages/server/src/api/routes/tests/datasource.spec.js
index d53001b06e..a041de4310 100644
--- a/packages/server/src/api/routes/tests/datasource.spec.js
+++ b/packages/server/src/api/routes/tests/datasource.spec.js
@@ -94,7 +94,7 @@ describe("/datasources", () => {
.expect(200)
// this is mock data, can't test it
expect(res.body).toBeDefined()
- expect(pg.queryMock).toHaveBeenCalledWith(`select "name", "age" from "users" where "name" like $1 limit $2`, ["John%", 5000])
+ expect(pg.queryMock).toHaveBeenCalledWith(`select "name", "age" from "users" where "users"."name" like $1 limit $2`, ["John%", 5000])
})
})
diff --git a/packages/server/src/api/routes/tests/routing.spec.js b/packages/server/src/api/routes/tests/routing.spec.js
index 96ec492dbc..81f56a939d 100644
--- a/packages/server/src/api/routes/tests/routing.spec.js
+++ b/packages/server/src/api/routes/tests/routing.spec.js
@@ -2,7 +2,6 @@ const setup = require("./utilities")
const { basicScreen } = setup.structures
const { checkBuilderEndpoint } = require("./utilities/TestFunctions")
const { BUILTIN_ROLE_IDS } = require("@budibase/auth/roles")
-const workerRequests = require("../../../utilities/workerRequests")
const route = "/test"
diff --git a/packages/server/src/constants/definitions.ts b/packages/server/src/constants/definitions.ts
index 685c2a9824..8ab995adc4 100644
--- a/packages/server/src/constants/definitions.ts
+++ b/packages/server/src/constants/definitions.ts
@@ -26,3 +26,17 @@ export interface Table {
primaryDisplay?: string
sourceId?: string
}
+
+export interface BudibaseAppMetadata {
+ _id: string
+ _rev?: string
+ appId: string
+ type: string
+ version: string
+ componentlibraries: string[]
+ name: string
+ url: string
+ instance: { _id: string }
+ updatedAt: Date
+ createdAt: Date
+}
diff --git a/packages/server/src/constants/layouts.js b/packages/server/src/constants/layouts.js
index f435c31d1e..2402a1f7db 100644
--- a/packages/server/src/constants/layouts.js
+++ b/packages/server/src/constants/layouts.js
@@ -15,6 +15,7 @@ const EMPTY_LAYOUT = {
{
_id: "7fcf11e4-6f5b-4085-8e0d-9f3d44c98967",
_component: "@budibase/standard-components/screenslot",
+ _instanceName: "Screen slot",
_styles: {
normal: {
flex: "1 1 auto",
@@ -63,6 +64,7 @@ const BASE_LAYOUTS = [
{
_id: "7fcf11e4-6f5b-4085-8e0d-9f3d44c98967",
_component: "@budibase/standard-components/screenslot",
+ _instanceName: "Screen slot",
_styles: {
normal: {
flex: "1 1 auto",
@@ -84,6 +86,7 @@ const BASE_LAYOUTS = [
normal: {},
selected: {},
},
+ title: "{{ name }}",
navigation: "Top",
width: "Large",
links: [
@@ -109,6 +112,7 @@ const BASE_LAYOUTS = [
{
_id: "7fcf11e4-6f5b-4085-8e0d-9f3d44c98967",
_component: "@budibase/standard-components/screenslot",
+ _instanceName: "Screen slot",
_styles: {
normal: {
flex: "1 1 auto",
diff --git a/packages/server/src/definitions/common.ts b/packages/server/src/definitions/common.ts
new file mode 100644
index 0000000000..ec837a8101
--- /dev/null
+++ b/packages/server/src/definitions/common.ts
@@ -0,0 +1,101 @@
+import { SourceNames } from "./datasource"
+
+interface Base {
+ _id?: string
+ _rev?: string
+}
+
+export interface FieldSchema {
+ // TODO: replace with field types enum when done
+ type: string
+ fieldName?: string
+ name: string
+ tableId?: string
+ relationshipType?: string
+ through?: string
+ foreignKey?: string
+ autocolumn?: boolean
+ constraints?: {
+ type?: string
+ email?: boolean
+ inclusion?: string[]
+ length?: {
+ minimum?: string | number
+ maximum?: string | number
+ }
+ presence?: boolean
+ }
+}
+
+export interface TableSchema {
+ [key: string]: FieldSchema
+}
+
+export interface Table extends Base {
+ type?: string
+ views?: {}
+ name?: string
+ primary?: string[]
+ schema: TableSchema
+ primaryDisplay?: string
+ sourceId?: string
+}
+
+export interface Row extends Base {
+ type?: string
+ tableId?: string
+ [key: string]: any
+}
+
+interface JsonSchemaField {
+ properties: {
+ [key: string]: {
+ type: string
+ title: string
+ customType?: string
+ }
+ }
+ required?: string[]
+}
+
+export interface AutomationStep {
+ description: string
+ event?: string
+ icon: string
+ id: string
+ inputs: {
+ [key: string]: any
+ }
+ name: string
+ schema: {
+ inputs: JsonSchemaField
+ outputs: JsonSchemaField
+ }
+ stepId: string
+ tagline: string
+ type: string
+}
+
+export interface Automation extends Base {
+ name: string
+ type: string
+ appId?: string
+ definition: {
+ steps: AutomationStep[]
+ trigger?: AutomationStep
+ }
+}
+
+export interface Datasource extends Base {
+ type: string
+ name: string
+ source: SourceNames
+ // the config is defined by the schema
+ config: {
+ [key: string]: string | number | boolean
+ }
+ plus: boolean
+ entities?: {
+ [key: string]: Table
+ }
+}
diff --git a/packages/server/src/integrations/base/definitions.ts b/packages/server/src/definitions/datasource.ts
similarity index 69%
rename from packages/server/src/integrations/base/definitions.ts
rename to packages/server/src/definitions/datasource.ts
index 9d5567b6c8..22f1998601 100644
--- a/packages/server/src/integrations/base/definitions.ts
+++ b/packages/server/src/definitions/datasource.ts
@@ -26,6 +26,20 @@ export enum DatasourceFieldTypes {
JSON = "json",
}
+export enum SourceNames {
+ POSTGRES = "POSTGRES",
+ DYNAMODB = "DYNAMODB",
+ MONGODB = "MONGODB",
+ ELASTICSEARCH = "ELASTICSEARCH",
+ COUCHDB = "COUCHDB",
+ SQL_SERVER = "SQL_SERVER",
+ S3 = "S3",
+ AIRTABLE = "AIRTABLE",
+ MYSQL = "MYSQL",
+ ARANGODB = "ARANGODB",
+ REST = "REST",
+}
+
export interface QueryDefinition {
type: QueryTypes
displayName?: string
@@ -47,7 +61,7 @@ export interface Integration {
}
export interface SearchFilters {
- allOr: boolean
+ allOr?: boolean
string?: {
[key: string]: string
}
@@ -72,6 +86,26 @@ export interface SearchFilters {
notEmpty?: {
[key: string]: any
}
+ oneOf?: {
+ [key: string]: any[]
+ }
+}
+
+export interface SortJson {
+ [key: string]: SortDirection
+}
+
+export interface PaginationJson {
+ limit: number
+ page: string | number
+}
+
+export interface RelationshipsJson {
+ through?: string
+ from?: string
+ to?: string
+ tableName: string
+ column: string
}
export interface QueryJson {
@@ -84,17 +118,13 @@ export interface QueryJson {
fields: string[]
}
filters?: SearchFilters
- sort?: {
- [key: string]: SortDirection
- }
- paginate?: {
- limit: number
- page: string | number
- }
+ sort?: SortJson
+ paginate?: PaginationJson
body?: object
- extra: {
+ extra?: {
idFilter?: SearchFilters
}
+ relationships?: RelationshipsJson[]
}
export interface SqlQuery {
diff --git a/packages/server/src/integrations/airtable.ts b/packages/server/src/integrations/airtable.ts
index a99dfc7c72..7a80f51bd0 100644
--- a/packages/server/src/integrations/airtable.ts
+++ b/packages/server/src/integrations/airtable.ts
@@ -2,7 +2,7 @@ import {
Integration,
DatasourceFieldTypes,
QueryTypes,
-} from "./base/definitions"
+} from "../definitions/datasource"
module AirtableModule {
const Airtable = require("airtable")
diff --git a/packages/server/src/integrations/arangodb.ts b/packages/server/src/integrations/arangodb.ts
index 7741b8be94..c5eac32892 100644
--- a/packages/server/src/integrations/arangodb.ts
+++ b/packages/server/src/integrations/arangodb.ts
@@ -2,7 +2,7 @@ import {
Integration,
DatasourceFieldTypes,
QueryTypes,
-} from "./base/definitions"
+} from "../definitions/datasource"
module ArangoModule {
const { Database, aql } = require("arangojs")
diff --git a/packages/server/src/integrations/base/sql.ts b/packages/server/src/integrations/base/sql.ts
index 6573a0c47c..e1c065dd26 100644
--- a/packages/server/src/integrations/base/sql.ts
+++ b/packages/server/src/integrations/base/sql.ts
@@ -6,18 +6,23 @@ import {
QueryOptions,
SortDirection,
Operation,
-} from "./definitions"
+ RelationshipsJson,
+} from "../../definitions/datasource"
+type KnexQuery = Knex.QueryBuilder | Knex
+
+// right now we only do filters on the specific table being queried
function addFilters(
- query: any,
+ tableName: string,
+ query: KnexQuery,
filters: SearchFilters | undefined
-): Knex.QueryBuilder {
+): KnexQuery {
function iterate(
structure: { [key: string]: any },
fn: (key: string, value: any) => void
) {
for (let [key, value] of Object.entries(structure)) {
- fn(key, value)
+ fn(`${tableName}.${key}`, value)
}
}
if (!filters) {
@@ -25,6 +30,12 @@ function addFilters(
}
// if all or specified in filters, then everything is an or
const allOr = filters.allOr
+ if (filters.oneOf) {
+ iterate(filters.oneOf, (key, array) => {
+ const fnc = allOr ? "orWhereIn" : "whereIn"
+ query = query[fnc](key, array)
+ })
+ }
if (filters.string) {
iterate(filters.string, (key, value) => {
const fnc = allOr ? "orWhere" : "where"
@@ -67,9 +78,47 @@ function addFilters(
return query
}
-function buildCreate(knex: Knex, json: QueryJson, opts: QueryOptions) {
+function addRelationships(
+ query: KnexQuery,
+ fromTable: string,
+ relationships: RelationshipsJson[] | undefined
+): KnexQuery {
+ if (!relationships) {
+ return query
+ }
+ for (let relationship of relationships) {
+ const from = relationship.from,
+ to = relationship.to,
+ toTable = relationship.tableName
+ if (!relationship.through) {
+ // @ts-ignore
+ query = query.leftJoin(
+ toTable,
+ `${fromTable}.${from}`,
+ `${relationship.tableName}.${to}`
+ )
+ } else {
+ const throughTable = relationship.through
+ query = query
+ // @ts-ignore
+ .leftJoin(
+ throughTable,
+ `${fromTable}.${from}`,
+ `${throughTable}.${from}`
+ )
+ .leftJoin(toTable, `${toTable}.${to}`, `${throughTable}.${to}`)
+ }
+ }
+ return query
+}
+
+function buildCreate(
+ knex: Knex,
+ json: QueryJson,
+ opts: QueryOptions
+): KnexQuery {
const { endpoint, body } = json
- let query = knex(endpoint.entityId)
+ let query: KnexQuery = knex(endpoint.entityId)
// mysql can't use returning
if (opts.disableReturning) {
return query.insert(body)
@@ -78,9 +127,10 @@ function buildCreate(knex: Knex, json: QueryJson, opts: QueryOptions) {
}
}
-function buildRead(knex: Knex, json: QueryJson, limit: number) {
- let { endpoint, resource, filters, sort, paginate } = json
- let query: Knex.QueryBuilder = knex(endpoint.entityId)
+function buildRead(knex: Knex, json: QueryJson, limit: number): KnexQuery {
+ let { endpoint, resource, filters, sort, paginate, relationships } = json
+ const tableName = endpoint.entityId
+ let query: KnexQuery = knex(tableName)
// select all if not specified
if (!resource) {
resource = { fields: [] }
@@ -92,7 +142,9 @@ function buildRead(knex: Knex, json: QueryJson, limit: number) {
query = query.select("*")
}
// handle where
- query = addFilters(query, filters)
+ query = addFilters(tableName, query, filters)
+ // handle join
+ query = addRelationships(query, tableName, relationships)
// handle sorting
if (sort) {
for (let [key, value] of Object.entries(sort)) {
@@ -114,10 +166,14 @@ function buildRead(knex: Knex, json: QueryJson, limit: number) {
return query
}
-function buildUpdate(knex: Knex, json: QueryJson, opts: QueryOptions) {
+function buildUpdate(
+ knex: Knex,
+ json: QueryJson,
+ opts: QueryOptions
+): KnexQuery {
const { endpoint, body, filters } = json
- let query = knex(endpoint.entityId)
- query = addFilters(query, filters)
+ let query: KnexQuery = knex(endpoint.entityId)
+ query = addFilters(endpoint.entityId, query, filters)
// mysql can't use returning
if (opts.disableReturning) {
return query.update(body)
@@ -126,10 +182,14 @@ function buildUpdate(knex: Knex, json: QueryJson, opts: QueryOptions) {
}
}
-function buildDelete(knex: Knex, json: QueryJson, opts: QueryOptions) {
+function buildDelete(
+ knex: Knex,
+ json: QueryJson,
+ opts: QueryOptions
+): KnexQuery {
const { endpoint, filters } = json
- let query = knex(endpoint.entityId)
- query = addFilters(query, filters)
+ let query: KnexQuery = knex(endpoint.entityId)
+ query = addFilters(endpoint.entityId, query, filters)
// mysql can't use returning
if (opts.disableReturning) {
return query.delete()
@@ -180,6 +240,8 @@ class SqlQueryBuilder {
default:
throw `Operation type is not supported by SQL query builder`
}
+
+ // @ts-ignore
return query.toSQL().toNative()
}
}
diff --git a/packages/server/src/integrations/couchdb.ts b/packages/server/src/integrations/couchdb.ts
index a813cf2385..983e6cdac2 100644
--- a/packages/server/src/integrations/couchdb.ts
+++ b/packages/server/src/integrations/couchdb.ts
@@ -2,7 +2,7 @@ import {
Integration,
DatasourceFieldTypes,
QueryTypes,
-} from "./base/definitions"
+} from "../definitions/datasource"
module CouchDBModule {
const PouchDB = require("pouchdb")
diff --git a/packages/server/src/integrations/dynamodb.ts b/packages/server/src/integrations/dynamodb.ts
index 0baf09a866..6b99ba04cc 100644
--- a/packages/server/src/integrations/dynamodb.ts
+++ b/packages/server/src/integrations/dynamodb.ts
@@ -2,7 +2,7 @@ import {
Integration,
DatasourceFieldTypes,
QueryTypes,
-} from "./base/definitions"
+} from "../definitions/datasource"
module DynamoModule {
const AWS = require("aws-sdk")
diff --git a/packages/server/src/integrations/elasticsearch.ts b/packages/server/src/integrations/elasticsearch.ts
index 2562ca0dcd..147858c8dd 100644
--- a/packages/server/src/integrations/elasticsearch.ts
+++ b/packages/server/src/integrations/elasticsearch.ts
@@ -2,7 +2,7 @@ import {
Integration,
DatasourceFieldTypes,
QueryTypes,
-} from "./base/definitions"
+} from "../definitions/datasource"
module ElasticsearchModule {
const { Client } = require("@elastic/elasticsearch")
diff --git a/packages/server/src/integrations/index.ts b/packages/server/src/integrations/index.ts
index 4999f0c867..c0acd6b225 100644
--- a/packages/server/src/integrations/index.ts
+++ b/packages/server/src/integrations/index.ts
@@ -9,33 +9,34 @@ const airtable = require("./airtable")
const mysql = require("./mysql")
const arangodb = require("./arangodb")
const rest = require("./rest")
+const { SourceNames } = require("../definitions/datasource")
const DEFINITIONS = {
- POSTGRES: postgres.schema,
- DYNAMODB: dynamodb.schema,
- MONGODB: mongodb.schema,
- ELASTICSEARCH: elasticsearch.schema,
- COUCHDB: couchdb.schema,
- SQL_SERVER: sqlServer.schema,
- S3: s3.schema,
- AIRTABLE: airtable.schema,
- MYSQL: mysql.schema,
- ARANGODB: arangodb.schema,
- REST: rest.schema,
+ [SourceNames.POSTGRES]: postgres.schema,
+ [SourceNames.DYNAMODB]: dynamodb.schema,
+ [SourceNames.MONGODB]: mongodb.schema,
+ [SourceNames.ELASTICSEARCH]: elasticsearch.schema,
+ [SourceNames.COUCHDB]: couchdb.schema,
+ [SourceNames.SQL_SERVER]: sqlServer.schema,
+ [SourceNames.S3]: s3.schema,
+ [SourceNames.AIRTABLE]: airtable.schema,
+ [SourceNames.MYSQL]: mysql.schema,
+ [SourceNames.ARANGODB]: arangodb.schema,
+ [SourceNames.REST]: rest.schema,
}
const INTEGRATIONS = {
- POSTGRES: postgres.integration,
- DYNAMODB: dynamodb.integration,
- MONGODB: mongodb.integration,
- ELASTICSEARCH: elasticsearch.integration,
- COUCHDB: couchdb.integration,
- S3: s3.integration,
- SQL_SERVER: sqlServer.integration,
- AIRTABLE: airtable.integration,
- MYSQL: mysql.integration,
- ARANGODB: arangodb.integration,
- REST: rest.integration,
+ [SourceNames.POSTGRES]: postgres.integration,
+ [SourceNames.DYNAMODB]: dynamodb.integration,
+ [SourceNames.MONGODB]: mongodb.integration,
+ [SourceNames.ELASTICSEARCH]: elasticsearch.integration,
+ [SourceNames.COUCHDB]: couchdb.integration,
+ [SourceNames.SQL_SERVER]: s3.integration,
+ [SourceNames.S3]: sqlServer.integration,
+ [SourceNames.AIRTABLE]: airtable.integration,
+ [SourceNames.MYSQL]: mysql.integration,
+ [SourceNames.ARANGODB]: arangodb.integration,
+ [SourceNames.REST]: rest.integration,
}
module.exports = {
diff --git a/packages/server/src/integrations/microsoftSqlServer.ts b/packages/server/src/integrations/microsoftSqlServer.ts
index ff428eacff..f5a9d73b09 100644
--- a/packages/server/src/integrations/microsoftSqlServer.ts
+++ b/packages/server/src/integrations/microsoftSqlServer.ts
@@ -4,7 +4,7 @@ import {
QueryTypes,
QueryJson,
SqlQuery,
-} from "./base/definitions"
+} from "../definitions/datasource"
import { getSqlQuery } from "./utils"
module MSSQLModule {
diff --git a/packages/server/src/integrations/mongodb.ts b/packages/server/src/integrations/mongodb.ts
index b248be84c4..af7b49153d 100644
--- a/packages/server/src/integrations/mongodb.ts
+++ b/packages/server/src/integrations/mongodb.ts
@@ -2,7 +2,7 @@ import {
Integration,
DatasourceFieldTypes,
QueryTypes,
-} from "./base/definitions"
+} from "../definitions/datasource"
module MongoDBModule {
const { MongoClient } = require("mongodb")
diff --git a/packages/server/src/integrations/mysql.ts b/packages/server/src/integrations/mysql.ts
index 6940f1e3c6..9567fa7054 100644
--- a/packages/server/src/integrations/mysql.ts
+++ b/packages/server/src/integrations/mysql.ts
@@ -5,7 +5,8 @@ import {
Operation,
QueryJson,
SqlQuery,
-} from "./base/definitions"
+} from "../definitions/datasource"
+import { Table, TableSchema } from "../definitions/common"
import { getSqlQuery } from "./utils"
module MySQLModule {
@@ -139,7 +140,7 @@ module MySQLModule {
}
async buildSchema(datasourceId: string) {
- const tables: any = {}
+ const tables: { [key: string]: Table } = {}
const database = this.config.database
this.client.connect()
@@ -154,7 +155,7 @@ module MySQLModule {
)
for (let tableName of tableNames) {
const primaryKeys = []
- const schema: any = {}
+ const schema: TableSchema = {}
const descResp = await internalQuery(
this.client,
{ sql: `DESCRIBE ${tableName};` },
@@ -162,14 +163,19 @@ module MySQLModule {
)
for (let column of descResp) {
const columnName = column.Field
- if (column.Key === "PRI") {
+ if (column.Key === "PRI" && primaryKeys.indexOf(column.Key) === -1) {
primaryKeys.push(columnName)
}
const constraints = {
- required: column.Null !== "YES",
+ presence: column.Null !== "YES",
}
+ const isAuto: boolean =
+ typeof column.Extra === "string" &&
+ (column.Extra === "auto_increment" ||
+ column.Extra.toLowerCase().includes("generated"))
schema[columnName] = {
name: columnName,
+ autocolumn: isAuto,
type: convertType(column.Type, TYPE_MAP),
constraints,
}
@@ -212,7 +218,7 @@ module MySQLModule {
}
async getReturningRow(json: QueryJson) {
- if (!json.extra.idFilter) {
+ if (!json.extra || !json.extra.idFilter) {
return {}
}
const input = this._query({
diff --git a/packages/server/src/integrations/postgres.ts b/packages/server/src/integrations/postgres.ts
index 27286ebd02..c114acf6b5 100644
--- a/packages/server/src/integrations/postgres.ts
+++ b/packages/server/src/integrations/postgres.ts
@@ -4,8 +4,8 @@ import {
QueryTypes,
QueryJson,
SqlQuery,
-} from "./base/definitions"
-import { Table } from "../constants/definitions"
+} from "../definitions/datasource"
+import { Table } from "../definitions/common"
import { getSqlQuery } from "./utils"
module PostgresModule {
@@ -134,8 +134,9 @@ module PostgresModule {
/**
* Fetches the tables from the postgres table and assigns them to the datasource.
* @param {*} datasourceId - datasourceId to fetch
+ * @param entities - the tables that are to be built
*/
- async buildSchema(datasourceId: string) {
+ async buildSchema(datasourceId: string, entities: Record
) {
let tableKeys: { [key: string]: string[] } = {}
try {
const primaryKeysResponse = await this.client.query(
@@ -146,7 +147,11 @@ module PostgresModule {
if (!tableKeys[tableName]) {
tableKeys[tableName] = []
}
- tableKeys[tableName].push(table.column_name || table.primary_key)
+ const key = table.column_name || table.primary_key
+ // only add the unique keys
+ if (key && tableKeys[tableName].indexOf(key) === -1) {
+ tableKeys[tableName].push(key)
+ }
}
} catch (err) {
tableKeys = {}
@@ -167,10 +172,27 @@ module PostgresModule {
name: tableName,
schema: {},
}
+
+ // add the existing relationships from the entities if they exist, to prevent them from being overridden
+ if (entities && entities[tableName]) {
+ const existingTableSchema = entities[tableName].schema
+ for (let key in existingTableSchema) {
+ if (!existingTableSchema.hasOwnProperty(key)) {
+ continue
+ }
+ if (existingTableSchema[key].type === "link") {
+ tables[tableName].schema[key] = existingTableSchema[key]
+ }
+ }
+ }
}
const type: string = convertType(column.data_type, TYPE_MAP)
+ const isAuto: boolean =
+ typeof column.column_default === "string" &&
+ column.column_default.startsWith("nextval")
tables[tableName].schema[columnName] = {
+ autocolumn: isAuto,
name: columnName,
type,
}
diff --git a/packages/server/src/integrations/rest.ts b/packages/server/src/integrations/rest.ts
index 8b6d0e70da..c55e991980 100644
--- a/packages/server/src/integrations/rest.ts
+++ b/packages/server/src/integrations/rest.ts
@@ -2,7 +2,7 @@ import {
Integration,
DatasourceFieldTypes,
QueryTypes,
-} from "./base/definitions"
+} from "../definitions/datasource"
module RestModule {
const fetch = require("node-fetch")
diff --git a/packages/server/src/integrations/s3.ts b/packages/server/src/integrations/s3.ts
index 58d58be443..691f3a05c0 100644
--- a/packages/server/src/integrations/s3.ts
+++ b/packages/server/src/integrations/s3.ts
@@ -1,4 +1,4 @@
-import { Integration, QueryTypes } from "./base/definitions"
+import { Integration, QueryTypes } from "../definitions/datasource"
module S3Module {
const AWS = require("aws-sdk")
diff --git a/packages/server/src/integrations/tests/postgres.spec.js b/packages/server/src/integrations/tests/postgres.spec.js
index 348fa20b6f..f973f69101 100644
--- a/packages/server/src/integrations/tests/postgres.spec.js
+++ b/packages/server/src/integrations/tests/postgres.spec.js
@@ -17,7 +17,7 @@ describe("Postgres Integration", () => {
it("calls the create method with the correct params", async () => {
const sql = "insert into users (name, age) values ('Joe', 123);"
- const response = await config.integration.create({
+ await config.integration.create({
sql
})
expect(pg.queryMock).toHaveBeenCalledWith(sql, {})
@@ -25,7 +25,7 @@ describe("Postgres Integration", () => {
it("calls the read method with the correct params", async () => {
const sql = "select * from users;"
- const response = await config.integration.read({
+ await config.integration.read({
sql
})
expect(pg.queryMock).toHaveBeenCalledWith(sql, {})
diff --git a/packages/server/src/integrations/tests/sql.spec.js b/packages/server/src/integrations/tests/sql.spec.js
index 2b6badd92d..fb57fe79e7 100644
--- a/packages/server/src/integrations/tests/sql.spec.js
+++ b/packages/server/src/integrations/tests/sql.spec.js
@@ -81,7 +81,7 @@ describe("SQL query builder", () => {
}))
expect(query).toEqual({
bindings: ["John%", limit],
- sql: `select * from "${TABLE_NAME}" where "name" like $1 limit $2`
+ sql: `select * from "${TABLE_NAME}" where "${TABLE_NAME}"."name" like $1 limit $2`
})
})
@@ -98,7 +98,7 @@ describe("SQL query builder", () => {
}))
expect(query).toEqual({
bindings: [2, 10, limit],
- sql: `select * from "${TABLE_NAME}" where "age" between $1 and $2 limit $3`
+ sql: `select * from "${TABLE_NAME}" where "${TABLE_NAME}"."age" between $1 and $2 limit $3`
})
})
@@ -114,7 +114,7 @@ describe("SQL query builder", () => {
}))
expect(query).toEqual({
bindings: [10, "John", limit],
- sql: `select * from "${TABLE_NAME}" where ("age" = $1) or ("name" = $2) limit $3`
+ sql: `select * from "${TABLE_NAME}" where ("${TABLE_NAME}"."age" = $1) or ("${TABLE_NAME}"."name" = $2) limit $3`
})
})
@@ -139,7 +139,7 @@ describe("SQL query builder", () => {
}))
expect(query).toEqual({
bindings: ["John", 1001],
- sql: `update "${TABLE_NAME}" set "name" = $1 where "id" = $2 returning *`
+ sql: `update "${TABLE_NAME}" set "name" = $1 where "${TABLE_NAME}"."id" = $2 returning *`
})
})
@@ -151,7 +151,7 @@ describe("SQL query builder", () => {
}))
expect(query).toEqual({
bindings: [1001],
- sql: `delete from "${TABLE_NAME}" where "id" = $1 returning *`
+ sql: `delete from "${TABLE_NAME}" where "${TABLE_NAME}"."id" = $1 returning *`
})
})
diff --git a/packages/server/src/integrations/utils.ts b/packages/server/src/integrations/utils.ts
index 87ed185ba3..d0af0e99a9 100644
--- a/packages/server/src/integrations/utils.ts
+++ b/packages/server/src/integrations/utils.ts
@@ -1,4 +1,6 @@
-import { SqlQuery } from "./base/definitions"
+import { SqlQuery } from "../definitions/datasource"
+import { Datasource } from "../definitions/common"
+import { SourceNames } from "../definitions/datasource"
const { DocumentTypes, SEPARATOR } = require("../db/utils")
const { FieldTypes } = require("../constants")
@@ -31,13 +33,13 @@ export function generateRowIdField(keyProps: any[] = []) {
}
// should always return an array
-export function breakRowIdField(_id: string) {
+export function breakRowIdField(_id: string): any[] {
if (!_id) {
- return null
+ return []
}
// have to replace on the way back as we swapped out the double quotes
// when encoding, but JSON can't handle the single quotes
- const decoded = decodeURIComponent(_id).replace(/'/g, '"')
+ const decoded: string = decodeURIComponent(_id).replace(/'/g, '"')
const parsed = JSON.parse(decoded)
return Array.isArray(parsed) ? parsed : [parsed]
}
@@ -58,3 +60,11 @@ export function getSqlQuery(query: SqlQuery | string): SqlQuery {
return query
}
}
+
+export function isSQL(datasource: Datasource): boolean {
+ if (!datasource || !datasource.source) {
+ return false
+ }
+ const SQL = [SourceNames.POSTGRES, SourceNames.SQL_SERVER, SourceNames.MYSQL]
+ return SQL.indexOf(datasource.source) !== -1
+}
diff --git a/packages/server/src/middleware/currentapp.js b/packages/server/src/middleware/currentapp.js
index 0e9591456c..1953eef63a 100644
--- a/packages/server/src/middleware/currentapp.js
+++ b/packages/server/src/middleware/currentapp.js
@@ -2,10 +2,10 @@ const { getAppId, setCookie, getCookie, clearCookie } =
require("@budibase/auth").utils
const { Cookies } = require("@budibase/auth").constants
const { getRole } = require("@budibase/auth/roles")
-const { getGlobalSelf } = require("../utilities/workerRequests")
const { BUILTIN_ROLE_IDS } = require("@budibase/auth/roles")
const { generateUserMetadataID } = require("../db/utils")
const { dbExists } = require("@budibase/auth/db")
+const { getCachedSelf } = require("../utilities/global")
const CouchDB = require("../db")
module.exports = async (ctx, next) => {
@@ -26,29 +26,17 @@ module.exports = async (ctx, next) => {
}
}
- let updateCookie = false,
- appId,
+ let appId,
roleId = BUILTIN_ROLE_IDS.PUBLIC
if (!ctx.user) {
// not logged in, try to set a cookie for public apps
- updateCookie = true
appId = requestAppId
- } else if (
- requestAppId != null &&
- (appCookie == null ||
- requestAppId !== appCookie.appId ||
- appCookie.roleId === BUILTIN_ROLE_IDS.PUBLIC ||
- !appCookie.roleId)
- ) {
+ } else if (requestAppId != null) {
// Different App ID means cookie needs reset, or if the same public user has logged in
- const globalUser = await getGlobalSelf(ctx, requestAppId)
- updateCookie = true
+ const globalUser = await getCachedSelf(ctx, requestAppId)
appId = requestAppId
// retrieving global user gets the right role
roleId = globalUser.roleId || BUILTIN_ROLE_IDS.BASIC
- } else if (appCookie != null) {
- appId = appCookie.appId
- roleId = appCookie.roleId || BUILTIN_ROLE_IDS.BASIC
}
// nothing more to do
if (!appId) {
@@ -68,8 +56,12 @@ module.exports = async (ctx, next) => {
role: await getRole(appId, roleId),
}
}
- if (updateCookie) {
- setCookie(ctx, { appId, roleId }, Cookies.CurrentApp)
+ if (
+ requestAppId !== appId ||
+ appCookie == null ||
+ appCookie.appId !== requestAppId
+ ) {
+ setCookie(ctx, { appId }, Cookies.CurrentApp)
}
return next()
}
diff --git a/packages/server/src/middleware/tests/currentapp.spec.js b/packages/server/src/middleware/tests/currentapp.spec.js
index 2b4a815542..7bdaa929d1 100644
--- a/packages/server/src/middleware/tests/currentapp.spec.js
+++ b/packages/server/src/middleware/tests/currentapp.spec.js
@@ -23,6 +23,15 @@ function mockReset() {
function mockAuthWithNoCookie() {
jest.resetModules()
mockWorker()
+ jest.mock("@budibase/auth/cache", () => ({
+ user: {
+ getUser: () => {
+ return {
+ _id: "us_uuid1",
+ }
+ },
+ },
+ }))
jest.mock("@budibase/auth", () => ({
utils: {
getAppId: jest.fn(),
diff --git a/packages/server/src/tests/utilities/TestConfiguration.js b/packages/server/src/tests/utilities/TestConfiguration.js
index 83786e0155..a69ea35385 100644
--- a/packages/server/src/tests/utilities/TestConfiguration.js
+++ b/packages/server/src/tests/utilities/TestConfiguration.js
@@ -17,6 +17,8 @@ const { cleanup } = require("../../utilities/fileSystem")
const { Cookies } = require("@budibase/auth").constants
const { jwt } = require("@budibase/auth").auth
const { StaticDatabases } = require("@budibase/auth/db")
+const { createASession } = require("@budibase/auth/sessions")
+const { user: userCache } = require("@budibase/auth/cache")
const CouchDB = require("../../db")
const GLOBAL_USER_ID = "us_uuid1"
@@ -62,7 +64,7 @@ class TestConfiguration {
return request.body
}
- async globalUser(id = GLOBAL_USER_ID, builder = true) {
+ async globalUser(id = GLOBAL_USER_ID, builder = true, roles) {
const db = new CouchDB(StaticDatabases.GLOBAL.name)
let existing
try {
@@ -73,8 +75,9 @@ class TestConfiguration {
const user = {
_id: id,
...existing,
- roles: {},
+ roles: roles || {},
}
+ await createASession(id, "sessionid")
if (builder) {
user.builder = { global: true }
}
@@ -103,6 +106,7 @@ class TestConfiguration {
defaultHeaders() {
const auth = {
userId: GLOBAL_USER_ID,
+ sessionId: "sessionid",
}
const app = {
roleId: BUILTIN_ROLE_IDS.ADMIN,
@@ -138,13 +142,7 @@ class TestConfiguration {
roleId = BUILTIN_ROLE_IDS.ADMIN,
builder = false,
}) {
- let user
- try {
- user = await this.createUser(email, PASSWORD, roleId)
- } catch (err) {
- // allow errors here
- }
- return this.login(email, PASSWORD, { roleId, userId: user._id, builder })
+ return this.login(email, PASSWORD, { roleId, builder })
}
async createApp(appName) {
@@ -313,6 +311,7 @@ class TestConfiguration {
async createUser(id = null) {
const globalId = !id ? `us_${Math.random()}` : `us_${id}`
const resp = await this.globalUser(globalId)
+ await userCache.invalidateUser(globalId)
return {
...resp,
globalId,
@@ -326,14 +325,19 @@ class TestConfiguration {
}
// make sure the user exists in the global DB
if (roleId !== BUILTIN_ROLE_IDS.PUBLIC) {
- await this.globalUser(userId, builder)
+ const appId = `app${this.getAppId().split("app_dev")[1]}`
+ await this.globalUser(userId, builder, {
+ [appId]: roleId,
+ })
}
if (!email || !password) {
await this.createUser()
}
+ await createASession(userId, "sessionid")
// have to fake this
const auth = {
userId,
+ sessionId: "sessionid",
}
const app = {
roleId: roleId,
@@ -343,6 +347,7 @@ class TestConfiguration {
const appToken = jwt.sign(app, env.JWT_SECRET)
// returning necessary request headers
+ await userCache.invalidateUser(userId)
return {
Accept: "application/json",
Cookie: [
diff --git a/packages/server/src/utilities/fileSystem/clientLibrary.js b/packages/server/src/utilities/fileSystem/clientLibrary.js
new file mode 100644
index 0000000000..3f0d31f257
--- /dev/null
+++ b/packages/server/src/utilities/fileSystem/clientLibrary.js
@@ -0,0 +1,154 @@
+const { join } = require("path")
+const { ObjectStoreBuckets } = require("../../constants")
+const fs = require("fs")
+const { upload, retrieveToTmp, streamUpload } = require("./utilities")
+const { resolve } = require("../centralPath")
+const env = require("../../environment")
+const TOP_LEVEL_PATH = join(__dirname, "..", "..", "..")
+
+/**
+ * Client library paths in the object store:
+ * Previously, the entire standard-components package was downloaded from NPM
+ * as a tarball and extracted to the object store, even though only the manifest
+ * was ever needed. Therefore we need to support old apps which may still have
+ * the manifest at this location for the first update.
+ *
+ * The new paths for the in-use version are:
+ * {appId}/manifest.json
+ * {appId}/budibase-client.js
+ *
+ * The paths for the backups are:
+ * {appId}/manifest.json.bak
+ * {appId}/budibase-client.js.bak
+ *
+ * We don't rely on NPM at all any more, as when updating to the latest version
+ * we pull both the manifest and client bundle from the server's dependencies
+ * in the local file system.
+ */
+
+/**
+ * Backs up the current client library version by copying both the manifest
+ * and client bundle to .bak extensions in the object store. Only the one
+ * previous version is stored as a backup, which can be reverted to.
+ * @param appId The app ID to backup
+ * @returns {Promise}
+ */
+exports.backupClientLibrary = async appId => {
+ // Copy existing manifest to tmp
+ let tmpManifestPath
+ try {
+ // Try to load the manifest from the new file location
+ tmpManifestPath = await retrieveToTmp(
+ ObjectStoreBuckets.APPS,
+ join(appId, "manifest.json")
+ )
+ } catch (error) {
+ // Fallback to loading it from the old location for old apps
+ tmpManifestPath = await retrieveToTmp(
+ ObjectStoreBuckets.APPS,
+ join(
+ appId,
+ "node_modules",
+ "budibase",
+ "standard-components",
+ "package",
+ "manifest.json"
+ )
+ )
+ }
+
+ // Copy existing client lib to tmp
+ const tmpClientPath = await retrieveToTmp(
+ ObjectStoreBuckets.APPS,
+ join(appId, "budibase-client.js")
+ )
+
+ // Upload manifest and client library as backups
+ const manifestUpload = upload({
+ bucket: ObjectStoreBuckets.APPS,
+ filename: join(appId, "manifest.json.bak"),
+ path: tmpManifestPath,
+ type: "application/json",
+ })
+ const clientUpload = upload({
+ bucket: ObjectStoreBuckets.APPS,
+ filename: join(appId, "budibase-client.js.bak"),
+ path: tmpClientPath,
+ type: "application/javascript",
+ })
+ await Promise.all([manifestUpload, clientUpload])
+}
+
+/**
+ * Uploads the latest version of the component manifest and the client library
+ * to the object store, overwriting the existing version.
+ * @param appId The app ID to update
+ * @returns {Promise}
+ */
+exports.updateClientLibrary = async appId => {
+ let manifest, client
+
+ if (env.isDev()) {
+ // Load the symlinked version in dev which is always the newest
+ manifest = require.resolve("@budibase/standard-components/manifest.json")
+ client = require.resolve("@budibase/client")
+ } else {
+ // Load the bundled version in prod
+ manifest = resolve(TOP_LEVEL_PATH, "client", "manifest.json")
+ client = resolve(TOP_LEVEL_PATH, "client", "budibase-client.js")
+ }
+
+ // Upload latest manifest and client library
+ const manifestUpload = streamUpload(
+ ObjectStoreBuckets.APPS,
+ join(appId, "manifest.json"),
+ fs.createReadStream(manifest),
+ {
+ ContentType: "application/json",
+ }
+ )
+ const clientUpload = streamUpload(
+ ObjectStoreBuckets.APPS,
+ join(appId, "budibase-client.js"),
+ fs.createReadStream(client),
+ {
+ ContentType: "application/javascript",
+ }
+ )
+ await Promise.all([manifestUpload, clientUpload])
+}
+
+/**
+ * Reverts the version of the client library and manifest to the previously
+ * used version for an app.
+ * @param appId The app ID to revert
+ * @returns {Promise}
+ */
+exports.revertClientLibrary = async appId => {
+ // Copy backups manifest to tmp directory
+ const tmpManifestPath = await retrieveToTmp(
+ ObjectStoreBuckets.APPS,
+ join(appId, "manifest.json.bak")
+ )
+
+ // Copy backup client lib to tmp
+ const tmpClientPath = await retrieveToTmp(
+ ObjectStoreBuckets.APPS,
+ join(appId, "budibase-client.js.bak")
+ )
+
+ // Upload backups as new versions
+ const manifestUpload = upload({
+ bucket: ObjectStoreBuckets.APPS,
+ filename: join(appId, "manifest.json"),
+ path: tmpManifestPath,
+ type: "application/json",
+ })
+ const clientUpload = upload({
+ bucket: ObjectStoreBuckets.APPS,
+ filename: join(appId, "budibase-client.js"),
+ path: tmpClientPath,
+ type: "application/javascript",
+ })
+ await Promise.all([manifestUpload, clientUpload])
+}
diff --git a/packages/server/src/utilities/fileSystem/index.js b/packages/server/src/utilities/fileSystem/index.js
index afacbf8cdf..b83ff03854 100644
--- a/packages/server/src/utilities/fileSystem/index.js
+++ b/packages/server/src/utilities/fileSystem/index.js
@@ -13,7 +13,7 @@ const {
deleteFolder,
downloadTarball,
} = require("./utilities")
-const { downloadLibraries, uploadClientLibrary } = require("./newApp")
+const { updateClientLibrary } = require("./clientLibrary")
const download = require("download")
const env = require("../../environment")
const { homedir } = require("os")
@@ -139,13 +139,12 @@ exports.performBackup = async (appId, backupName) => {
}
/**
- * Downloads required libraries and creates a new path in the object store.
+ * Uploads the latest client library to the object store.
* @param {string} appId The ID of the app which is being created.
* @return {Promise} once promise completes app resources should be ready in object store.
*/
exports.createApp = async appId => {
- await downloadLibraries(appId)
- await uploadClientLibrary(appId)
+ await updateClientLibrary(appId)
}
/**
@@ -193,8 +192,17 @@ exports.getComponentLibraryManifest = async (appId, library) => {
delete require.cache[require.resolve(path)]
return require(path)
}
- const path = join(appId, "node_modules", library, "package", filename)
- let resp = await retrieve(ObjectStoreBuckets.APPS, path)
+
+ let resp
+ try {
+ // Try to load the manifest from the new file location
+ const path = join(appId, filename)
+ resp = await retrieve(ObjectStoreBuckets.APPS, path)
+ } catch (error) {
+ // Fallback to loading it from the old location for old apps
+ const path = join(appId, "node_modules", library, "package", filename)
+ resp = await retrieve(ObjectStoreBuckets.APPS, path)
+ }
if (typeof resp !== "string") {
resp = resp.toString("utf8")
}
diff --git a/packages/server/src/utilities/fileSystem/newApp.js b/packages/server/src/utilities/fileSystem/newApp.js
deleted file mode 100644
index 735f0d523e..0000000000
--- a/packages/server/src/utilities/fileSystem/newApp.js
+++ /dev/null
@@ -1,36 +0,0 @@
-const packageJson = require("../../../package.json")
-const { join } = require("path")
-const { ObjectStoreBuckets } = require("../../constants")
-const { streamUpload, downloadTarball } = require("./utilities")
-const fs = require("fs")
-
-const BUCKET_NAME = ObjectStoreBuckets.APPS
-
-// can't really test this due to the downloading nature of it, wouldn't be a great test case
-/* istanbul ignore next */
-exports.downloadLibraries = async appId => {
- const LIBRARIES = ["standard-components"]
-
- const paths = {}
- // Need to download tarballs directly from NPM as our users may not have node on their machine
- for (let lib of LIBRARIES) {
- // download tarball
- const registryUrl = `https://registry.npmjs.org/@budibase/${lib}/-/${lib}-${packageJson.version}.tgz`
- const path = join(appId, "node_modules", "@budibase", lib)
- paths[`@budibase/${lib}`] = await downloadTarball(
- registryUrl,
- BUCKET_NAME,
- path
- )
- }
- return paths
-}
-
-exports.uploadClientLibrary = async appId => {
- const sourcepath = require.resolve("@budibase/client")
- const destPath = join(appId, "budibase-client.js")
-
- await streamUpload(BUCKET_NAME, destPath, fs.createReadStream(sourcepath), {
- ContentType: "application/javascript",
- })
-}
diff --git a/packages/server/src/utilities/global.js b/packages/server/src/utilities/global.js
index eddbd63cd7..3ce794b406 100644
--- a/packages/server/src/utilities/global.js
+++ b/packages/server/src/utilities/global.js
@@ -7,6 +7,7 @@ const {
const { BUILTIN_ROLE_IDS } = require("@budibase/auth/roles")
const { getDeployedAppID } = require("@budibase/auth/db")
const { getGlobalUserParams } = require("@budibase/auth/db")
+const { user: userCache } = require("@budibase/auth/cache")
exports.updateAppRole = (appId, user) => {
if (!user.roles) {
@@ -25,15 +26,24 @@ exports.updateAppRole = (appId, user) => {
return user
}
-exports.getGlobalUser = async (appId, userId) => {
- const db = CouchDB(StaticDatabases.GLOBAL.name)
- let user = await db.get(getGlobalIDFromUserMetadataID(userId))
+function processUser(appId, user) {
if (user) {
delete user.password
}
return exports.updateAppRole(appId, user)
}
+exports.getCachedSelf = async (ctx, appId) => {
+ const user = await userCache.getUser(ctx.user._id)
+ return processUser(appId, user)
+}
+
+exports.getGlobalUser = async (appId, userId) => {
+ const db = CouchDB(StaticDatabases.GLOBAL.name)
+ let user = await db.get(getGlobalIDFromUserMetadataID(userId))
+ return processUser(appId, user)
+}
+
exports.getGlobalUsers = async (appId = null, users = null) => {
const db = CouchDB(StaticDatabases.GLOBAL.name)
let globalUsers
diff --git a/packages/server/tsconfig.json b/packages/server/tsconfig.json
index bd6dbc1686..934d0bdd2b 100644
--- a/packages/server/tsconfig.json
+++ b/packages/server/tsconfig.json
@@ -8,7 +8,8 @@
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
- "resolveJsonModule": true
+ "resolveJsonModule": true,
+ "incremental": true
},
"include": [
"./src/**/*"
diff --git a/packages/server/yarn.lock b/packages/server/yarn.lock
index 0939a1add3..68ec6436d4 100644
--- a/packages/server/yarn.lock
+++ b/packages/server/yarn.lock
@@ -2,11 +2,6 @@
# yarn lockfile v1
-"@adobe/spectrum-css-workflow-icons@^1.2.1":
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/@adobe/spectrum-css-workflow-icons/-/spectrum-css-workflow-icons-1.2.1.tgz#7e2cb3fcfb5c8b12d7275afafbb6ec44913551b4"
- integrity sha512-uVgekyBXnOVkxp+CUssjN/gefARtudZC8duEn1vm0lBQFwGRZFlDEzU1QC+aIRWCrD1Z8OgRpmBYlSZ7QS003w==
-
"@azure/abort-controller@^1.0.0":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@azure/abort-controller/-/abort-controller-1.0.4.tgz#fd3c4d46c8ed67aace42498c8e2270960250eafd"
@@ -1146,6 +1141,8 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
+<<<<<<< HEAD
+=======
"@budibase/auth@^0.9.66":
version "0.9.66"
resolved "https://registry.yarnpkg.com/@budibase/auth/-/auth-0.9.66.tgz#543eb6e0cbc0072d8567fdb5ce0f60a601e84f9f"
@@ -1284,6 +1281,7 @@
handlebars-utils "^1.0.6"
lodash "^4.17.20"
+>>>>>>> 2258f43bc104946d9960d6c91722defc4a16f554
"@cnakazawa/watch@^1.0.3":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a"
@@ -2090,205 +2088,6 @@
dependencies:
"@sinonjs/commons" "^1.7.0"
-"@spectrum-css/actionbutton@^1.0.1":
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/actionbutton/-/actionbutton-1.0.3.tgz#8f7342a69b303c5acdcfa0a59f5e9267b9f3cb30"
- integrity sha512-P9qoCPSiZ1SB6ZYqK5hub0vGty00YYqonQE0KTjtb1i+T1nYR/87vWqVPERx9j63uhgZncjwFYaThTvRqye7eQ==
-
-"@spectrum-css/actiongroup@^1.0.1":
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/actiongroup/-/actiongroup-1.0.3.tgz#4713ce65e6f5c72c404a7b638fbc3b4fd7e3874f"
- integrity sha512-NlB9Q4ZlWixXxymoPIYG6g2hkwAGKFodHWPFfxHD8ddkjXWRB9G2akUP7cfsJ4DcYn4VisUORCOYQwqDiSmboQ==
-
-"@spectrum-css/avatar@^3.0.2":
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/avatar/-/avatar-3.0.2.tgz#4f1826223eae330e64b6d3cc899e9bc2e98dac95"
- integrity sha512-wEczvSqxttTWSiL3cOvXV/RmGRwSkw2w6+slcHhnf0kb7ovymMM+9oz8vvEpEsSeo5u598bc+7ktrKFpAd6soQ==
-
-"@spectrum-css/button@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/button/-/button-3.0.3.tgz#2df1efaab6c7e0b3b06cb4b59e1eae59c7f1fc84"
- integrity sha512-6CnLPqqtaU/PcSSIGeGRi0iFIIxIUByYLKFO6zn5NEUc12KQ28dJ4PLwB6WBa0L8vRoAGlnWWH2ZZweTijbXgg==
-
-"@spectrum-css/buttongroup@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/buttongroup/-/buttongroup-3.0.3.tgz#719d868845ac9d2c4f939c1b9f6044507902d5aa"
- integrity sha512-eXl8U4QWMWXqyTu654FdQdEGnmczgOYlpIFSHyCMVjhtPqZp2xwnLFiGh6LKw+bLio6eeOZ0L+vpk1GcoYqgkw==
-
-"@spectrum-css/checkbox@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/checkbox/-/checkbox-3.0.3.tgz#8577067fc8b97e4609f92bd242364937a533a7bb"
- integrity sha512-QVG9uMHq+lh70Dh6mDNnY+vEvNz2p7VC6xgLfDYfijp2qeiqYPq72fQK6p/SiyqPk96ZACzNRwgeROU6Xf6Wgg==
-
-"@spectrum-css/dialog@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/dialog/-/dialog-3.0.3.tgz#7715a4ea435e753afb623d99ca5917ed1bcd6f34"
- integrity sha512-AhmKgfRIVyTe3ABiJ8lLUQL34VB/H6fN16na2LlbDRJvyRMzkdN1Xf2i6U3f4OMd3qQ8Gm5xat4BvMxIQPBAUQ==
-
-"@spectrum-css/divider@^1.0.1":
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/divider/-/divider-1.0.3.tgz#639e2ebaa0834efa40f42397668bbd5c153ea385"
- integrity sha512-Zy4Rn40w8UtzMh3wx/U9+CepSCpm1aOCGftHgWDub0XZuVTzh0c1WwyzTuLCx2Hf21z5VRGNiDh8bGEEzSbtNA==
- dependencies:
- "@spectrum-css/vars" "^3.0.2"
-
-"@spectrum-css/dropzone@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/dropzone/-/dropzone-3.0.3.tgz#aee71697a2c195947599d7541b858c3c198741dc"
- integrity sha512-ujrswdtB6bHigklyHsm6zomFd6rUnKJ3xVVRjroVF4+ouK4DxK5tX0iVd0EW6AOfOjx4Cc28uyFot3fpxp+MQw==
-
-"@spectrum-css/fieldgroup@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/fieldgroup/-/fieldgroup-3.0.3.tgz#85d85da048d08200f25ceab378026dd2b11e0bb2"
- integrity sha512-wXUXTXN1CPnR7M4Ltd+3uh7BfcNGUV1+Xe0/h0tCpq/j+S2Sd4xo7/pUMdU19sIDrAAtpEFp1tt+nouHcU5HGQ==
-
-"@spectrum-css/fieldlabel@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/fieldlabel/-/fieldlabel-3.0.3.tgz#f73c04d20734d4718ffb620dc46458904685b449"
- integrity sha512-nEvIkEXCD5n4fW67Unq6Iu7VXoauEd/JGpfTY02VsC5p4FJLnwKfPDbJUuUsqClAxqw7nAsmXVKtn4zQFf5yPQ==
-
-"@spectrum-css/icon@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/icon/-/icon-3.0.3.tgz#5c612822380927087aebd526855d82ed2c3e2cba"
- integrity sha512-hyloKOejPCXhP3MBNsm3SjR9j8xT1R1S19p32KW/0Qhj+VMUtfyEPmevyFptpn7wcovQccdl/vZVIVDuML/imw==
-
-"@spectrum-css/illustratedmessage@^3.0.2":
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/illustratedmessage/-/illustratedmessage-3.0.2.tgz#6a480be98b027e050b086e7899e40d87adb0a8c0"
- integrity sha512-dqnE8X27bGcO0HN8+dYx8O4o0dNNIAqeivOzDHhe2El+V4dTzMrNIerF6G0NLm3GjVf6XliwmitsZK+K6FmbtA==
-
-"@spectrum-css/inputgroup@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/inputgroup/-/inputgroup-3.0.3.tgz#00c9a370ddc2c55cf0f37dd6069faa9501fd7eb5"
- integrity sha512-FqRJTiLL7jiGfzDVXWUGVLqHryJjCcqQIrqAi+Tq0oenapzsBe2qc/zIrKgh2wtMI+NTIBLXTECvij3L1HlqAg==
-
-"@spectrum-css/label@^2.0.10":
- version "2.0.10"
- resolved "https://registry.yarnpkg.com/@spectrum-css/label/-/label-2.0.10.tgz#2368651d7636a19385b5d300cdf6272db1916001"
- integrity sha512-xCbtEiQkZIlLdWFikuw7ifDCC21DOC/KMgVrrVJHXFc4KRQe9LTZSqmGF3tovm+CSq1adE59mYoTbojVQ9YuEQ==
-
-"@spectrum-css/link@^3.1.1", "@spectrum-css/link@^3.1.3":
- version "3.1.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/link/-/link-3.1.3.tgz#b0e560a7e0acdb4a2b329b6669696aa3438f5993"
- integrity sha512-8Pmy5d73MwKcATTPaj+fSrZYnIw7GmfX40AvpC1xx5LauOxsbUb4AVNp1kn2H8rrOBmxF7czyhoBBhEiv66QUg==
-
-"@spectrum-css/menu@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/menu/-/menu-3.0.3.tgz#46a9b221bb5f470a2f8a934bdfd512d84d2fdc4d"
- integrity sha512-qKA9J/MrikNKIpCEHsAazG2vY3im5tjGCmo6p9Pdnu8/aQMsiuZDHZayukeCttJUZkrb9guDVL9OIHlK5RZvcQ==
-
-"@spectrum-css/modal@^3.0.1":
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/modal/-/modal-3.0.2.tgz#58b6621cab65f90788d310374f40df1f7090473f"
- integrity sha512-YnIivJhoaao7Otu+HV7sgebPyFbO6sd/oMvTN/Rb2wwgnaMnIIuIRdGandSrcgotN2uNgs+P0knG6mv/xA1/dg==
-
-"@spectrum-css/page@^3.0.1":
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/page/-/page-3.0.2.tgz#8f0c03d25f5565fb13115541a8fcaf0e1d3a8ee0"
- integrity sha512-lCXWjonLwYBg8FHUEkiFX0Mmfk+9Uivgvxq0DTulPlWrJcULTwjaOiY28/YBz7Fy1wuv/0KORbkPRALpYldBZg==
- dependencies:
- "@spectrum-css/vars" "^3.0.2"
-
-"@spectrum-css/pagination@^3.0.3":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/pagination/-/pagination-3.0.3.tgz#b204c3ada384c4af751a354bc428346d82eeea65"
- integrity sha512-OJ/v9GeNXJOZ9Yr9LDBYPrR2NCiLOWP9wANT/a5sqFuugRnQbn/HYMnRp9TBxwpDY6ihaPo0T/wi7kLiAJFdDw==
-
-"@spectrum-css/picker@^1.0.1":
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/picker/-/picker-1.0.3.tgz#21379bcf8ae94277deeb6ad65dcd9e2bbfacb487"
- integrity sha512-oHLGxBx5BwVCSGo7/T1C9PTHX1+/5AmVjyLiTJ4UoIdSJmOERw9YcRZbcGZgBJNWbxcjr4TyGtwj1EcSjEy97w==
-
-"@spectrum-css/popover@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/popover/-/popover-3.0.3.tgz#6fb69873474fb968afb738eacb9e121f93e83a09"
- integrity sha512-KvmXv4TV19FBx39KfmgVlDYtvtBqv/8RRK7RRLDDHGViTxZtShjVsVpwIgfkfgn4iJztCnXpWzFqRXWUu2XCpQ==
-
-"@spectrum-css/progressbar@^1.0.2":
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/progressbar/-/progressbar-1.0.3.tgz#f70bcc38a2a21cff2f422ec825724ebbb9455e67"
- integrity sha512-vJHplefUuy8+NjCw1X7fLbqHVGNVBpvGFXNAeaIj4SFf4ygxiUq/5c9iRhhsCQixEsJlfD/b7BnGXU7BUDkr6Q==
-
-"@spectrum-css/progresscircle@^1.0.2":
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/progresscircle/-/progresscircle-1.0.2.tgz#258ea9170fb70f795edda03e38a61d93bef4487c"
- integrity sha512-JLULpyzjIY95lzlWR1yE1gv4l1K6p+scQ+edmuZZUHBzwM3pUtkvHJmUlA9TYdResUYW6Uka60VRdY6lZ8gnFQ==
-
-"@spectrum-css/radio@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/radio/-/radio-3.0.3.tgz#25c3bc5e9c30a8a8ae728717b7c7fb736cdae640"
- integrity sha512-LaLGfz/eGNR2iyqouXYILIA+pKRqF769iPdwM0REm5RpWvMQDD7rPZ/kWlg18owjaFsyllEp25gEjmhRJIIVOw==
-
-"@spectrum-css/search@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/search/-/search-3.0.3.tgz#3415dc106aca0d5dd996e87084a1b47c2b95a882"
- integrity sha512-kdLpKTt0obljuhS1q1tukujRlvSs8sBwij76D4Qp8KpMzwePfZyvv1kYzuWPNZfTeISxWsmyZ6Wxd1uvzjn+UA==
-
-"@spectrum-css/sidenav@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/sidenav/-/sidenav-3.0.3.tgz#132141fbd2500a927c312fa4e1d712c438b3d597"
- integrity sha512-cQ+CgwjxGftrcc79i1XnGd66QTl7H7zopSU0UTV4Qq7hvqfrjjWxfZ6b+3tezrrhNlDope1ff9o8sm67PsPXtg==
-
-"@spectrum-css/statuslight@^3.0.2":
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/statuslight/-/statuslight-3.0.2.tgz#dc54b6cd113413dcdb909c486b5d7bae60db65c5"
- integrity sha512-xodB8g8vGJH20XmUj9ZsPlM1jHrGeRbvmVXkz0q7YvQrYAhim8pP3W+XKKZAletPFAuu8cmUOc6SWn6i4X4z6w==
-
-"@spectrum-css/switch@^1.0.2":
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/switch/-/switch-1.0.2.tgz#f0b4c69271964573e02b08e90998096e49e1de44"
- integrity sha512-zqmHpgWPNg1gEwdUNFYV3CBX5JaeALfIqcJIxE0FLZqr9d1C4+oLE0ItIFzt1bwr4bFAOmkEpvtiY+amluzGxQ==
-
-"@spectrum-css/table@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/table/-/table-3.0.3.tgz#7f7f19905ef3275cbf907ce3a5818e63c30b2caf"
- integrity sha512-nxwzVjLPsXoY/v4sdxOVYLcC+cEbGgJyLcLclT5LT9MGSbngFeUMJzzVR4EvehzuN4dH7hrATG7Mbuq29Mf0Hg==
-
-"@spectrum-css/tabs@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/tabs/-/tabs-3.0.3.tgz#51dd6f168c897b0fdc3a7e9f901df7bd2288b4fc"
- integrity sha512-iLP1I72bJWz9APdQB1jiw+pOv5a7N+hYOCJvRoc56Us/hJKVzowkyGRe3uH+8v36nCG9bHxiAQNLoU8eXisVrg==
-
-"@spectrum-css/tags@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/tags/-/tags-3.0.3.tgz#fc76d2735cdc442de91b7eb3bee49a928c0767ac"
- integrity sha512-SL8vPxVDfWcY5VdIuyl0TImEXcOU1I7yCyXkk7MudMwfnYs81FaIyY32hFV9OHj0Tz/36UzRzc7AVMSuRQ53pw==
-
-"@spectrum-css/textfield@^3.0.1":
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/textfield/-/textfield-3.0.2.tgz#907f62d2dc82852dd6236a820be99e252b531631"
- integrity sha512-nkFgAb0cP4jUodkUBErMNfyF78jJLtgL1Mrr9/rvGpGobo10IAbb8zZY4CkZ64o8XmMy/85+wZTKcx+KHatqpg==
-
-"@spectrum-css/toast@^3.0.1":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/toast/-/toast-3.0.3.tgz#97c1527384707600832ecda35643ed304615250f"
- integrity sha512-CjLeaMs+cjUXojCCRtbj0YkD2BoZW16kjj2o5omkEpUTjA34IJ8xJ1a+CCtDILWekhXvN0MBN4sbumcnwcnx8w==
-
-"@spectrum-css/tooltip@^3.0.3":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/tooltip/-/tooltip-3.0.3.tgz#26b8ca3b3d30e29630244d85eb4fc11d0c841281"
- integrity sha512-ztRF7WW1FzyNavXBRc+80z67UoOrY9wl3cMYsVD3MpDnyxdzP8cjza1pCcolKBaFqRTcQKkxKw3GWtGICRKR5A==
-
-"@spectrum-css/treeview@^3.0.2":
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/@spectrum-css/treeview/-/treeview-3.0.3.tgz#aeda5175158b9f8d7529cb2b394428eb2a428046"
- integrity sha512-D5gGzZC/KtRArdx86Mesc9+99W9nTbUOeyYGqoJoAfJSOttoT6Tk5CrDvlCmAqjKf5rajemAkGri1ChqvUIwkw==
-
-"@spectrum-css/typography@^3.0.1":
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/typography/-/typography-3.0.2.tgz#ea3ca0a60e18064527819d48c8c4364cab4fcd38"
- integrity sha512-5ZOLmQe0edzsDMyhghUd4hBb5uxGsFrxzf+WasfcUw9klSfTsRZ09n1BsaaWbgrLjlMQ+EEHS46v5VNo0Ms2CA==
-
-"@spectrum-css/underlay@^2.0.9":
- version "2.0.10"
- resolved "https://registry.yarnpkg.com/@spectrum-css/underlay/-/underlay-2.0.10.tgz#8b75b646605a311850f6620caa18d4996cd64ed7"
- integrity sha512-PmsmkzeGD/rY4pp3ILXHt9w8BW7uaEqXe08hQRS7rGki7wqCpG4mE0/8N3yEcA3QxWQclmG9gdkg5uz6wMmYzA==
-
-"@spectrum-css/vars@^3.0.1", "@spectrum-css/vars@^3.0.2":
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/@spectrum-css/vars/-/vars-3.0.2.tgz#ea9062c3c98dfc6ba59e5df14a03025ad8969999"
- integrity sha512-vzS9KqYXot4J3AEER/u618MXWAS+IoMvYMNrOoscKiLLKYQWenaueakUWulFonToPd/9vIpqtdbwxznqrK5qDw==
-
"@szmarczak/http-timer@^1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
@@ -2835,130 +2634,6 @@ ansi-align@^3.0.0:
dependencies:
string-width "^3.0.0"
-ansi-bgblack@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bgblack/-/ansi-bgblack-0.1.1.tgz#a68ba5007887701b6aafbe3fa0dadfdfa8ee3ca2"
- integrity sha1-poulAHiHcBtqr74/oNrf36juPKI=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-bgblue@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bgblue/-/ansi-bgblue-0.1.1.tgz#67bdc04edc9b9b5278969da196dea3d75c8c3613"
- integrity sha1-Z73ATtybm1J4lp2hlt6j11yMNhM=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-bgcyan@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bgcyan/-/ansi-bgcyan-0.1.1.tgz#58489425600bde9f5507068dd969ebfdb50fe768"
- integrity sha1-WEiUJWAL3p9VBwaN2Wnr/bUP52g=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-bggreen@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bggreen/-/ansi-bggreen-0.1.1.tgz#4e3191248529943f4321e96bf131d1c13816af49"
- integrity sha1-TjGRJIUplD9DIelr8THRwTgWr0k=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-bgmagenta@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bgmagenta/-/ansi-bgmagenta-0.1.1.tgz#9b28432c076eaa999418672a3efbe19391c2c7a1"
- integrity sha1-myhDLAduqpmUGGcqPvvhk5HCx6E=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-bgred@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bgred/-/ansi-bgred-0.1.1.tgz#a76f92838382ba43290a6c1778424f984d6f1041"
- integrity sha1-p2+Sg4OCukMpCmwXeEJPmE1vEEE=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-bgwhite@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bgwhite/-/ansi-bgwhite-0.1.1.tgz#6504651377a58a6ececd0331994e480258e11ba8"
- integrity sha1-ZQRlE3elim7OzQMxmU5IAljhG6g=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-bgyellow@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bgyellow/-/ansi-bgyellow-0.1.1.tgz#c3fe2eb08cd476648029e6874d15a0b38f61d44f"
- integrity sha1-w/4usIzUdmSAKeaHTRWgs49h1E8=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-black@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-black/-/ansi-black-0.1.1.tgz#f6185e889360b2545a1ec50c0bf063fc43032453"
- integrity sha1-9hheiJNgslRaHsUMC/Bj/EMDJFM=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-blue@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-blue/-/ansi-blue-0.1.1.tgz#15b804990e92fc9ca8c5476ce8f699777c21edbf"
- integrity sha1-FbgEmQ6S/JyoxUds6PaZd3wh7b8=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-bold@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-bold/-/ansi-bold-0.1.1.tgz#3e63950af5acc2ae2e670e6f67deb115d1a5f505"
- integrity sha1-PmOVCvWswq4uZw5vZ96xFdGl9QU=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-colors@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-0.2.0.tgz#72c31de2a0d9a2ccd0cac30cc9823eeb2f6434b5"
- integrity sha1-csMd4qDZoszQysMMyYI+6y9kNLU=
- dependencies:
- ansi-bgblack "^0.1.1"
- ansi-bgblue "^0.1.1"
- ansi-bgcyan "^0.1.1"
- ansi-bggreen "^0.1.1"
- ansi-bgmagenta "^0.1.1"
- ansi-bgred "^0.1.1"
- ansi-bgwhite "^0.1.1"
- ansi-bgyellow "^0.1.1"
- ansi-black "^0.1.1"
- ansi-blue "^0.1.1"
- ansi-bold "^0.1.1"
- ansi-cyan "^0.1.1"
- ansi-dim "^0.1.1"
- ansi-gray "^0.1.1"
- ansi-green "^0.1.1"
- ansi-grey "^0.1.1"
- ansi-hidden "^0.1.1"
- ansi-inverse "^0.1.1"
- ansi-italic "^0.1.1"
- ansi-magenta "^0.1.1"
- ansi-red "^0.1.1"
- ansi-reset "^0.1.1"
- ansi-strikethrough "^0.1.1"
- ansi-underline "^0.1.1"
- ansi-white "^0.1.1"
- ansi-yellow "^0.1.1"
- lazy-cache "^2.0.1"
-
-ansi-cyan@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873"
- integrity sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-dim@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-dim/-/ansi-dim-0.1.1.tgz#40de4c603aa8086d8e7a86b8ff998d5c36eefd6c"
- integrity sha1-QN5MYDqoCG2Oeoa4/5mNXDbu/Ww=
- dependencies:
- ansi-wrap "0.1.0"
-
ansi-escapes@^4.2.1:
version "4.3.2"
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e"
@@ -2966,62 +2641,6 @@ ansi-escapes@^4.2.1:
dependencies:
type-fest "^0.21.3"
-ansi-gray@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251"
- integrity sha1-KWLPVOyXksSFEKPetSRDaGHvclE=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-green@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-green/-/ansi-green-0.1.1.tgz#8a5d9a979e458d57c40e33580b37390b8e10d0f7"
- integrity sha1-il2al55FjVfEDjNYCzc5C44Q0Pc=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-grey@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-grey/-/ansi-grey-0.1.1.tgz#59d98b6ac2ba19f8a51798e9853fba78339a33c1"
- integrity sha1-WdmLasK6GfilF5jphT+6eDOaM8E=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-hidden@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-hidden/-/ansi-hidden-0.1.1.tgz#ed6a4c498d2bb7cbb289dbf2a8d1dcc8567fae0f"
- integrity sha1-7WpMSY0rt8uyidvyqNHcyFZ/rg8=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-inverse@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-inverse/-/ansi-inverse-0.1.1.tgz#b6af45826fe826bfb528a6c79885794355ccd269"
- integrity sha1-tq9Fgm/oJr+1KKbHmIV5Q1XM0mk=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-italic@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-italic/-/ansi-italic-0.1.1.tgz#104743463f625c142a036739cf85eda688986f23"
- integrity sha1-EEdDRj9iXBQqA2c5z4XtpoiYbyM=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-magenta@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-magenta/-/ansi-magenta-0.1.1.tgz#063b5ba16fb3f23e1cfda2b07c0a89de11e430ae"
- integrity sha1-BjtboW+z8j4c/aKwfAqJ3hHkMK4=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-red@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c"
- integrity sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=
- dependencies:
- ansi-wrap "0.1.0"
-
ansi-regex@^2.0.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
@@ -3037,20 +2656,6 @@ ansi-regex@^5.0.0:
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75"
integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==
-ansi-reset@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-reset/-/ansi-reset-0.1.1.tgz#e7e71292c3c7ddcd4d62ef4a6c7c05980911c3b7"
- integrity sha1-5+cSksPH3c1NYu9KbHwFmAkRw7c=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-strikethrough@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-strikethrough/-/ansi-strikethrough-0.1.1.tgz#d84877140b2cff07d1c93ebce69904f68885e568"
- integrity sha1-2Eh3FAss/wfRyT685pkE9oiF5Wg=
- dependencies:
- ansi-wrap "0.1.0"
-
ansi-styles@^3.2.0, ansi-styles@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
@@ -3070,32 +2675,6 @@ ansi-styles@^5.0.0:
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b"
integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==
-ansi-underline@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-underline/-/ansi-underline-0.1.1.tgz#dfc920f4c97b5977ea162df8ffb988308aaa71a4"
- integrity sha1-38kg9Ml7WXfqFi34/7mIMIqqcaQ=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-white@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-white/-/ansi-white-0.1.1.tgz#9c77b7c193c5ee992e6011d36ec4c921b4578944"
- integrity sha1-nHe3wZPF7pkuYBHTbsTJIbRXiUQ=
- dependencies:
- ansi-wrap "0.1.0"
-
-ansi-wrap@0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf"
- integrity sha1-qCJQ3bABXponyoLoLqYDu/pF768=
-
-ansi-yellow@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ansi-yellow/-/ansi-yellow-0.1.1.tgz#cb9356f2f46c732f0e3199e6102955a77da83c1d"
- integrity sha1-y5NW8vRscy8OMZnmEClVp32oPB0=
- dependencies:
- ansi-wrap "0.1.0"
-
any-base@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/any-base/-/any-base-1.1.0.tgz#ae101a62bc08a597b4c9ab5b7089d456630549fe"
@@ -3122,18 +2701,6 @@ anymatch@^3.0.3, anymatch@~3.1.1:
normalize-path "^3.0.0"
picomatch "^2.0.4"
-apexcharts@^3.19.2, apexcharts@^3.22.1:
- version "3.27.1"
- resolved "https://registry.yarnpkg.com/apexcharts/-/apexcharts-3.27.1.tgz#b0e6dd3b3ace028f29b32fcd88e19a2420a18089"
- integrity sha512-2pfw3pxeWhI0ap5lfxyfGNGoGScfEwfc8XnTpbnzgRdr1AOH5JJN9hh3MvfwrC9TQQfJYC2TZc8P/q9qXUj1bQ==
- dependencies:
- svg.draggable.js "^2.2.2"
- svg.easing.js "^2.0.0"
- svg.filter.js "^2.0.2"
- svg.pathmorphing.js "^0.1.3"
- svg.resize.js "^1.4.3"
- svg.select.js "^3.0.1"
-
arangojs@7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/arangojs/-/arangojs-7.2.0.tgz#e576926b4b3469c5a130cceba45fada8b5f015d1"
@@ -3157,7 +2724,7 @@ arg@^4.1.0:
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
-argparse@^1.0.10, argparse@^1.0.7:
+argparse@^1.0.7:
version "1.0.10"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==
@@ -3204,15 +2771,6 @@ array-flatten@1.1.1:
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=
-array-sort@^0.1.4:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/array-sort/-/array-sort-0.1.4.tgz#662855eaeb671b4188df4451b2f24a0753992b23"
- integrity sha512-BNcM+RXxndPxiZ2rd76k6nyQLRZr2/B/sdi8pQ+Joafr5AH279L40dfokSUTp8O+AaqYjXWhblBWa2st2nc4fQ==
- dependencies:
- default-compare "^1.0.0"
- get-value "^2.0.6"
- kind-of "^5.0.2"
-
array-union@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"
@@ -3270,13 +2828,6 @@ async@>=0.6.0:
resolved "https://registry.yarnpkg.com/async/-/async-3.2.0.tgz#b3a2685c5ebb641d3de02d161002c60fc9f85720"
integrity sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==
-async@~2.1.4:
- version "2.1.5"
- resolved "https://registry.yarnpkg.com/async/-/async-2.1.5.tgz#e587c68580994ac67fc56ff86d3ac56bdbe810bc"
- integrity sha1-5YfGhYCZSsZ/xW/4bTrFa9voELw=
- dependencies:
- lodash "^4.14.0"
-
asynckit@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
@@ -3292,13 +2843,6 @@ atomic-sleep@^1.0.0:
resolved "https://registry.yarnpkg.com/atomic-sleep/-/atomic-sleep-1.0.0.tgz#eb85b77a601fc932cfe432c5acd364a9e2c9075b"
integrity sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==
-autolinker@~0.28.0:
- version "0.28.1"
- resolved "https://registry.yarnpkg.com/autolinker/-/autolinker-0.28.1.tgz#0652b491881879f0775dace0cdca3233942a4e47"
- integrity sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=
- dependencies:
- gulp-header "^1.7.1"
-
aws-sdk@^2.767.0:
version "2.924.0"
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.924.0.tgz#daefcd11729638d9c9279633a0cc5ba1c98fee64"
@@ -3314,21 +2858,6 @@ aws-sdk@^2.767.0:
uuid "3.3.2"
xml2js "0.4.19"
-aws-sdk@^2.901.0:
- version "2.934.0"
- resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.934.0.tgz#1c26bd8ded15d2f6b2aa3301d35fc5daf1a61d68"
- integrity sha512-k7p08ewrKcbs0ikCLFi9OI98Iv9dMND5244xPxUIjK5BLtuT/9Gr6eSCHfN70eCQyM5Y2xG1VJP6zhpkihu9Ew==
- dependencies:
- buffer "4.9.2"
- events "1.1.1"
- ieee754 "1.1.13"
- jmespath "0.15.0"
- querystring "0.2.0"
- sax "1.2.1"
- url "0.10.3"
- uuid "3.3.2"
- xml2js "0.4.19"
-
aws-sign2@~0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8"
@@ -3510,11 +3039,6 @@ base64-js@^1.0.2, base64-js@^1.3.1:
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
-base64url@3.x.x:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/base64url/-/base64url-3.0.1.tgz#6399d572e2bc3f90a9a8b22d5dbb0a32d33f788d"
- integrity sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==
-
base@^0.11.1:
version "0.11.2"
resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f"
@@ -3535,7 +3059,7 @@ bcrypt-pbkdf@^1.0.0:
dependencies:
tweetnacl "^0.14.3"
-bcryptjs@2.4.3, bcryptjs@^2.4.3:
+bcryptjs@2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/bcryptjs/-/bcryptjs-2.4.3.tgz#9ab5627b93e60621ff7cdac5da9733027df1d0cb"
integrity sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms=
@@ -3580,15 +3104,6 @@ bl@^3.0.0:
dependencies:
readable-stream "^3.0.1"
-bl@^4.0.3:
- version "4.1.0"
- resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a"
- integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==
- dependencies:
- buffer "^5.5.0"
- inherits "^2.0.4"
- readable-stream "^3.4.0"
-
bluebird@^3.5.1:
version "3.7.2"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
@@ -3948,11 +3463,6 @@ chokidar@^3.2.2:
optionalDependencies:
fsevents "~2.3.1"
-chownr@^1.1.1:
- version "1.1.4"
- resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
- integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==
-
ci-info@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
@@ -4141,13 +3651,6 @@ concat-map@0.0.1:
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
-concat-with-sourcemaps@*:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz#d4ea93f05ae25790951b99e7b3b09e3908a4082e"
- integrity sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==
- dependencies:
- source-map "^0.6.1"
-
configstore@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96"
@@ -4361,23 +3864,11 @@ date-utils@*:
resolved "https://registry.yarnpkg.com/date-utils/-/date-utils-1.2.21.tgz#61fb16cdc1274b3c9acaaffe9fc69df8720a2b64"
integrity sha1-YfsWzcEnSzyayq/+n8ad+HIKK2Q=
-date.js@^0.3.1:
- version "0.3.3"
- resolved "https://registry.yarnpkg.com/date.js/-/date.js-0.3.3.tgz#ef1e92332f507a638795dbb985e951882e50bbda"
- integrity sha512-HgigOS3h3k6HnW011nAb43c5xx5rBXk8P2v/WIT9Zv4koIaVXiH2BURguI78VVp+5Qc076T7OR378JViCnZtBw==
- dependencies:
- debug "~3.1.0"
-
dateformat@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae"
integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==
-dayjs@^1.10.4, dayjs@^1.10.5:
- version "1.10.5"
- resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.10.5.tgz#5600df4548fc2453b3f163ebb2abbe965ccfb986"
- integrity sha512-BUFis41ikLz+65iH6LHQCDm4YPMj5r1YFLdupPIyM4SGcXMmtiLQ7U37i+hGS8urIuqe7I/ou3IS1jVc4nbN4g==
-
debug@2.6.9, debug@^2.2.0, debug@^2.3.3:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
@@ -4511,13 +4002,6 @@ deepmerge@^4.2.2:
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955"
integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==
-default-compare@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/default-compare/-/default-compare-1.0.0.tgz#cb61131844ad84d84788fb68fd01681ca7781a2f"
- integrity sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==
- dependencies:
- kind-of "^5.0.2"
-
default-shell@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/default-shell/-/default-shell-1.0.1.tgz#752304bddc6174f49eb29cb988feea0b8813c8bc"
@@ -4787,7 +4271,7 @@ encoding-down@^6.3.0:
level-codec "^9.0.0"
level-errors "^2.0.0"
-end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.1:
+end-of-stream@^1.0.0, end-of-stream@^1.1.0:
version "1.4.4"
resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==
@@ -4801,11 +4285,6 @@ end-stream@~0.1.0:
dependencies:
write-stream "~0.4.3"
-ent@^2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d"
- integrity sha1-6WQhkyWiHQX0RGai9obtbOX13R0=
-
errno@~0.1.1, errno@~0.1.7:
version "0.1.8"
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f"
@@ -4825,11 +4304,6 @@ error-inject@^1.0.0:
resolved "https://registry.yarnpkg.com/error-inject/-/error-inject-1.0.0.tgz#e2b3d91b54aed672f309d950d154850fa11d4f37"
integrity sha1-4rPZG1Su1nLzCdlQ0VSFD6EdTzc=
-error-symbol@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/error-symbol/-/error-symbol-0.1.0.tgz#0a4dae37d600d15a29ba453d8ef920f1844333f6"
- integrity sha1-Ck2uN9YA0VopukU9jvkg8YRDM/Y=
-
es-abstract@^1.17.0-next.0, es-abstract@^1.18.0-next.2:
version "1.18.3"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.3.tgz#25c4c3380a27aa203c44b2b685bba94da31b63e0"
@@ -5306,13 +4780,6 @@ falafel@^1.0.1:
isarray "0.0.1"
object-keys "^1.0.6"
-"falsey@^0.3.2":
- version "0.3.2"
- resolved "https://registry.yarnpkg.com/falsey/-/falsey-0.3.2.tgz#b21c90c5c34660fc192bf909575db95b6880d597"
- integrity sha512-lxEuefF5MBIVDmE6XeqCdM4BWk1+vYmGZtkbKZ/VFcg6uBBw6fXNEbWmxCjDdQlFc9hy450nkiWwM3VAW6G1qg==
- dependencies:
- kind-of "^5.0.2"
-
fast-deep-equal@^3.1.1:
version "3.1.3"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
@@ -5529,11 +4996,6 @@ flat-cache@^2.0.1:
rimraf "2.6.3"
write "1.0.3"
-flatpickr@^4.5.2:
- version "4.6.9"
- resolved "https://registry.yarnpkg.com/flatpickr/-/flatpickr-4.6.9.tgz#9a13383e8a6814bda5d232eae3fcdccb97dc1499"
- integrity sha512-F0azNNi8foVWKSF+8X+ZJzz8r9sE1G4hl06RyceIaLvyltKvDl6vqk9Lm/6AUUCi5HWaIjiUbk7UpeE/fOXOpw==
-
flatstr@^1.0.12:
version "1.0.12"
resolved "https://registry.yarnpkg.com/flatstr/-/flatstr-1.0.12.tgz#c2ba6a08173edbb6c9640e3055b95e287ceb5931"
@@ -5556,18 +5018,11 @@ for-each@^0.3.3:
dependencies:
is-callable "^1.1.3"
-for-in@^1.0.1, for-in@^1.0.2:
+for-in@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=
-for-own@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b"
- integrity sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=
- dependencies:
- for-in "^1.0.1"
-
foreach@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
@@ -5640,11 +5095,6 @@ fs-constants@^1.0.0:
resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==
-fs-exists-sync@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add"
- integrity sha1-mC1ok6+RjnLQjeyehnP/K1qNat0=
-
fs-extra@8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
@@ -5701,14 +5151,6 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.1:
has "^1.0.3"
has-symbols "^1.0.1"
-get-object@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/get-object/-/get-object-0.2.0.tgz#d92ff7d5190c64530cda0543dac63a3d47fe8c0c"
- integrity sha1-2S/31RkMZFMM2gVD2sY6PUf+jAw=
- dependencies:
- is-number "^2.0.2"
- isobject "^0.2.0"
-
get-package-type@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a"
@@ -5845,32 +5287,6 @@ globby@^11.0.3:
merge2 "^1.3.0"
slash "^3.0.0"
-google-auth-library@~0.10.0:
- version "0.10.0"
- resolved "https://registry.yarnpkg.com/google-auth-library/-/google-auth-library-0.10.0.tgz#6e15babee85fd1dd14d8d128a295b6838d52136e"
- integrity sha1-bhW6vuhf0d0U2NEoopW2g41SE24=
- dependencies:
- gtoken "^1.2.1"
- jws "^3.1.4"
- lodash.noop "^3.0.1"
- request "^2.74.0"
-
-google-p12-pem@^0.1.0:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/google-p12-pem/-/google-p12-pem-0.1.2.tgz#33c46ab021aa734fa0332b3960a9a3ffcb2f3177"
- integrity sha1-M8RqsCGqc0+gMys5YKmj/8svMXc=
- dependencies:
- node-forge "^0.7.1"
-
-googleapis@^16.0.0:
- version "16.1.0"
- resolved "https://registry.yarnpkg.com/googleapis/-/googleapis-16.1.0.tgz#0f19f2d70572d918881a0f626e3b1a2fa8629576"
- integrity sha1-Dxny1wVy2RiIGg9ibjsaL6hilXY=
- dependencies:
- async "~2.1.4"
- google-auth-library "~0.10.0"
- string-template "~1.0.0"
-
got@^8.3.1:
version "8.3.2"
resolved "https://registry.yarnpkg.com/got/-/got-8.3.2.tgz#1d23f64390e97f776cac52e5b936e5f514d2e937"
@@ -5916,45 +5332,6 @@ graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee"
integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==
-gtoken@^1.2.1:
- version "1.2.3"
- resolved "https://registry.yarnpkg.com/gtoken/-/gtoken-1.2.3.tgz#5509571b8afd4322e124cf66cf68115284c476d8"
- integrity sha512-wQAJflfoqSgMWrSBk9Fg86q+sd6s7y6uJhIvvIPz++RElGlMtEqsdAR2oWwZ/WTEtp7P9xFbJRrT976oRgzJ/w==
- dependencies:
- google-p12-pem "^0.1.0"
- jws "^3.0.0"
- mime "^1.4.1"
- request "^2.72.0"
-
-gulp-header@^1.7.1:
- version "1.8.12"
- resolved "https://registry.yarnpkg.com/gulp-header/-/gulp-header-1.8.12.tgz#ad306be0066599127281c4f8786660e705080a84"
- integrity sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==
- dependencies:
- concat-with-sourcemaps "*"
- lodash.template "^4.4.0"
- through2 "^2.0.0"
-
-handlebars-utils@^1.0.2, handlebars-utils@^1.0.4, handlebars-utils@^1.0.6:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/handlebars-utils/-/handlebars-utils-1.0.6.tgz#cb9db43362479054782d86ffe10f47abc76357f9"
- integrity sha512-d5mmoQXdeEqSKMtQQZ9WkiUcO1E3tPbWxluCK9hVgIDPzQa9WsKo3Lbe/sGflTe7TomHEeZaOgwIkyIr1kfzkw==
- dependencies:
- kind-of "^6.0.0"
- typeof-article "^0.1.1"
-
-handlebars@^4.0.11, handlebars@^4.7.6:
- version "4.7.7"
- resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1"
- integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==
- dependencies:
- minimist "^1.2.5"
- neo-async "^2.6.0"
- source-map "^0.6.1"
- wordwrap "^1.0.0"
- optionalDependencies:
- uglify-js "^3.1.4"
-
har-schema@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92"
@@ -6043,39 +5420,6 @@ has@^1.0.3:
dependencies:
function-bind "^1.1.1"
-helper-date@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/helper-date/-/helper-date-1.0.1.tgz#12fedea3ad8e44a7ca4c4efb0ff4104a5120cffb"
- integrity sha512-wU3VOwwTJvGr/w5rZr3cprPHO+hIhlblTJHD6aFBrKLuNbf4lAmkawd2iK3c6NbJEvY7HAmDpqjOFSI5/+Ey2w==
- dependencies:
- date.js "^0.3.1"
- handlebars-utils "^1.0.4"
- moment "^2.18.1"
-
-helper-markdown@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/helper-markdown/-/helper-markdown-1.0.0.tgz#ee7e9fc554675007d37eb90f7853b13ce74f3e10"
- integrity sha512-AnDqMS4ejkQK0MXze7pA9TM3pu01ZY+XXsES6gEE0RmCGk5/NIfvTn0NmItfyDOjRAzyo9z6X7YHbHX4PzIvOA==
- dependencies:
- handlebars-utils "^1.0.2"
- highlight.js "^9.12.0"
- remarkable "^1.7.1"
-
-helper-md@^0.2.2:
- version "0.2.2"
- resolved "https://registry.yarnpkg.com/helper-md/-/helper-md-0.2.2.tgz#c1f59d7e55bbae23362fd8a0e971607aec69d41f"
- integrity sha1-wfWdflW7riM2L9ig6XFgeuxp1B8=
- dependencies:
- ent "^2.2.0"
- extend-shallow "^2.0.1"
- fs-exists-sync "^0.1.0"
- remarkable "^1.6.2"
-
-highlight.js@^9.12.0:
- version "9.18.5"
- resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.5.tgz#d18a359867f378c138d6819edfc2a8acd5f29825"
- integrity sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA==
-
hosted-git-info@^2.1.4:
version "2.8.9"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9"
@@ -6105,14 +5449,6 @@ html-escaper@^2.0.0:
resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453"
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
-html-tag@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/html-tag/-/html-tag-2.0.0.tgz#36c3bc8d816fd30b570d5764a497a641640c2fed"
- integrity sha512-XxzooSo6oBoxBEUazgjdXj7VwTn/iSTSZzTYKzYY6I916tkaYzypHxy+pbVU1h+0UQ9JlVf5XkNQyxOAiiQO1g==
- dependencies:
- is-self-closing "^1.0.1"
- kind-of "^6.0.0"
-
http-assert@^1.3.0:
version "1.4.1"
resolved "https://registry.yarnpkg.com/http-assert/-/http-assert-1.4.1.tgz#c5f725d677aa7e873ef736199b89686cceb37878"
@@ -6298,11 +5634,6 @@ inflight@^1.0.4:
once "^1.3.0"
wrappy "1"
-info-symbol@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/info-symbol/-/info-symbol-0.1.0.tgz#27841d72867ddb4242cd612d79c10633881c6a78"
- integrity sha1-J4QdcoZ920JCzWEtecEGM4gcang=
-
inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3:
version "2.0.4"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
@@ -6391,22 +5722,6 @@ ioredis@^4.27.0:
redis-parser "^3.0.0"
standard-as-callback "^2.1.0"
-ioredis@^4.27.1:
- version "4.27.6"
- resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-4.27.6.tgz#a53d427d3fe75fbd10ed7ad150ce00559df8dcf8"
- integrity sha512-6W3ZHMbpCa8ByMyC1LJGOi7P2WiOKP9B3resoZOVLDhi+6dDBOW+KNsRq3yI36Hmnb2sifCxHX+YSarTeXh48A==
- dependencies:
- cluster-key-slot "^1.1.0"
- debug "^4.3.1"
- denque "^1.1.0"
- lodash.defaults "^4.2.0"
- lodash.flatten "^4.4.0"
- p-map "^2.1.0"
- redis-commands "1.7.0"
- redis-errors "^1.2.0"
- redis-parser "^3.0.0"
- standard-as-callback "^2.1.0"
-
ipaddr.js@1.9.1:
version "1.9.1"
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
@@ -6528,13 +5843,6 @@ is-docker@^2.0.0:
resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==
-is-even@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-even/-/is-even-1.0.0.tgz#76b5055fbad8d294a86b6a949015e1c97b717c06"
- integrity sha1-drUFX7rY0pSoa2qUkBXhyXtxfAY=
- dependencies:
- is-odd "^0.1.2"
-
is-extendable@^0.1.0, is-extendable@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
@@ -6620,13 +5928,6 @@ is-number-object@^1.0.4:
resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.5.tgz#6edfaeed7950cff19afedce9fbfca9ee6dd289eb"
integrity sha512-RU0lI/n95pMoUKu9v1BZP5MBcZuNSVJkMkAG2dJqC4z2GlkGUNeH68SuHuBKBD/XFe+LHZ+f9BKkLET60Niedw==
-is-number@^2.0.2:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f"
- integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=
- dependencies:
- kind-of "^3.0.2"
-
is-number@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195"
@@ -6634,11 +5935,6 @@ is-number@^3.0.0:
dependencies:
kind-of "^3.0.2"
-is-number@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff"
- integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==
-
is-number@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
@@ -6654,13 +5950,6 @@ is-object@^1.0.1:
resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.2.tgz#a56552e1c665c9e950b4a025461da87e72f86fcf"
integrity sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==
-is-odd@^0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-0.1.2.tgz#bc573b5ce371ef2aad6e6f49799b72bef13978a7"
- integrity sha1-vFc7XONx7yqtbm9JeZtyvvE5eKc=
- dependencies:
- is-number "^3.0.0"
-
is-path-inside@^3.0.1:
version "3.0.3"
resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283"
@@ -6696,13 +5985,6 @@ is-retry-allowed@^1.1.0:
resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4"
integrity sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==
-is-self-closing@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/is-self-closing/-/is-self-closing-1.0.1.tgz#5f406b527c7b12610176320338af0fa3896416e4"
- integrity sha512-E+60FomW7Blv5GXTlYee2KDrnG6srxF7Xt1SjrhWUGUEsTFIqY/nq2y3DaftCsgUMdh89V07IVfhY9KIJhLezg==
- dependencies:
- self-closing-tags "^1.0.1"
-
is-stream@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
@@ -6776,11 +6058,6 @@ isexe@^2.0.0:
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=
-isobject@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/isobject/-/isobject-0.2.0.tgz#a3432192f39b910b5f02cc989487836ec70aa85e"
- integrity sha1-o0MhkvObkQtfAsyYlIeDbscKqF4=
-
isobject@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
@@ -7794,22 +7071,6 @@ jsonschema@1.4.0:
resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.4.0.tgz#1afa34c4bc22190d8e42271ec17ac8b3404f87b2"
integrity sha512-/YgW6pRMr6M7C+4o8kS+B/2myEpHCrxO4PEWnqJNBFMjn7EWXqlQ4tGwL6xTHeRplwuZmcAncdvfOad1nT2yMw==
-jsonwebtoken@^8.2.0, jsonwebtoken@^8.5.1:
- version "8.5.1"
- resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d"
- integrity sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==
- dependencies:
- jws "^3.2.2"
- lodash.includes "^4.3.0"
- lodash.isboolean "^3.0.3"
- lodash.isinteger "^4.0.4"
- lodash.isnumber "^3.0.3"
- lodash.isplainobject "^4.0.6"
- lodash.isstring "^4.0.1"
- lodash.once "^4.0.0"
- ms "^2.1.1"
- semver "^5.6.0"
-
jsprim@^1.2.2:
version "1.4.1"
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
@@ -7849,7 +7110,7 @@ jwa@^1.4.1:
ecdsa-sig-formatter "1.0.11"
safe-buffer "^5.0.1"
-jws@3.x.x, jws@^3.0.0, jws@^3.1.4, jws@^3.2.2:
+jws@3.x.x:
version "3.2.2"
resolved "https://registry.yarnpkg.com/jws/-/jws-3.2.2.tgz#001099f3639468c9414000e99995fa52fb478304"
integrity sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==
@@ -7876,7 +7137,7 @@ keyv@^3.0.0:
dependencies:
json-buffer "3.0.0"
-kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.1.0, kind-of@^3.2.0:
+kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
version "3.2.2"
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=
@@ -7890,7 +7151,7 @@ kind-of@^4.0.0:
dependencies:
is-buffer "^1.1.5"
-kind-of@^5.0.0, kind-of@^5.0.2:
+kind-of@^5.0.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d"
integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==
@@ -7974,13 +7235,6 @@ koa-is-json@^1.0.0:
resolved "https://registry.yarnpkg.com/koa-is-json/-/koa-is-json-1.0.0.tgz#273c07edcdcb8df6a2c1ab7d59ee76491451ec14"
integrity sha1-JzwH7c3Ljfaiwat9We52SRRR7BQ=
-koa-passport@^4.1.4:
- version "4.1.4"
- resolved "https://registry.yarnpkg.com/koa-passport/-/koa-passport-4.1.4.tgz#5f1665c1c2a37ace79af9f970b770885ca30ccfa"
- integrity sha512-dJBCkl4X+zdYxbI2V2OtoGy0PUenpvp2ZLLWObc8UJhsId0iQpTFT8RVcuA0709AL2txGwRHnSPoT1bYNGa6Kg==
- dependencies:
- passport "^0.4.0"
-
koa-pino-logger@3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/koa-pino-logger/-/koa-pino-logger-3.0.0.tgz#27600b4f3639e8767dfc6b66493109c5457f53ba"
@@ -8062,13 +7316,6 @@ latest-version@^5.0.0:
dependencies:
package-json "^6.3.0"
-lazy-cache@^2.0.1:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-2.0.2.tgz#b9190a4f913354694840859f8a8f7084d8822264"
- integrity sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=
- dependencies:
- set-getter "^0.1.0"
-
lcid@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf"
@@ -8269,11 +7516,6 @@ locate-path@^5.0.0:
dependencies:
p-locate "^4.1.0"
-lodash._reinterpolate@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
- integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=
-
lodash.debounce@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
@@ -8289,41 +7531,11 @@ lodash.flatten@^4.4.0:
resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f"
integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=
-lodash.includes@^4.3.0:
- version "4.3.0"
- resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
- integrity sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=
-
-lodash.isboolean@^3.0.3:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6"
- integrity sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=
-
lodash.isequal@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA=
-lodash.isinteger@^4.0.4:
- version "4.0.4"
- resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343"
- integrity sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=
-
-lodash.isnumber@^3.0.3:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc"
- integrity sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=
-
-lodash.isplainobject@^4.0.6:
- version "4.0.6"
- resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"
- integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=
-
-lodash.isstring@^4.0.1:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
- integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=
-
lodash.keys@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-4.2.0.tgz#a08602ac12e4fb83f91fc1fb7a360a4d9ba35205"
@@ -8334,21 +7546,11 @@ lodash.merge@^4.6.2:
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
-lodash.noop@^3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/lodash.noop/-/lodash.noop-3.0.1.tgz#38188f4d650a3a474258439b96ec45b32617133c"
- integrity sha1-OBiPTWUKOkdCWEObluxFsyYXEzw=
-
lodash.omit@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.omit/-/lodash.omit-4.5.0.tgz#6eb19ae5a1ee1dd9df0b969e66ce0b7fa30b5e60"
integrity sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=
-lodash.once@^4.0.0:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac"
- integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=
-
lodash.pick@^4.0.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3"
@@ -8359,21 +7561,6 @@ lodash.sortby@^4.7.0:
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=
-lodash.template@^4.4.0:
- version "4.5.0"
- resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab"
- integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==
- dependencies:
- lodash._reinterpolate "^3.0.0"
- lodash.templatesettings "^4.0.0"
-
-lodash.templatesettings@^4.0.0:
- version "4.2.0"
- resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33"
- integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==
- dependencies:
- lodash._reinterpolate "^3.0.0"
-
lodash.without@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.without/-/lodash.without-4.4.0.tgz#3cd4574a00b67bae373a94b748772640507b7aac"
@@ -8384,40 +7571,11 @@ lodash.xor@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.xor/-/lodash.xor-4.5.0.tgz#4d48ed7e98095b0632582ba714d3ff8ae8fb1db6"
integrity sha1-TUjtfpgJWwYyWCunFNP/iuj7HbY=
-lodash@4.17.21, lodash@4.x, lodash@^4.14.0, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.3, lodash@^4.7.0:
+lodash@4.17.21, lodash@4.x, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.19, lodash@^4.17.21, lodash@^4.17.3, lodash@^4.7.0:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
-log-ok@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/log-ok/-/log-ok-0.1.1.tgz#bea3dd36acd0b8a7240d78736b5b97c65444a334"
- integrity sha1-vqPdNqzQuKckDXhza1uXxlREozQ=
- dependencies:
- ansi-green "^0.1.1"
- success-symbol "^0.1.0"
-
-log-utils@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/log-utils/-/log-utils-0.2.1.tgz#a4c217a0dd9a50515d9b920206091ab3d4e031cf"
- integrity sha1-pMIXoN2aUFFdm5ICBgkas9TgMc8=
- dependencies:
- ansi-colors "^0.2.0"
- error-symbol "^0.1.0"
- info-symbol "^0.1.0"
- log-ok "^0.1.1"
- success-symbol "^0.1.0"
- time-stamp "^1.0.1"
- warning-symbol "^0.1.0"
-
-logging-helpers@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/logging-helpers/-/logging-helpers-1.0.0.tgz#b5a37b32ad53eb0137c58c7898a47b175ddb7c36"
- integrity sha512-qyIh2goLt1sOgQQrrIWuwkRjUx4NUcEqEGAcYqD8VOnOC6ItwkrVE8/tA4smGpjzyp4Svhc6RodDp9IO5ghpyA==
- dependencies:
- isobject "^3.0.0"
- log-utils "^0.2.1"
-
loose-envify@^1.0.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
@@ -8658,11 +7816,6 @@ mixin-deep@^1.2.0:
for-in "^1.0.2"
is-extendable "^1.0.1"
-mkdirp-classic@^0.5.2:
- version "0.5.3"
- resolved "https://registry.yarnpkg.com/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz#fa10c9115cc6d8865be221ba47ee9bed78601113"
- integrity sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==
-
mkdirp@1.x, mkdirp@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
@@ -8682,7 +7835,7 @@ moment-timezone@^0.5.31:
dependencies:
moment ">= 2.9.0"
-"moment@>= 2.9.0", moment@^2.18.1:
+"moment@>= 2.9.0":
version "2.29.1"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==
@@ -8776,11 +7929,6 @@ nan@^2.12.1:
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19"
integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==
-nanoid@^2.1.0:
- version "2.1.11"
- resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-2.1.11.tgz#ec24b8a758d591561531b4176a01e3ab4f0f0280"
- integrity sha512-s/snB+WGm6uwi0WjsZdaVcuf3KJXlfGl2LcxgwkEwJF0D/BWzVWAZW/XY4bFaiR7s0Jk3FPvlnepg1H1b1UwlA==
-
nanomatch@^1.2.9:
version "1.2.13"
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
@@ -8828,11 +7976,6 @@ negotiator@0.6.2:
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb"
integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==
-neo-async@^2.6.0:
- version "2.6.2"
- resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
- integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
-
nice-try@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
@@ -8853,11 +7996,6 @@ node-fetch@^2.6.1:
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
-node-forge@^0.7.1:
- version "0.7.6"
- resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.7.6.tgz#fdf3b418aee1f94f0ef642cd63486c77ca9724ac"
- integrity sha512-sol30LUpz1jQFBjOKwbjxijiE3b6pjd74YwfD0fJOKPjF+fONKb2Yg8rYgS6+bK6VDl+/wfr4IYpC7jDzLUIfw==
-
node-gyp-build@~4.1.0:
version "4.1.1"
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.1.1.tgz#d7270b5d86717068d114cc57fff352f96d745feb"
@@ -8969,11 +8107,6 @@ oauth-sign@~0.9.0:
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==
-oauth@0.9.x:
- version "0.9.15"
- resolved "https://registry.yarnpkg.com/oauth/-/oauth-0.9.15.tgz#bd1fefaf686c96b75475aed5196412ff60cfb9c1"
- integrity sha1-vR/vr2hslrdUda7VGWQS/2DPucE=
-
object-assign@^2.0.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-2.1.1.tgz#43c36e5d569ff8e4816c4efa8be02d26967c18aa"
@@ -9271,84 +8404,6 @@ pascalcase@^0.1.1:
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=
-passport-google-auth@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/passport-google-auth/-/passport-google-auth-1.0.2.tgz#8b300b5aa442ef433de1d832ed3112877d0b2938"
- integrity sha1-izALWqRC70M94dgy7TESh30LKTg=
- dependencies:
- googleapis "^16.0.0"
- passport-strategy "1.x"
-
-passport-google-oauth1@1.x.x:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/passport-google-oauth1/-/passport-google-oauth1-1.0.0.tgz#af74a803df51ec646f66a44d82282be6f108e0cc"
- integrity sha1-r3SoA99R7GRvZqRNgigr5vEI4Mw=
- dependencies:
- passport-oauth1 "1.x.x"
-
-passport-google-oauth20@2.x.x:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/passport-google-oauth20/-/passport-google-oauth20-2.0.0.tgz#0d241b2d21ebd3dc7f2b60669ec4d587e3a674ef"
- integrity sha512-KSk6IJ15RoxuGq7D1UKK/8qKhNfzbLeLrG3gkLZ7p4A6DBCcv7xpyQwuXtWdpyR0+E0mwkpjY1VfPOhxQrKzdQ==
- dependencies:
- passport-oauth2 "1.x.x"
-
-passport-google-oauth@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/passport-google-oauth/-/passport-google-oauth-2.0.0.tgz#f6eb4bc96dd6c16ec0ecfdf4e05ec48ca54d4dae"
- integrity sha512-JKxZpBx6wBQXX1/a1s7VmdBgwOugohH+IxCy84aPTZNq/iIPX6u7Mqov1zY7MKRz3niFPol0KJz8zPLBoHKtYA==
- dependencies:
- passport-google-oauth1 "1.x.x"
- passport-google-oauth20 "2.x.x"
-
-passport-jwt@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/passport-jwt/-/passport-jwt-4.0.0.tgz#7f0be7ba942e28b9f5d22c2ebbb8ce96ef7cf065"
- integrity sha512-BwC0n2GP/1hMVjR4QpnvqA61TxenUMlmfNjYNgK0ZAs0HK4SOQkHcSv4L328blNTLtHq7DbmvyNJiH+bn6C5Mg==
- dependencies:
- jsonwebtoken "^8.2.0"
- passport-strategy "^1.0.0"
-
-passport-local@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/passport-local/-/passport-local-1.0.0.tgz#1fe63268c92e75606626437e3b906662c15ba6ee"
- integrity sha1-H+YyaMkudWBmJkN+O5BmYsFbpu4=
- dependencies:
- passport-strategy "1.x.x"
-
-passport-oauth1@1.x.x:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/passport-oauth1/-/passport-oauth1-1.1.0.tgz#a7de988a211f9cf4687377130ea74df32730c918"
- integrity sha1-p96YiiEfnPRoc3cTDqdN8ycwyRg=
- dependencies:
- oauth "0.9.x"
- passport-strategy "1.x.x"
- utils-merge "1.x.x"
-
-passport-oauth2@1.x.x:
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/passport-oauth2/-/passport-oauth2-1.5.0.tgz#64babbb54ac46a4dcab35e7f266ed5294e3c4108"
- integrity sha512-kqBt6vR/5VlCK8iCx1/KpY42kQ+NEHZwsSyt4Y6STiNjU+wWICG1i8ucc1FapXDGO15C5O5VZz7+7vRzrDPXXQ==
- dependencies:
- base64url "3.x.x"
- oauth "0.9.x"
- passport-strategy "1.x.x"
- uid2 "0.0.x"
- utils-merge "1.x.x"
-
-passport-strategy@1.x, passport-strategy@1.x.x, passport-strategy@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/passport-strategy/-/passport-strategy-1.0.0.tgz#b5539aa8fc225a3d1ad179476ddf236b440f52e4"
- integrity sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ=
-
-passport@^0.4.0:
- version "0.4.1"
- resolved "https://registry.yarnpkg.com/passport/-/passport-0.4.1.tgz#941446a21cb92fc688d97a0861c38ce9f738f270"
- integrity sha512-IxXgZZs8d7uFSt3eqNjM9NQ3g3uQCW5avD8mRNoXV99Yig50vjuaez6dQK2qC0kVWPRTujxY0dWgGfT09adjYg==
- dependencies:
- passport-strategy "1.x.x"
- pause "0.0.1"
-
path-exists@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
@@ -9403,11 +8458,6 @@ path-type@^4.0.0:
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
-pause@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/pause/-/pause-0.0.1.tgz#1d408b3fdb76923b9543d96fb4c9dfd535d9cb5d"
- integrity sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10=
-
pend@~1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
@@ -10110,7 +9160,7 @@ readable-stream@1.1.14, readable-stream@^1.0.27-1:
isarray "0.0.1"
string_decoder "~0.10.x"
-"readable-stream@2 || 3", readable-stream@^3.0.0, readable-stream@^3.0.1, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0:
+"readable-stream@2 || 3", readable-stream@^3.0.0, readable-stream@^3.0.1, readable-stream@^3.4.0, readable-stream@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==
@@ -10244,16 +9294,6 @@ regex-not@^1.0.0, regex-not@^1.0.2:
extend-shallow "^3.0.2"
safe-regex "^1.1.0"
-regexparam@2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/regexparam/-/regexparam-2.0.0.tgz#059476767d5f5f87f735fc7922d133fd1a118c8c"
- integrity sha512-gJKwd2MVPWHAIFLsaYDZfyKzHNS4o7E/v8YmNf44vmeV2e4YfVoDToTOKTvE7ab68cRJ++kLuEXJBaEeJVt5ow==
-
-regexparam@^1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/regexparam/-/regexparam-1.3.0.tgz#2fe42c93e32a40eff6235d635e0ffa344b92965f"
- integrity sha512-6IQpFBv6e5vz1QAqI+V4k8P2e/3gRrqfCJ9FI+O1FLQTO+Uz6RXZEZOPmTJ6hlGj7gkERzY5BRCv09whKP96/g==
-
regexpp@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f"
@@ -10297,21 +9337,6 @@ regjsparser@^0.6.4:
dependencies:
jsesc "~0.5.0"
-relative@^3.0.2:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/relative/-/relative-3.0.2.tgz#0dcd8ec54a5d35a3c15e104503d65375b5a5367f"
- integrity sha1-Dc2OxUpdNaPBXhBFA9ZTdbWlNn8=
- dependencies:
- isobject "^2.0.0"
-
-remarkable@^1.6.2, remarkable@^1.7.1:
- version "1.7.4"
- resolved "https://registry.yarnpkg.com/remarkable/-/remarkable-1.7.4.tgz#19073cb960398c87a7d6546eaa5e50d2022fcd00"
- integrity sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==
- dependencies:
- argparse "^1.0.10"
- autolinker "~0.28.0"
-
remove-trailing-separator@^1.0.1:
version "1.1.0"
resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
@@ -10343,7 +9368,7 @@ request-promise-native@^1.0.5:
stealthy-require "^1.1.1"
tough-cookie "^2.3.3"
-"request@>= 2.52.0", request@^2.72.0, request@^2.74.0, request@^2.87.0:
+"request@>= 2.52.0", request@^2.87.0:
version "2.88.2"
resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3"
integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==
@@ -10535,11 +9560,6 @@ sane@^4.0.3:
minimist "^1.1.1"
walker "~1.0.5"
-sanitize-s3-objectkey@^0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/sanitize-s3-objectkey/-/sanitize-s3-objectkey-0.0.1.tgz#efa9887cd45275b40234fb4bb12fc5754fe64e7e"
- integrity sha512-ZTk7aqLxy4sD40GWcYWoLfbe05XLmkKvh6vGKe13ADlei24xlezcvjgKy1qRArlaIbIMYaqK7PCalvZtulZlaQ==
-
saslprep@^1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/saslprep/-/saslprep-1.0.3.tgz#4c02f946b56cf54297e347ba1093e7acac4cf226"
@@ -10576,11 +9596,6 @@ seek-bzip@^1.0.5:
dependencies:
commander "^2.8.1"
-self-closing-tags@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/self-closing-tags/-/self-closing-tags-1.0.1.tgz#6c5fa497994bb826b484216916371accee490a5d"
- integrity sha512-7t6hNbYMxM+VHXTgJmxwgZgLGktuXtVVD5AivWzNTdJBM4DBjnDKDzkf2SrNjihaArpeJYNjxkELBu1evI4lQA==
-
semver-diff@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b"
@@ -10649,13 +9664,6 @@ set-blocking@^2.0.0:
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
-set-getter@^0.1.0:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/set-getter/-/set-getter-0.1.1.tgz#a3110e1b461d31a9cfc8c5c9ee2e9737ad447102"
- integrity sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==
- dependencies:
- to-object-path "^0.3.0"
-
set-value@^2.0.0, set-value@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b"
@@ -10721,13 +9729,6 @@ shell-path@^2.1.0:
dependencies:
shell-env "^0.3.0"
-shortid@^2.2.15:
- version "2.2.16"
- resolved "https://registry.yarnpkg.com/shortid/-/shortid-2.2.16.tgz#b742b8f0cb96406fd391c76bfc18a67a57fe5608"
- integrity sha512-Ugt+GIZqvGXCIItnsL+lvFJOiN7RYqlGy7QE41O3YC1xbNSeDGIRO7xg2JJXIAj1cAGnOeC1r7/T9pgrtQbv4g==
- dependencies:
- nanoid "^2.1.0"
-
side-channel@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
@@ -11027,11 +10028,6 @@ string-length@^4.0.1:
char-regex "^1.0.2"
strip-ansi "^6.0.0"
-string-template@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/string-template/-/string-template-1.0.0.tgz#9e9f2233dc00f218718ec379a28a5673ecca8b96"
- integrity sha1-np8iM9wA8hhxjsN5oopWc+zKi5Y=
-
string-width@^3.0.0, string-width@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961"
@@ -11157,11 +10153,6 @@ strip-outer@^1.0.0:
dependencies:
escape-string-regexp "^1.0.2"
-striptags@^3.1.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/striptags/-/striptags-3.2.0.tgz#cc74a137db2de8b0b9a370006334161f7dd67052"
- integrity sha512-g45ZOGzHDMe2bdYMdIvdAfCQkCTDMGBazSw1ypMowwGIee7ZQ5dU0rBJ8Jqgl+jAKIv4dbeE1jscZq9wid1Tkw==
-
sublevel-pouchdb@7.2.2:
version "7.2.2"
resolved "https://registry.yarnpkg.com/sublevel-pouchdb/-/sublevel-pouchdb-7.2.2.tgz#49e46cd37883bf7ff5006d7c5b9bcc7bcc1f422f"
@@ -11172,11 +10163,6 @@ sublevel-pouchdb@7.2.2:
ltgt "2.2.1"
readable-stream "1.1.14"
-success-symbol@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/success-symbol/-/success-symbol-0.1.0.tgz#24022e486f3bf1cdca094283b769c472d3b72897"
- integrity sha1-JAIuSG878c3KCUKDt2nEctO3KJc=
-
superagent@^3.8.3:
version "3.8.3"
resolved "https://registry.yarnpkg.com/superagent/-/superagent-3.8.3.tgz#460ea0dbdb7d5b11bc4f78deba565f86a178e128"
@@ -11237,92 +10223,11 @@ supports-hyperlinks@^2.0.0:
has-flag "^4.0.0"
supports-color "^7.0.0"
-svelte-apexcharts@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/svelte-apexcharts/-/svelte-apexcharts-1.0.2.tgz#4e000f8b8f7c901c05658c845457dfc8314d54c1"
- integrity sha512-6qlx4rE+XsonZ0FZudfwqOQ34Pq+3wpxgAD75zgEmGoYhYBJcwmikTuTf3o8ZBsZue9U/pAwhNy3ed1Bkq1gmA==
- dependencies:
- apexcharts "^3.19.2"
-
-svelte-flatpickr@^3.1.0:
- version "3.1.1"
- resolved "https://registry.yarnpkg.com/svelte-flatpickr/-/svelte-flatpickr-3.1.1.tgz#c79da72a4acab252ed39bac8168f30f79db3ff80"
- integrity sha512-z/sV/AMTqyybeWPCjoWYUOyuMmu9qX2c2f2cRqYos9K9sM5L3CqagtvfVy7GZQrnEYe+K7l/gGDCAyxJNp2+gA==
- dependencies:
- flatpickr "^4.5.2"
-
-svelte-portal@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/svelte-portal/-/svelte-portal-1.0.0.tgz#36a47c5578b1a4d9b4dc60fa32a904640ec4cdd3"
- integrity sha512-nHf+DS/jZ6jjnZSleBMSaZua9JlG5rZv9lOGKgJuaZStfevtjIlUJrkLc3vbV8QdBvPPVmvcjTlazAzfKu0v3Q==
-
-svelte-spa-router@^3.0.5:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/svelte-spa-router/-/svelte-spa-router-3.2.0.tgz#fae3311d292451236cb57131262406cf312b15ee"
- integrity sha512-igemo5Vs82TGBBw+DjWt6qKameXYzNs6aDXcTxou5XbEvOjiRcAM6MLkdVRCatn6u8r42dE99bt/br7T4qe/AQ==
- dependencies:
- regexparam "2.0.0"
-
svelte@^3.38.2:
version "3.38.2"
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.38.2.tgz#55e5c681f793ae349b5cc2fe58e5782af4275ef5"
integrity sha512-q5Dq0/QHh4BLJyEVWGe7Cej5NWs040LWjMbicBGZ+3qpFWJ1YObRmUDZKbbovddLC9WW7THTj3kYbTOFmU9fbg==
-svg.draggable.js@^2.2.2:
- version "2.2.2"
- resolved "https://registry.yarnpkg.com/svg.draggable.js/-/svg.draggable.js-2.2.2.tgz#c514a2f1405efb6f0263e7958f5b68fce50603ba"
- integrity sha512-JzNHBc2fLQMzYCZ90KZHN2ohXL0BQJGQimK1kGk6AvSeibuKcIdDX9Kr0dT9+UJ5O8nYA0RB839Lhvk4CY4MZw==
- dependencies:
- svg.js "^2.0.1"
-
-svg.easing.js@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/svg.easing.js/-/svg.easing.js-2.0.0.tgz#8aa9946b0a8e27857a5c40a10eba4091e5691f12"
- integrity sha1-iqmUawqOJ4V6XEChDrpAkeVpHxI=
- dependencies:
- svg.js ">=2.3.x"
-
-svg.filter.js@^2.0.2:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/svg.filter.js/-/svg.filter.js-2.0.2.tgz#91008e151389dd9230779fcbe6e2c9a362d1c203"
- integrity sha1-kQCOFROJ3ZIwd5/L5uLJo2LRwgM=
- dependencies:
- svg.js "^2.2.5"
-
-svg.js@>=2.3.x, svg.js@^2.0.1, svg.js@^2.2.5, svg.js@^2.4.0, svg.js@^2.6.5:
- version "2.7.1"
- resolved "https://registry.yarnpkg.com/svg.js/-/svg.js-2.7.1.tgz#eb977ed4737001eab859949b4a398ee1bb79948d"
- integrity sha512-ycbxpizEQktk3FYvn/8BH+6/EuWXg7ZpQREJvgacqn46gIddG24tNNe4Son6omdXCnSOaApnpZw6MPCBA1dODA==
-
-svg.pathmorphing.js@^0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/svg.pathmorphing.js/-/svg.pathmorphing.js-0.1.3.tgz#c25718a1cc7c36e852ecabc380e758ac09bb2b65"
- integrity sha512-49HWI9X4XQR/JG1qXkSDV8xViuTLIWm/B/7YuQELV5KMOPtXjiwH4XPJvr/ghEDibmLQ9Oc22dpWpG0vUDDNww==
- dependencies:
- svg.js "^2.4.0"
-
-svg.resize.js@^1.4.3:
- version "1.4.3"
- resolved "https://registry.yarnpkg.com/svg.resize.js/-/svg.resize.js-1.4.3.tgz#885abd248e0cd205b36b973c4b578b9a36f23332"
- integrity sha512-9k5sXJuPKp+mVzXNvxz7U0uC9oVMQrrf7cFsETznzUDDm0x8+77dtZkWdMfRlmbkEEYvUn9btKuZ3n41oNA+uw==
- dependencies:
- svg.js "^2.6.5"
- svg.select.js "^2.1.2"
-
-svg.select.js@^2.1.2:
- version "2.1.2"
- resolved "https://registry.yarnpkg.com/svg.select.js/-/svg.select.js-2.1.2.tgz#e41ce13b1acff43a7441f9f8be87a2319c87be73"
- integrity sha512-tH6ABEyJsAOVAhwcCjF8mw4crjXSI1aa7j2VQR8ZuJ37H2MBUbyeqYr5nEO7sSN3cy9AR9DUwNg0t/962HlDbQ==
- dependencies:
- svg.js "^2.2.5"
-
-svg.select.js@^3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/svg.select.js/-/svg.select.js-3.0.1.tgz#a4198e359f3825739226415f82176a90ea5cc917"
- integrity sha512-h5IS/hKkuVCbKSieR9uQCj9w+zLHoPh+ce19bBYyqF53g6mnPB8sAtIbe1s9dh2S2fCmYX2xel1Ln3PJBbK4kw==
- dependencies:
- svg.js "^2.6.5"
-
symbol-tree@^3.2.2, symbol-tree@^3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
@@ -11338,16 +10243,6 @@ table@^5.2.3:
slice-ansi "^2.1.0"
string-width "^3.0.0"
-tar-fs@^2.1.1:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-2.1.1.tgz#489a15ab85f1f0befabb370b7de4f9eb5cbe8784"
- integrity sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==
- dependencies:
- chownr "^1.1.1"
- mkdirp-classic "^0.5.2"
- pump "^3.0.0"
- tar-stream "^2.1.4"
-
tar-stream@^1.5.2:
version "1.6.2"
resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555"
@@ -11361,17 +10256,6 @@ tar-stream@^1.5.2:
to-buffer "^1.1.1"
xtend "^4.0.0"
-tar-stream@^2.1.4:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287"
- integrity sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==
- dependencies:
- bl "^4.0.3"
- end-of-stream "^1.4.1"
- fs-constants "^1.0.0"
- inherits "^2.0.3"
- readable-stream "^3.1.1"
-
tarn@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/tarn/-/tarn-1.1.5.tgz#7be88622e951738b9fa3fb77477309242cdddc2d"
@@ -11501,11 +10385,6 @@ tildify@2.0.0:
resolved "https://registry.yarnpkg.com/tildify/-/tildify-2.0.0.tgz#f205f3674d677ce698b7067a99e949ce03b4754a"
integrity sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==
-time-stamp@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3"
- integrity sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=
-
timed-out@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f"
@@ -11548,11 +10427,6 @@ to-fast-properties@^2.0.0:
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=
-to-gfm-code-block@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/to-gfm-code-block/-/to-gfm-code-block-0.1.1.tgz#25d045a5fae553189e9637b590900da732d8aa82"
- integrity sha1-JdBFpfrlUxielje1kJANpzLYqoI=
-
to-json-schema@0.2.5:
version "0.2.5"
resolved "https://registry.yarnpkg.com/to-json-schema/-/to-json-schema-0.2.5.tgz#ef3c3f11ad64460dcfbdbafd0fd525d69d62a98f"
@@ -11755,28 +10629,11 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"
-typeof-article@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/typeof-article/-/typeof-article-0.1.1.tgz#9f07e733c3fbb646ffa9e61c08debacd460e06af"
- integrity sha1-nwfnM8P7tkb/qeYcCN66zUYOBq8=
- dependencies:
- kind-of "^3.1.0"
-
typescript@^4.3.4:
version "4.3.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.4.tgz#3f85b986945bcf31071decdd96cf8bfa65f9dcbc"
integrity sha512-uauPG7XZn9F/mo+7MrsRjyvbxFpzemRjKEZXS4AK83oP2KKOJPvb+9cO/gmnv8arWZvhnjVOXz7B49m1l0e9Ew==
-uglify-js@^3.1.4:
- version "3.13.9"
- resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.13.9.tgz#4d8d21dcd497f29cfd8e9378b9df123ad025999b"
- integrity sha512-wZbyTQ1w6Y7fHdt8sJnHfSIuWeDgk6B5rCb4E/AM6QNNPbOMIZph21PW5dRB3h7Df0GszN+t7RuUH6sWK5bF0g==
-
-uid2@0.0.x:
- version "0.0.3"
- resolved "https://registry.yarnpkg.com/uid2/-/uid2-0.0.3.tgz#483126e11774df2f71b8b639dcd799c376162b82"
- integrity sha1-SDEm4Rd03y9xuLY53NeZw3YWK4I=
-
unbox-primitive@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz#085e215625ec3162574dc8859abee78a59b14471"
@@ -11963,7 +10820,7 @@ util.promisify@^1.0.0, util.promisify@^1.0.1:
has-symbols "^1.0.1"
object.getownpropertydescriptors "^2.1.1"
-utils-merge@1.0.1, utils-merge@1.x.x:
+utils-merge@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=
@@ -11988,7 +10845,7 @@ uuid@^3.1.0, uuid@^3.2.1, uuid@^3.3.2:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
-uuid@^8.3.0, uuid@^8.3.2:
+uuid@^8.3.0:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
@@ -12060,11 +10917,6 @@ walker@^1.0.7, walker@~1.0.5:
dependencies:
makeerror "1.0.x"
-warning-symbol@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/warning-symbol/-/warning-symbol-0.1.0.tgz#bb31dd11b7a0f9d67ab2ed95f457b65825bbad21"
- integrity sha1-uzHdEbeg+dZ6su2V9Fe2WCW7rSE=
-
webidl-conversions@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
@@ -12161,11 +11013,6 @@ word-wrap@~1.2.3:
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
-wordwrap@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
- integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=
-
worker-farm@1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.7.0.tgz#26a94c5391bbca926152002f69b84a4bf772e5a8"
@@ -12409,11 +11256,6 @@ yauzl@^2.4.2:
buffer-crc32 "~0.2.3"
fd-slicer "~1.1.0"
-year@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/year/-/year-0.2.1.tgz#4083ae520a318b23ec86037f3000cb892bdf9bb0"
- integrity sha1-QIOuUgoxiyPshgN/MADLiSvfm7A=
-
ylru@^1.2.0:
version "1.2.1"
resolved "https://registry.yarnpkg.com/ylru/-/ylru-1.2.1.tgz#f576b63341547989c1de7ba288760923b27fe84f"
@@ -12424,7 +11266,7 @@ yn@3.1.1:
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
-zlib@1.0.5, zlib@^1.0.5:
+zlib@1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/zlib/-/zlib-1.0.5.tgz#6e7c972fc371c645a6afb03ab14769def114fcc0"
integrity sha1-bnyXL8NxxkWmr7A6sUdp3vEU/MA=
diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json
index 1fb470dfc3..ec32a5879d 100644
--- a/packages/standard-components/manifest.json
+++ b/packages/standard-components/manifest.json
@@ -1,4 +1,8 @@
{
+ "features": {
+ "spectrumThemes": true,
+ "intelligentLoading": true
+ },
"layout": {
"name": "Layout",
"description": "This component is specific only to layouts",
@@ -230,7 +234,8 @@
"screenslot": {
"name": "Screenslot",
"icon": "WebPage",
- "description": "Contains your app screens"
+ "description": "Contains your app screens",
+ "editable": false
},
"button": {
"name": "Button",
@@ -290,6 +295,11 @@
],
"defaultValue": "M"
},
+ {
+ "type": "boolean",
+ "label": "Quiet",
+ "key": "quiet"
+ },
{
"type": "boolean",
"label": "Disabled",
@@ -448,6 +458,7 @@
}
},
"stackedlist": {
+ "deprecated": true,
"name": "Stacked List",
"icon": "TaskList",
"description": "A basic card component that can contain content and actions.",
@@ -811,30 +822,29 @@
"type": "select",
"label": "Size",
"key": "size",
- "defaultValue": "md",
+ "defaultValue": "ri-1x",
"options": [
- { "value": "ri-xxs", "label": "xxs" },
- { "value": "ri-xs", "label": "xs" },
- { "value": "ri-sm", "label": "sm" },
- { "value": "ri-1x", "label": "md" },
- { "value": "ri-lg", "label": "lg" },
- { "value": "ri-xl", "label": "xl" },
- { "value": "ri-2x", "label": "2x" },
- { "value": "ri-3x", "label": "3x" },
- { "value": "ri-4x", "label": "4x" },
- { "value": "ri-5x", "label": "5x" },
- { "value": "ri-6x", "label": "6x" },
- { "value": "ri-7x", "label": "7x" },
- { "value": "ri-8x", "label": "8x" },
- { "value": "ri-9x", "label": "9x" },
- { "value": "ri-10x", "label": "10x" }
+ { "value": "ri-xxs", "label": "XXS" },
+ { "value": "ri-xs", "label": "XS" },
+ { "value": "ri-sm", "label": "Small" },
+ { "value": "ri-1x", "label": "Medium" },
+ { "value": "ri-lg", "label": "Large" },
+ { "value": "ri-xl", "label": "XL" },
+ { "value": "ri-2x", "label": "2XL" },
+ { "value": "ri-3x", "label": "3XL" },
+ { "value": "ri-4x", "label": "4XL" },
+ { "value": "ri-5x", "label": "5XL" },
+ { "value": "ri-6x", "label": "6XL" },
+ { "value": "ri-7x", "label": "7XL" },
+ { "value": "ri-8x", "label": "8XL" },
+ { "value": "ri-9x", "label": "9XL" },
+ { "value": "ri-10x", "label": "10XL" }
]
},
{
"type": "color",
"label": "Color",
- "key": "color",
- "defaultValue": "#000"
+ "key": "color"
},
{
"type": "event",
@@ -844,6 +854,7 @@
]
},
"navigation": {
+ "deprecated": true,
"name": "Nav Bar",
"description": "A component for handling the navigation within your app.",
"icon": "BreadcrumbNavigation",
@@ -876,7 +887,7 @@
"key": "text"
},
{
- "type": "text",
+ "type": "url",
"label": "URL",
"key": "url",
"placeholder": "/screen"
@@ -1638,6 +1649,7 @@
"actions": [
"ValidateForm"
],
+ "styles": ["size"],
"settings": [
{
"type": "select",
@@ -1651,46 +1663,6 @@
"label": "Schema",
"key": "dataSource"
},
- {
- "type": "select",
- "label": "Theme",
- "key": "theme",
- "defaultValue": "spectrum--light",
- "options": [
- {
- "label": "Lightest",
- "value": "spectrum--lightest"
- },
- {
- "label": "Light",
- "value": "spectrum--light"
- },
- {
- "label": "Dark",
- "value": "spectrum--dark"
- },
- {
- "label": "Darkest",
- "value": "spectrum--darkest"
- }
- ]
- },
- {
- "type": "select",
- "label": "Size",
- "key": "size",
- "defaultValue": "spectrum--medium",
- "options": [
- {
- "label": "Medium",
- "value": "spectrum--medium"
- },
- {
- "label": "Large",
- "value": "spectrum--large"
- }
- ]
- },
{
"type": "boolean",
"label": "Disabled",
@@ -2067,46 +2039,6 @@
"key": "rowCount",
"defaultValue": 8
},
- {
- "type": "select",
- "label": "Theme",
- "key": "theme",
- "defaultValue": "spectrum--light",
- "options": [
- {
- "label": "Lightest",
- "value": "spectrum--lightest"
- },
- {
- "label": "Light",
- "value": "spectrum--light"
- },
- {
- "label": "Dark",
- "value": "spectrum--dark"
- },
- {
- "label": "Darkest",
- "value": "spectrum--darkest"
- }
- ]
- },
- {
- "type": "select",
- "label": "Size",
- "key": "size",
- "defaultValue": "spectrum--medium",
- "options": [
- {
- "label": "Medium",
- "value": "spectrum--medium"
- },
- {
- "label": "Large",
- "value": "spectrum--large"
- }
- ]
- },
{
"type": "multifield",
"label": "Columns",
@@ -2161,5 +2093,42 @@
"defaultValue": "Last 30 days"
}
]
+ },
+ "spectrumcard": {
+ "name": "Card",
+ "icon": "Card",
+ "styles": ["size"],
+ "settings": [
+ {
+ "type": "text",
+ "key": "title",
+ "label": "Title"
+ },
+ {
+ "type": "text",
+ "key": "subtitle",
+ "label": "Subtitle"
+ },
+ {
+ "type": "text",
+ "key": "description",
+ "label": "Description"
+ },
+ {
+ "type": "text",
+ "key": "imageURL",
+ "label": "Image URL"
+ },
+ {
+ "type": "url",
+ "key": "linkURL",
+ "label": "Link URL"
+ },
+ {
+ "type": "boolean",
+ "key": "horizontal",
+ "label": "Horizontal"
+ }
+ ]
}
}
diff --git a/packages/standard-components/package.json b/packages/standard-components/package.json
index b583bb666b..fce9111afa 100644
--- a/packages/standard-components/package.json
+++ b/packages/standard-components/package.json
@@ -34,8 +34,10 @@
"gitHead": "d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",
"dependencies": {
"@budibase/bbui": "^0.9.73",
+ "@spectrum-css/card": "^3.0.3",
"@spectrum-css/link": "^3.1.3",
"@spectrum-css/page": "^3.0.1",
+ "@spectrum-css/typography": "^3.0.2",
"@spectrum-css/vars": "^3.0.1",
"apexcharts": "^3.22.1",
"dayjs": "^1.10.5",
diff --git a/packages/standard-components/src/Button.svelte b/packages/standard-components/src/Button.svelte
index 3086fe95cd..22cc286bf4 100644
--- a/packages/standard-components/src/Button.svelte
+++ b/packages/standard-components/src/Button.svelte
@@ -9,10 +9,12 @@
export let onClick
export let size = "M"
export let type = "primary"
+ export let quiet = false
import { getContext } from "svelte"
+ import "@spectrum-css/typography/dist/index-vars.css"
const { styleable, builderStore } = getContext("sdk")
const component = getContext("component")
@@ -14,8 +15,10 @@
$: placeholder = $builderStore.inBuilder && !text
$: componentText = $builderStore.inBuilder
- ? text || "Placeholder text"
+ ? text || $component.name || "Placeholder text"
: text || ""
+ $: sizeClass = `spectrum-Heading--size${size || "M"}`
+ $: alignClass = `align--${align || "left"}`
// Add color styles to main styles object, otherwise the styleable helper
// overrides the color when it's passed as inline style.
@@ -41,25 +44,19 @@
class:bold
class:italic
class:underline
- class="align--{align || 'left'} size--{size || 'M'}"
+ class="spectrum-Heading {sizeClass} {alignClass}"
>
- {#if bold}
- {componentText}
- {:else}
- {componentText}
- {/if}
+ {componentText}
diff --git a/packages/standard-components/src/Layout.svelte b/packages/standard-components/src/Layout.svelte
index 19a8404699..df0bd19525 100644
--- a/packages/standard-components/src/Layout.svelte
+++ b/packages/standard-components/src/Layout.svelte
@@ -125,6 +125,7 @@
overflow: auto;
overflow-x: hidden;
position: relative;
+ background: var(--spectrum-alias-background-color-secondary);
}
.nav-wrapper {
@@ -132,9 +133,10 @@
flex-direction: row;
justify-content: center;
align-items: stretch;
- background: white;
+ background: var(--spectrum-alias-background-color-primary);
z-index: 2;
- box-shadow: 0 0 8px -1px rgba(0, 0, 0, 0.075);
+ border-bottom: 1px solid var(--spectrum-global-color-gray-300);
+ box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
}
.layout--top .nav-wrapper.sticky {
position: sticky;
@@ -312,7 +314,7 @@
transition: transform 0.26s ease-in-out, opacity 0.26s ease-in-out;
height: 100vh;
opacity: 0;
- background: white;
+ background: var(--spectrum-alias-background-color-secondary);
z-index: 999;
flex-direction: column;
justify-content: flex-start;
@@ -326,7 +328,8 @@
.links.visible {
opacity: 1;
transform: translateX(250px);
- box-shadow: 0 0 40px 20px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 80px 20px rgba(0, 0, 0, 0.2);
+ border-right: 1px solid var(--spectrum-global-color-gray-300);
}
.mobile-click-handler.visible {
position: fixed;
diff --git a/packages/standard-components/src/Link.svelte b/packages/standard-components/src/Link.svelte
index d58d75f5c5..7498311e46 100644
--- a/packages/standard-components/src/Link.svelte
+++ b/packages/standard-components/src/Link.svelte
@@ -74,12 +74,15 @@
diff --git a/packages/standard-components/src/Repeater.svelte b/packages/standard-components/src/Repeater.svelte
index b7db019c06..79f044f402 100644
--- a/packages/standard-components/src/Repeater.svelte
+++ b/packages/standard-components/src/Repeater.svelte
@@ -33,7 +33,7 @@
diff --git a/packages/standard-components/src/ScreenSlot.svelte b/packages/standard-components/src/ScreenSlot.svelte
index 724f228c71..f6c2387cf0 100644
--- a/packages/standard-components/src/ScreenSlot.svelte
+++ b/packages/standard-components/src/ScreenSlot.svelte
@@ -30,6 +30,6 @@
}
span {
font-size: var(--font-size-s);
- color: var(--grey-6);
+ color: var(--spectrum-global-color-gray-600);
}
diff --git a/packages/standard-components/src/Section.svelte b/packages/standard-components/src/Section.svelte
index 9557f43e8a..5bd3364b94 100644
--- a/packages/standard-components/src/Section.svelte
+++ b/packages/standard-components/src/Section.svelte
@@ -67,7 +67,7 @@
grid-template-columns: 1fr 1fr;
}
.placeholder {
- border: 2px dashed var(--grey-5);
+ border: 2px dashed var(--spectrum-global-color-gray-600);
padding: var(--spacing-l);
}
diff --git a/packages/standard-components/src/SpectrumCard.svelte b/packages/standard-components/src/SpectrumCard.svelte
new file mode 100644
index 0000000000..5a2596bd2e
--- /dev/null
+++ b/packages/standard-components/src/SpectrumCard.svelte
@@ -0,0 +1,119 @@
+
+
+
+ {#if imageURL}
+
+ {/if}
+
+
+
+ {#if subtitle}
+
+ {/if}
+
+ {#if description}
+
+ {/if}
+
+
+
+
diff --git a/packages/standard-components/src/Text.svelte b/packages/standard-components/src/Text.svelte
index cc962b572b..ff35eeb38e 100644
--- a/packages/standard-components/src/Text.svelte
+++ b/packages/standard-components/src/Text.svelte
@@ -14,7 +14,7 @@
$: placeholder = $builderStore.inBuilder && !text
$: componentText = $builderStore.inBuilder
- ? text || "Placeholder text"
+ ? text || $component.name || "Placeholder text"
: text || ""
// Add color styles to main styles object, otherwise the styleable helper
@@ -54,7 +54,7 @@
}
.placeholder {
font-style: italic;
- color: var(--grey-6);
+ color: var(--spectrum-global-color-gray-600);
}
.bold {
font-weight: 600;
diff --git a/packages/standard-components/src/charts/ApexChart.svelte b/packages/standard-components/src/charts/ApexChart.svelte
index 4782ecb861..173bfd8c62 100644
--- a/packages/standard-components/src/charts/ApexChart.svelte
+++ b/packages/standard-components/src/charts/ApexChart.svelte
@@ -23,6 +23,16 @@
text-transform: capitalize;
}
div :global(.apexcharts-yaxis-label, .apexcharts-xaxis-label) {
- fill: #aaa;
+ fill: var(--spectrum-global-color-gray-600);
+ }
+
+ div :global(.apexcharts-gridline) {
+ stroke: var(--spectrum-global-color-gray-600);
+ }
+ div :global(.apexcharts-legend-text) {
+ color: var(--spectrum-global-color-gray-700) !important;
+ }
+ div :global(.apexcharts-datalabel) {
+ fill: var(--spectrum-global-color-gray-800);
}
diff --git a/packages/standard-components/src/Card.svelte b/packages/standard-components/src/deprecated/Card.svelte
similarity index 100%
rename from packages/standard-components/src/Card.svelte
rename to packages/standard-components/src/deprecated/Card.svelte
diff --git a/packages/standard-components/src/CardHorizontal.svelte b/packages/standard-components/src/deprecated/CardHorizontal.svelte
similarity index 100%
rename from packages/standard-components/src/CardHorizontal.svelte
rename to packages/standard-components/src/deprecated/CardHorizontal.svelte
diff --git a/packages/standard-components/src/Navigation.svelte b/packages/standard-components/src/deprecated/Navigation.svelte
similarity index 100%
rename from packages/standard-components/src/Navigation.svelte
rename to packages/standard-components/src/deprecated/Navigation.svelte
diff --git a/packages/standard-components/src/StackedList.svelte b/packages/standard-components/src/deprecated/StackedList.svelte
similarity index 100%
rename from packages/standard-components/src/StackedList.svelte
rename to packages/standard-components/src/deprecated/StackedList.svelte
diff --git a/packages/standard-components/src/forms/InnerForm.svelte b/packages/standard-components/src/forms/InnerForm.svelte
index b2a174629b..3a63b63bdc 100644
--- a/packages/standard-components/src/forms/InnerForm.svelte
+++ b/packages/standard-components/src/forms/InnerForm.svelte
@@ -5,8 +5,6 @@
import { generateID } from "../helpers"
export let dataSource
- export let theme
- export let size
export let disabled = false
export let initialValues
@@ -160,24 +158,9 @@
{actions}
data={{ ...$formState.values, tableId: dataSource?.tableId }}
>
-
+
{#if loaded}
{/if}
-
-
diff --git a/packages/standard-components/src/index.js b/packages/standard-components/src/index.js
index 2a2c763d21..a137c8c3dc 100644
--- a/packages/standard-components/src/index.js
+++ b/packages/standard-components/src/index.js
@@ -20,20 +20,23 @@ export { default as dataprovider } from "./DataProvider.svelte"
export { default as screenslot } from "./ScreenSlot.svelte"
export { default as button } from "./Button.svelte"
export { default as repeater } from "./Repeater.svelte"
-export { default as stackedlist } from "./StackedList.svelte"
-export { default as card } from "./Card.svelte"
export { default as text } from "./Text.svelte"
-export { default as navigation } from "./Navigation.svelte"
export { default as layout } from "./Layout.svelte"
export { default as link } from "./Link.svelte"
export { default as heading } from "./Heading.svelte"
export { default as image } from "./Image.svelte"
export { default as embed } from "./Embed.svelte"
-export { default as cardhorizontal } from "./CardHorizontal.svelte"
-export { default as cardstat } from "./CardStat.svelte"
export { default as icon } from "./Icon.svelte"
export { default as backgroundimage } from "./BackgroundImage.svelte"
export { default as daterangepicker } from "./DateRangePicker.svelte"
+export { default as cardstat } from "./CardStat.svelte"
+export { default as spectrumcard } from "./SpectrumCard.svelte"
export * from "./charts"
export * from "./forms"
export * from "./table"
+
+// Deprecated component left for compatibility in old apps
+export { default as navigation } from "./deprecated/Navigation.svelte"
+export { default as cardhorizontal } from "./deprecated/CardHorizontal.svelte"
+export { default as stackedlist } from "./deprecated/StackedList.svelte"
+export { default as card } from "./deprecated/Card.svelte"
diff --git a/packages/standard-components/src/table/Table.svelte b/packages/standard-components/src/table/Table.svelte
index ad3fb46d5d..3620146ced 100644
--- a/packages/standard-components/src/table/Table.svelte
+++ b/packages/standard-components/src/table/Table.svelte
@@ -3,8 +3,6 @@
import { Table } from "@budibase/bbui"
import SlotRenderer from "./SlotRenderer.svelte"
- export let theme
- export let size
export let dataProvider
export let columns
export let showAutoColumns
@@ -73,12 +71,7 @@
}
-
+
{
return passport.authenticate("local", async (err, user) => {
- authInternal(ctx, user, err)
+ await authInternal(ctx, user, err)
delete user.token
@@ -123,7 +124,7 @@ exports.googleAuth = async (ctx, next) => {
strategy,
{ successRedirect: "/", failureRedirect: "/error" },
async (err, user) => {
- authInternal(ctx, user, err)
+ await authInternal(ctx, user, err)
ctx.redirect("/")
}
diff --git a/packages/worker/src/api/controllers/admin/sessions.js b/packages/worker/src/api/controllers/admin/sessions.js
new file mode 100644
index 0000000000..170e97d690
--- /dev/null
+++ b/packages/worker/src/api/controllers/admin/sessions.js
@@ -0,0 +1,37 @@
+const {
+ getAllSessions,
+ getUserSessions,
+ invalidateSessions,
+} = require("@budibase/auth/sessions")
+
+exports.fetch = async ctx => {
+ ctx.body = await getAllSessions()
+}
+
+exports.find = async ctx => {
+ const { userId } = ctx.params
+ const sessions = await getUserSessions(userId)
+ ctx.body = sessions.map(session => session.value)
+}
+
+exports.invalidateUser = async ctx => {
+ const { userId } = ctx.params
+ await invalidateSessions(userId)
+ ctx.body = {
+ message: "User sessions invalidated",
+ }
+}
+
+exports.selfSessions = async ctx => {
+ const userId = ctx.user._id
+ ctx.body = await getUserSessions(userId)
+}
+
+exports.invalidateSession = async ctx => {
+ const userId = ctx.user._id
+ const { sessionId } = ctx.params
+ await invalidateSessions(userId, sessionId)
+ ctx.body = {
+ message: "Session invalidated successfully.",
+ }
+}
diff --git a/packages/worker/src/api/controllers/admin/users.js b/packages/worker/src/api/controllers/admin/users.js
index dbe34d7ded..f524379266 100644
--- a/packages/worker/src/api/controllers/admin/users.js
+++ b/packages/worker/src/api/controllers/admin/users.js
@@ -5,6 +5,8 @@ const { hash, getGlobalUserByEmail } = require("@budibase/auth").utils
const { UserStatus, EmailTemplatePurpose } = require("../../../constants")
const { checkInviteCode } = require("../../../utilities/redis")
const { sendEmail } = require("../../../utilities/email")
+const { user: userCache } = require("@budibase/auth/cache")
+const { invalidateSessions } = require("@budibase/auth/sessions")
const GLOBAL_DB = StaticDatabases.GLOBAL.name
@@ -62,6 +64,7 @@ exports.save = async ctx => {
password: hashedPassword,
...user,
})
+ await userCache.invalidateUser(response.id)
ctx.body = {
_id: response.id,
_rev: response.rev,
@@ -107,6 +110,8 @@ exports.destroy = async ctx => {
const db = new CouchDB(GLOBAL_DB)
const dbUser = await db.get(ctx.params.id)
await db.remove(dbUser._id, dbUser._rev)
+ await userCache.invalidateUser(dbUser._id)
+ await invalidateSessions(dbUser._id)
ctx.body = {
message: `User ${ctx.params.id} deleted.`,
}
@@ -117,13 +122,16 @@ exports.removeAppRole = async ctx => {
const db = new CouchDB(GLOBAL_DB)
const users = await allUsers()
const bulk = []
+ const cacheInvalidations = []
for (let user of users) {
if (user.roles[appId]) {
+ cacheInvalidations.push(userCache.invalidateUser(user._id))
delete user.roles[appId]
bulk.push(user)
}
}
await db.bulkDocs(bulk)
+ await Promise.all(cacheInvalidations)
ctx.body = {
message: "App role removed from all users",
}
@@ -153,6 +161,7 @@ exports.updateSelf = async ctx => {
...user,
...ctx.request.body,
})
+ await userCache.invalidateUser(user._id)
ctx.body = {
_id: response.id,
_rev: response.rev,
diff --git a/packages/worker/src/api/routes/admin/sessions.js b/packages/worker/src/api/routes/admin/sessions.js
new file mode 100644
index 0000000000..9cf5f58f8b
--- /dev/null
+++ b/packages/worker/src/api/routes/admin/sessions.js
@@ -0,0 +1,14 @@
+const Router = require("@koa/router")
+const controller = require("../../controllers/admin/sessions")
+const adminOnly = require("../../../middleware/adminOnly")
+
+const router = Router()
+
+router
+ .get("/api/admin/sessions", adminOnly, controller.fetch)
+ .get("/api/admin/sessions/self", controller.selfSessions)
+ .get("/api/admin/sessions/:userId", adminOnly, controller.find)
+ .delete("/api/admin/sessions/:userId", adminOnly, controller.invalidateUser)
+ .delete("/api/admin/sessions/self/:sessionId", controller.invalidateSession)
+
+module.exports = router
diff --git a/packages/worker/src/api/routes/index.js b/packages/worker/src/api/routes/index.js
index 8b232f7b7c..21ec324880 100644
--- a/packages/worker/src/api/routes/index.js
+++ b/packages/worker/src/api/routes/index.js
@@ -5,6 +5,7 @@ const templateRoutes = require("./admin/templates")
const emailRoutes = require("./admin/email")
const authRoutes = require("./admin/auth")
const roleRoutes = require("./admin/roles")
+const sessionRoutes = require("./admin/sessions")
const appRoutes = require("./app")
exports.routes = [
@@ -15,5 +16,6 @@ exports.routes = [
appRoutes,
templateRoutes,
emailRoutes,
+ sessionRoutes,
roleRoutes,
]
diff --git a/packages/worker/src/api/routes/tests/utilities/TestConfiguration.js b/packages/worker/src/api/routes/tests/utilities/TestConfiguration.js
index 746a26c800..c205a45e38 100644
--- a/packages/worker/src/api/routes/tests/utilities/TestConfiguration.js
+++ b/packages/worker/src/api/routes/tests/utilities/TestConfiguration.js
@@ -5,6 +5,7 @@ const { jwt } = require("@budibase/auth").auth
const { Cookies } = require("@budibase/auth").constants
const { Configs, LOGO_URL } = require("../../../../constants")
const { getGlobalUserByEmail } = require("@budibase/auth").utils
+const { createASession } = require("@budibase/auth/sessions")
class TestConfiguration {
constructor(openServer = true) {
@@ -56,6 +57,7 @@ class TestConfiguration {
null,
controllers.users.save
)
+ await createASession("us_uuid1", "sessionid")
}
}
@@ -69,6 +71,7 @@ class TestConfiguration {
const user = {
_id: "us_uuid1",
userId: "us_uuid1",
+ sessionId: "sessionid",
}
const authToken = jwt.sign(user, env.JWT_SECRET)
return {
diff --git a/packages/worker/src/utilities/redis.js b/packages/worker/src/utilities/redis.js
index 0701e500dd..6e55795de1 100644
--- a/packages/worker/src/utilities/redis.js
+++ b/packages/worker/src/utilities/redis.js
@@ -44,7 +44,7 @@ async function getACode(db, code, deleteCode = true) {
exports.init = async () => {
pwResetClient = await new Client(utils.Databases.PW_RESETS).init()
- invitationClient = await new Client(utils.Databases.PW_RESETS).init()
+ invitationClient = await new Client(utils.Databases.INVITATIONS).init()
}
/**