package changes
This commit is contained in:
parent
4748ce0ed5
commit
a6f6e75215
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "budibase-core",
|
||||
"name": "@budibase/core",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "budibase-core.umd.js",
|
||||
|
|
|
@ -37,7 +37,7 @@ export default {
|
|||
{
|
||||
file: 'dist/budibase-core.umd.js',
|
||||
format: 'umd',
|
||||
name: "budibase-core",
|
||||
name: "@budibase/core",
|
||||
sourcemap: 'inline',
|
||||
globals
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {eventsList} from "budibase-core";
|
||||
import {eventsList} from "@budibase/core";
|
||||
import {filter,union,has,map} from "lodash/fp";
|
||||
import records from "./records";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {getAppApis, getTemplateApi, setupDatastore} from "budibase-core";
|
||||
import {getAppApis, getTemplateApi, setupDatastore} from "@budibase/core";
|
||||
import {action} from "./helpers";
|
||||
|
||||
const addField = templateApi => type => (record, name) => {
|
||||
|
|
|
@ -2,7 +2,7 @@ const { tmpdir } = require("os");
|
|||
const { join } = require("path");
|
||||
const uuid = require("uuid/v1");
|
||||
const { take, takeRight, last } = require("lodash/fp");
|
||||
const { splitKey, $, joinKey } = require("budibase-core").common;
|
||||
const { splitKey, $, joinKey } = require("@budibase/core").common;
|
||||
const { unzipTarGzPackageToRuntime } = require("../../utilities/targzAppPackage");
|
||||
const { getRuntimePackageDirectory } = require("../../utilities/runtimePackages");
|
||||
const { pathExists } = require("fs-extra");
|
||||
|
|
|
@ -2,7 +2,7 @@ const {
|
|||
initialiseData,
|
||||
setupDatastore,
|
||||
common
|
||||
} = require("budibase-core");
|
||||
} = require("@budibase/core");
|
||||
const getDatabaseManager = require("../utilities/databaseManager");
|
||||
const { applictionVersionPackage } = require("../utilities/createAppPackage");
|
||||
const { last } = require("lodash/fp");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const {initialiseData, setupDatastore} = require("budibase-core");
|
||||
const {initialiseData, setupDatastore} = require("@budibase/core");
|
||||
const constructHierarchy = require("../utilities/constructHierarchy");
|
||||
const getDatabaseManager = require("../utilities/databaseManager");
|
||||
const {getApisForUser, getApisWithFullAccess} = require("../utilities/budibaseApi");
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const statusCodes = require("../utilities/statusCodes");
|
||||
const constructHierarchy = require("../utilities/constructHierarchy");
|
||||
const { readFile } = require("fs-extra");
|
||||
const { hierarchy } = require("budibase-core");
|
||||
const { hierarchy } = require("@budibase/core");
|
||||
const { take } = require("lodash/fp");
|
||||
const masterAppDefinition = constructHierarchy(
|
||||
require("../appPackages/master/appDefinition.json"));
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const statusCodes = require("../utilities/statusCodes");
|
||||
const constructHierarchy = require("../utilities/constructHierarchy");
|
||||
const { readFile } = require("fs-extra");
|
||||
const {getRecordApi, getAuthApi} = require("budibase-core");
|
||||
const {getRecordApi, getAuthApi} = require("@budibase/core");
|
||||
const masterAppDefinition = constructHierarchy(
|
||||
require("../appPackages/master/appDefinition.json"));
|
||||
const {getApisWithFullAccess} = require("../utilities/budibaseApi");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const crypto = require("../nodeCrypto");
|
||||
const {getAppApis, getTemplateApi} = require("budibase-core");
|
||||
const {getAppApis, getTemplateApi} = require("@budibase/core");
|
||||
const getDatastore = require("./datastore");
|
||||
const { masterAppPackage } = require("../utilities/createAppPackage");
|
||||
const getDatabaseManager = require("../utilities/databaseManager");
|
||||
|
|
|
@ -16,7 +16,7 @@ const {
|
|||
join,
|
||||
dirname
|
||||
} = require("path");
|
||||
const { $ } = require("budibase-core").common;
|
||||
const { $ } = require("@budibase/core").common;
|
||||
const {
|
||||
keyBy
|
||||
} = require("lodash/fp");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const {getTemplateApi} = require("budibase-core");
|
||||
const {getTemplateApi} = require("@budibase/core");
|
||||
const templateApi = getTemplateApi({});
|
||||
module.exports = (appDefinition) => {
|
||||
appDefinition.hierarchy = templateApi.constructHierarchy(appDefinition.hierarchy);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const { resolve, join } = require("path");
|
||||
const constructHierarchy = require("./constructHierarchy");
|
||||
const { common } = require("budibase-core");
|
||||
const { common } = require("@budibase/core");
|
||||
const { getRuntimePackageDirectory } = require("../utilities/runtimePackages");
|
||||
const injectPlugins = require("./injectedPlugins");
|
||||
const { cwd } = require("process");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const {common, getAppApis} = require("budibase-core");
|
||||
const {common, getAppApis} = require("@budibase/core");
|
||||
const {getDatabaseManager} = require("./databaseManager");
|
||||
|
||||
module.exports = async (productSetId, productId, versionId) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const {getDatabaseManager} = require("budibase-core");
|
||||
const {getDatabaseManager} = require("@budibase/core");
|
||||
|
||||
module.exports = (datastoreModule, datastoreConfig) =>
|
||||
getDatabaseManager(datastoreModule.databaseManager(datastoreConfig));
|
||||
|
|
|
@ -5,7 +5,7 @@ const {
|
|||
} = require("./budibaseApi");
|
||||
const getDatastore = require("./datastore");
|
||||
const getDatabaseManager = require("./databaseManager");
|
||||
const {$, splitKey} = require("budibase-core").common;
|
||||
const {$, splitKey} = require("@budibase/core").common;
|
||||
const { keyBy, last, filter } = require("lodash/fp");
|
||||
const {
|
||||
masterAppPackage,
|
||||
|
|
Loading…
Reference in New Issue