package changes

This commit is contained in:
Michael Shanks 2019-09-10 06:14:45 +01:00
parent 4748ce0ed5
commit a6f6e75215
16 changed files with 16 additions and 16 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "budibase-core", "name": "@budibase/core",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "budibase-core.umd.js", "main": "budibase-core.umd.js",

View File

@ -37,7 +37,7 @@ export default {
{ {
file: 'dist/budibase-core.umd.js', file: 'dist/budibase-core.umd.js',
format: 'umd', format: 'umd',
name: "budibase-core", name: "@budibase/core",
sourcemap: 'inline', sourcemap: 'inline',
globals globals
} }

View File

@ -1,4 +1,4 @@
import {eventsList} from "budibase-core"; import {eventsList} from "@budibase/core";
import {filter,union,has,map} from "lodash/fp"; import {filter,union,has,map} from "lodash/fp";
import records from "./records"; import records from "./records";

View File

@ -1,4 +1,4 @@
import {getAppApis, getTemplateApi, setupDatastore} from "budibase-core"; import {getAppApis, getTemplateApi, setupDatastore} from "@budibase/core";
import {action} from "./helpers"; import {action} from "./helpers";
const addField = templateApi => type => (record, name) => { const addField = templateApi => type => (record, name) => {

View File

@ -2,7 +2,7 @@ const { tmpdir } = require("os");
const { join } = require("path"); const { join } = require("path");
const uuid = require("uuid/v1"); const uuid = require("uuid/v1");
const { take, takeRight, last } = require("lodash/fp"); 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 { unzipTarGzPackageToRuntime } = require("../../utilities/targzAppPackage");
const { getRuntimePackageDirectory } = require("../../utilities/runtimePackages"); const { getRuntimePackageDirectory } = require("../../utilities/runtimePackages");
const { pathExists } = require("fs-extra"); const { pathExists } = require("fs-extra");

View File

@ -2,7 +2,7 @@ const {
initialiseData, initialiseData,
setupDatastore, setupDatastore,
common common
} = require("budibase-core"); } = require("@budibase/core");
const getDatabaseManager = require("../utilities/databaseManager"); const getDatabaseManager = require("../utilities/databaseManager");
const { applictionVersionPackage } = require("../utilities/createAppPackage"); const { applictionVersionPackage } = require("../utilities/createAppPackage");
const { last } = require("lodash/fp"); const { last } = require("lodash/fp");

View File

@ -1,4 +1,4 @@
const {initialiseData, setupDatastore} = require("budibase-core"); const {initialiseData, setupDatastore} = require("@budibase/core");
const constructHierarchy = require("../utilities/constructHierarchy"); const constructHierarchy = require("../utilities/constructHierarchy");
const getDatabaseManager = require("../utilities/databaseManager"); const getDatabaseManager = require("../utilities/databaseManager");
const {getApisForUser, getApisWithFullAccess} = require("../utilities/budibaseApi"); const {getApisForUser, getApisWithFullAccess} = require("../utilities/budibaseApi");

View File

@ -1,7 +1,7 @@
const statusCodes = require("../utilities/statusCodes"); const statusCodes = require("../utilities/statusCodes");
const constructHierarchy = require("../utilities/constructHierarchy"); const constructHierarchy = require("../utilities/constructHierarchy");
const { readFile } = require("fs-extra"); const { readFile } = require("fs-extra");
const { hierarchy } = require("budibase-core"); const { hierarchy } = require("@budibase/core");
const { take } = require("lodash/fp"); const { take } = require("lodash/fp");
const masterAppDefinition = constructHierarchy( const masterAppDefinition = constructHierarchy(
require("../appPackages/master/appDefinition.json")); require("../appPackages/master/appDefinition.json"));

View File

@ -1,7 +1,7 @@
const statusCodes = require("../utilities/statusCodes"); const statusCodes = require("../utilities/statusCodes");
const constructHierarchy = require("../utilities/constructHierarchy"); const constructHierarchy = require("../utilities/constructHierarchy");
const { readFile } = require("fs-extra"); const { readFile } = require("fs-extra");
const {getRecordApi, getAuthApi} = require("budibase-core"); const {getRecordApi, getAuthApi} = require("@budibase/core");
const masterAppDefinition = constructHierarchy( const masterAppDefinition = constructHierarchy(
require("../appPackages/master/appDefinition.json")); require("../appPackages/master/appDefinition.json"));
const {getApisWithFullAccess} = require("../utilities/budibaseApi"); const {getApisWithFullAccess} = require("../utilities/budibaseApi");

View File

@ -1,5 +1,5 @@
const crypto = require("../nodeCrypto"); const crypto = require("../nodeCrypto");
const {getAppApis, getTemplateApi} = require("budibase-core"); const {getAppApis, getTemplateApi} = require("@budibase/core");
const getDatastore = require("./datastore"); const getDatastore = require("./datastore");
const { masterAppPackage } = require("../utilities/createAppPackage"); const { masterAppPackage } = require("../utilities/createAppPackage");
const getDatabaseManager = require("../utilities/databaseManager"); const getDatabaseManager = require("../utilities/databaseManager");

View File

@ -16,7 +16,7 @@ const {
join, join,
dirname dirname
} = require("path"); } = require("path");
const { $ } = require("budibase-core").common; const { $ } = require("@budibase/core").common;
const { const {
keyBy keyBy
} = require("lodash/fp"); } = require("lodash/fp");

View File

@ -1,4 +1,4 @@
const {getTemplateApi} = require("budibase-core"); const {getTemplateApi} = require("@budibase/core");
const templateApi = getTemplateApi({}); const templateApi = getTemplateApi({});
module.exports = (appDefinition) => { module.exports = (appDefinition) => {
appDefinition.hierarchy = templateApi.constructHierarchy(appDefinition.hierarchy); appDefinition.hierarchy = templateApi.constructHierarchy(appDefinition.hierarchy);

View File

@ -1,6 +1,6 @@
const { resolve, join } = require("path"); const { resolve, join } = require("path");
const constructHierarchy = require("./constructHierarchy"); const constructHierarchy = require("./constructHierarchy");
const { common } = require("budibase-core"); const { common } = require("@budibase/core");
const { getRuntimePackageDirectory } = require("../utilities/runtimePackages"); const { getRuntimePackageDirectory } = require("../utilities/runtimePackages");
const injectPlugins = require("./injectedPlugins"); const injectPlugins = require("./injectedPlugins");
const { cwd } = require("process"); const { cwd } = require("process");

View File

@ -1,4 +1,4 @@
const {common, getAppApis} = require("budibase-core"); const {common, getAppApis} = require("@budibase/core");
const {getDatabaseManager} = require("./databaseManager"); const {getDatabaseManager} = require("./databaseManager");
module.exports = async (productSetId, productId, versionId) => { module.exports = async (productSetId, productId, versionId) => {

View File

@ -1,4 +1,4 @@
const {getDatabaseManager} = require("budibase-core"); const {getDatabaseManager} = require("@budibase/core");
module.exports = (datastoreModule, datastoreConfig) => module.exports = (datastoreModule, datastoreConfig) =>
getDatabaseManager(datastoreModule.databaseManager(datastoreConfig)); getDatabaseManager(datastoreModule.databaseManager(datastoreConfig));

View File

@ -5,7 +5,7 @@ const {
} = require("./budibaseApi"); } = require("./budibaseApi");
const getDatastore = require("./datastore"); const getDatastore = require("./datastore");
const getDatabaseManager = require("./databaseManager"); const getDatabaseManager = require("./databaseManager");
const {$, splitKey} = require("budibase-core").common; const {$, splitKey} = require("@budibase/core").common;
const { keyBy, last, filter } = require("lodash/fp"); const { keyBy, last, filter } = require("lodash/fp");
const { const {
masterAppPackage, masterAppPackage,