mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-23 14:39:32 +08:00
Merge pull request #310 from lowdefy/cli-remove-keytar
fix(cli): Remove keytar and telemetry machineId.
This commit is contained in:
commit
b407a1fe52
169
.pnp.js
generated
169
.pnp.js
generated
@ -3830,7 +3830,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["inquirer", "npm:7.3.3"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["keytar", "npm:7.2.0"],
|
||||
["opener", "npm:1.5.2"],
|
||||
["ora", "npm:5.1.0"],
|
||||
["react", "npm:17.0.1"],
|
||||
@ -10667,14 +10666,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}],
|
||||
["npm:4.2.1", {
|
||||
"packageLocation": "./.yarn/cache/decompress-response-npm-4.2.1-abe5b4ebe4-d854171a10.zip/node_modules/decompress-response/",
|
||||
"packageDependencies": [
|
||||
["decompress-response", "npm:4.2.1"],
|
||||
["mimic-response", "npm:2.1.0"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}],
|
||||
["npm:6.0.0", {
|
||||
"packageLocation": "./.yarn/cache/decompress-response-npm-6.0.0-359de2878c-bb8b8c42be.zip/node_modules/decompress-response/",
|
||||
"packageDependencies": [
|
||||
@ -10957,15 +10948,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["detect-libc", [
|
||||
["npm:1.0.3", {
|
||||
"packageLocation": "./.yarn/cache/detect-libc-npm-1.0.3-c30ac344d4-6cec442139.zip/node_modules/detect-libc/",
|
||||
"packageDependencies": [
|
||||
["detect-libc", "npm:1.0.3"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["detect-newline", [
|
||||
["npm:3.1.0", {
|
||||
"packageLocation": "./.yarn/cache/detect-newline-npm-3.1.0-6d33fa8d37-6d3f67971d.zip/node_modules/detect-newline/",
|
||||
@ -12232,15 +12214,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["expand-template", [
|
||||
["npm:2.0.3", {
|
||||
"packageLocation": "./.yarn/cache/expand-template-npm-2.0.3-80de959306-d1c08a374a.zip/node_modules/expand-template/",
|
||||
"packageDependencies": [
|
||||
["expand-template", "npm:2.0.3"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["expect", [
|
||||
["npm:26.6.2", {
|
||||
"packageLocation": "./.yarn/cache/expect-npm-26.6.2-256ea90344-a4ec4cbafa.zip/node_modules/expect/",
|
||||
@ -13214,15 +13187,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["github-from-package", [
|
||||
["npm:0.0.0", {
|
||||
"packageLocation": "./.yarn/cache/github-from-package-npm-0.0.0-519f80c9a1-9c3bae6015.zip/node_modules/github-from-package/",
|
||||
"packageDependencies": [
|
||||
["github-from-package", "npm:0.0.0"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["glob", [
|
||||
["npm:7.1.6", {
|
||||
"packageLocation": "./.yarn/cache/glob-npm-7.1.6-1ce3a5189a-789977b524.zip/node_modules/glob/",
|
||||
@ -16246,18 +16210,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["keytar", [
|
||||
["npm:7.2.0", {
|
||||
"packageLocation": "./.yarn/unplugged/keytar-npm-7.2.0-798c402511/node_modules/keytar/",
|
||||
"packageDependencies": [
|
||||
["keytar", "npm:7.2.0"],
|
||||
["node-addon-api", "npm:3.0.2"],
|
||||
["node-gyp", "npm:7.1.2"],
|
||||
["prebuild-install", "npm:6.0.0"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["keyv", [
|
||||
["npm:3.1.0", {
|
||||
"packageLocation": "./.yarn/cache/keyv-npm-3.1.0-81c9ff4454-6bf032ee50.zip/node_modules/keyv/",
|
||||
@ -17464,13 +17416,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}],
|
||||
["npm:2.1.0", {
|
||||
"packageLocation": "./.yarn/cache/mimic-response-npm-2.1.0-037463e454-9c206f3aeb.zip/node_modules/mimic-response/",
|
||||
"packageDependencies": [
|
||||
["mimic-response", "npm:2.1.0"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}],
|
||||
["npm:3.1.0", {
|
||||
"packageLocation": "./.yarn/cache/mimic-response-npm-3.1.0-a4a24b4e96-cfbf19f66d.zip/node_modules/mimic-response/",
|
||||
"packageDependencies": [
|
||||
@ -17703,15 +17648,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["mkdirp-classic", [
|
||||
["npm:0.5.3", {
|
||||
"packageLocation": "./.yarn/cache/mkdirp-classic-npm-0.5.3-3b5c991910-b3c46c6284.zip/node_modules/mkdirp-classic/",
|
||||
"packageDependencies": [
|
||||
["mkdirp-classic", "npm:0.5.3"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["mkdirp-promise", [
|
||||
["npm:5.0.1", {
|
||||
"packageLocation": "./.yarn/cache/mkdirp-promise-npm-5.0.1-b9705bf08a-6960dee61a.zip/node_modules/mkdirp-promise/",
|
||||
@ -17969,15 +17905,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["napi-build-utils", [
|
||||
["npm:1.0.2", {
|
||||
"packageLocation": "./.yarn/cache/napi-build-utils-npm-1.0.2-892e4bba56-e4dfbec94d.zip/node_modules/napi-build-utils/",
|
||||
"packageDependencies": [
|
||||
["napi-build-utils", "npm:1.0.2"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["native-request", [
|
||||
["npm:1.0.8", {
|
||||
"packageLocation": "./.yarn/cache/native-request-npm-1.0.8-0ae6c1b99f-bbb5ec150f.zip/node_modules/native-request/",
|
||||
@ -18063,26 +17990,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["node-abi", [
|
||||
["npm:2.19.3", {
|
||||
"packageLocation": "./.yarn/cache/node-abi-npm-2.19.3-5c68bfd438-503acaa092.zip/node_modules/node-abi/",
|
||||
"packageDependencies": [
|
||||
["node-abi", "npm:2.19.3"],
|
||||
["semver", "npm:5.7.1"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["node-addon-api", [
|
||||
["npm:3.0.2", {
|
||||
"packageLocation": "./.yarn/unplugged/node-addon-api-npm-3.0.2-4c22ea0673/node_modules/node-addon-api/",
|
||||
"packageDependencies": [
|
||||
["node-addon-api", "npm:3.0.2"],
|
||||
["node-gyp", "npm:7.1.2"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["node-fetch", [
|
||||
["npm:2.6.1", {
|
||||
"packageLocation": "./.yarn/cache/node-fetch-npm-2.6.1-46c670dbc1-cbb171635e.zip/node_modules/node-fetch/",
|
||||
@ -18222,15 +18129,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["noop-logger", [
|
||||
["npm:0.1.1", {
|
||||
"packageLocation": "./.yarn/cache/noop-logger-npm-0.1.1-c88441172d-353d31cd08.zip/node_modules/noop-logger/",
|
||||
"packageDependencies": [
|
||||
["noop-logger", "npm:0.1.1"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["nopt", [
|
||||
["npm:1.0.10", {
|
||||
"packageLocation": "./.yarn/cache/nopt-npm-1.0.10-f3db192976-fb74743e70.zip/node_modules/nopt/",
|
||||
@ -19581,30 +19479,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["prebuild-install", [
|
||||
["npm:6.0.0", {
|
||||
"packageLocation": "./.yarn/cache/prebuild-install-npm-6.0.0-8724bcb090-02db5ebaf2.zip/node_modules/prebuild-install/",
|
||||
"packageDependencies": [
|
||||
["prebuild-install", "npm:6.0.0"],
|
||||
["detect-libc", "npm:1.0.3"],
|
||||
["expand-template", "npm:2.0.3"],
|
||||
["github-from-package", "npm:0.0.0"],
|
||||
["minimist", "npm:1.2.5"],
|
||||
["mkdirp-classic", "npm:0.5.3"],
|
||||
["napi-build-utils", "npm:1.0.2"],
|
||||
["node-abi", "npm:2.19.3"],
|
||||
["noop-logger", "npm:0.1.1"],
|
||||
["npmlog", "npm:4.1.2"],
|
||||
["pump", "npm:3.0.0"],
|
||||
["rc", "npm:1.2.8"],
|
||||
["simple-get", "npm:3.1.0"],
|
||||
["tar-fs", "npm:2.1.1"],
|
||||
["tunnel-agent", "npm:0.6.0"],
|
||||
["which-pm-runs", "npm:1.0.0"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["prelude-ls", [
|
||||
["npm:1.1.2", {
|
||||
"packageLocation": "./.yarn/cache/prelude-ls-npm-1.1.2-a0daac0886-189c969c92.zip/node_modules/prelude-ls/",
|
||||
@ -22532,27 +22406,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["simple-concat", [
|
||||
["npm:1.0.1", {
|
||||
"packageLocation": "./.yarn/cache/simple-concat-npm-1.0.1-48df70de29-4623960448.zip/node_modules/simple-concat/",
|
||||
"packageDependencies": [
|
||||
["simple-concat", "npm:1.0.1"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["simple-get", [
|
||||
["npm:3.1.0", {
|
||||
"packageLocation": "./.yarn/cache/simple-get-npm-3.1.0-8c6f03c4cd-f56f08765e.zip/node_modules/simple-get/",
|
||||
"packageDependencies": [
|
||||
["simple-get", "npm:3.1.0"],
|
||||
["decompress-response", "npm:4.2.1"],
|
||||
["once", "npm:1.4.0"],
|
||||
["simple-concat", "npm:1.0.1"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["sisteransi", [
|
||||
["npm:1.0.5", {
|
||||
"packageLocation": "./.yarn/cache/sisteransi-npm-1.0.5-af60cc0cfa-6554debe10.zip/node_modules/sisteransi/",
|
||||
@ -23650,19 +23503,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["tar-fs", [
|
||||
["npm:2.1.1", {
|
||||
"packageLocation": "./.yarn/cache/tar-fs-npm-2.1.1-e374d3b7a2-4739382487.zip/node_modules/tar-fs/",
|
||||
"packageDependencies": [
|
||||
["tar-fs", "npm:2.1.1"],
|
||||
["chownr", "npm:1.1.4"],
|
||||
["mkdirp-classic", "npm:0.5.3"],
|
||||
["pump", "npm:3.0.0"],
|
||||
["tar-stream", "npm:2.1.4"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["tar-stream", [
|
||||
["npm:1.6.2", {
|
||||
"packageLocation": "./.yarn/cache/tar-stream-npm-1.6.2-f4a7fc08e2-56405b15d9.zip/node_modules/tar-stream/",
|
||||
@ -26850,15 +26690,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["which-pm-runs", [
|
||||
["npm:1.0.0", {
|
||||
"packageLocation": "./.yarn/cache/which-pm-runs-npm-1.0.0-c3252bc9d6-0bb79a782e.zip/node_modules/which-pm-runs/",
|
||||
"packageDependencies": [
|
||||
["which-pm-runs", "npm:1.0.0"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["wide-align", [
|
||||
["npm:1.1.3", {
|
||||
"packageLocation": "./.yarn/cache/wide-align-npm-1.1.3-48c7d4953c-4f850f84da.zip/node_modules/wide-align/",
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -57,7 +57,6 @@
|
||||
"graphql": "15.4.0",
|
||||
"inquirer": "7.3.3",
|
||||
"js-yaml": "3.14.1",
|
||||
"keytar": "7.2.0",
|
||||
"opener": "1.5.2",
|
||||
"ora": "5.1.0",
|
||||
"reload": "3.1.1",
|
||||
|
@ -20,7 +20,6 @@ import { cacheDirectoryPath, outputDirectoryPath } from '../directories';
|
||||
async function mockStartUp(options = {}) {
|
||||
const context = {
|
||||
cliVersion: 'cliVersion',
|
||||
machineId: 'machineId',
|
||||
appId: 'appId',
|
||||
disableTelemetry: false,
|
||||
lowdefyVersion: 'lowdefyVersion',
|
||||
|
@ -1,33 +0,0 @@
|
||||
/*
|
||||
Copyright 2020 Lowdefy, Inc
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import keytar from 'keytar';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
async function getMachineId() {
|
||||
try {
|
||||
let machineId = await keytar.getPassword('com.lowdefy.cli', 'machineId');
|
||||
if (!machineId) {
|
||||
machineId = uuid();
|
||||
await keytar.setPassword('com.lowdefy.cli', 'machineId', machineId);
|
||||
}
|
||||
return machineId;
|
||||
} catch (error) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
export default getMachineId;
|
@ -1,56 +0,0 @@
|
||||
/*
|
||||
Copyright 2020 Lowdefy, Inc
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
|
||||
import path from 'path';
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import keytar from 'keytar';
|
||||
import getMachineId from './getMachineId';
|
||||
|
||||
jest.mock('keytar', () => {
|
||||
const getPassword = jest.fn();
|
||||
const setPassword = jest.fn();
|
||||
return {
|
||||
getPassword,
|
||||
setPassword,
|
||||
};
|
||||
});
|
||||
|
||||
jest.mock('uuid', () => ({
|
||||
v4: () => 'uuidv4',
|
||||
}));
|
||||
|
||||
test('getMachineId, no id exists', async () => {
|
||||
keytar.getPassword.mockImplementation(() => {
|
||||
return null;
|
||||
});
|
||||
const res = await getMachineId();
|
||||
expect(res).toEqual('uuidv4');
|
||||
expect(keytar.setPassword.mock.calls).toEqual([['com.lowdefy.cli', 'machineId', 'uuidv4']]);
|
||||
});
|
||||
|
||||
test('getMachineId, id exists', async () => {
|
||||
keytar.getPassword.mockImplementation((service, account) => {
|
||||
if (service === 'com.lowdefy.cli' && account === 'machineId') {
|
||||
return 'machineId';
|
||||
}
|
||||
});
|
||||
const res = await getMachineId();
|
||||
expect(res).toEqual('machineId');
|
||||
expect(keytar.setPassword.mock.calls).toEqual([]);
|
||||
});
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import axios from 'axios';
|
||||
function getSendTelemetry({ appId, cliVersion, disableTelemetry, lowdefyVersion, machineId }) {
|
||||
function getSendTelemetry({ appId, cliVersion, disableTelemetry, lowdefyVersion }) {
|
||||
if (disableTelemetry) {
|
||||
return () => {};
|
||||
}
|
||||
@ -32,7 +32,6 @@ function getSendTelemetry({ appId, cliVersion, disableTelemetry, lowdefyVersion,
|
||||
appId,
|
||||
cliVersion,
|
||||
lowdefyVersion,
|
||||
machineId,
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
|
@ -24,7 +24,6 @@ jest.mock('axios', () => ({
|
||||
const appId = 'appId';
|
||||
const cliVersion = 'cliVersion';
|
||||
const lowdefyVersion = 'lowdefyVersion';
|
||||
const machineId = 'machineId';
|
||||
|
||||
test('disable telemetry', async () => {
|
||||
const sendTelemetry = getSendTelemetry({
|
||||
@ -32,7 +31,6 @@ test('disable telemetry', async () => {
|
||||
cliVersion,
|
||||
disableTelemetry: true,
|
||||
lowdefyVersion,
|
||||
machineId,
|
||||
});
|
||||
await sendTelemetry({ data: { x: 1 } });
|
||||
expect(axios.request.mock.calls).toEqual([]);
|
||||
@ -43,7 +41,6 @@ test('send telemetry', async () => {
|
||||
appId,
|
||||
cliVersion,
|
||||
lowdefyVersion,
|
||||
machineId,
|
||||
});
|
||||
await sendTelemetry({ data: { x: 1 } });
|
||||
expect(axios.request.mock.calls).toEqual([
|
||||
@ -53,7 +50,6 @@ test('send telemetry', async () => {
|
||||
appId: 'appId',
|
||||
cliVersion: 'cliVersion',
|
||||
lowdefyVersion: 'lowdefyVersion',
|
||||
machineId: 'machineId',
|
||||
x: 1,
|
||||
},
|
||||
headers: {
|
||||
@ -74,7 +70,6 @@ test('send telemetry should not throw', async () => {
|
||||
appId,
|
||||
cliVersion,
|
||||
lowdefyVersion,
|
||||
machineId,
|
||||
});
|
||||
await sendTelemetry({ data: { x: 1 } });
|
||||
expect(true).toBe(true);
|
||||
|
@ -17,7 +17,6 @@
|
||||
import path from 'path';
|
||||
import getConfig from './getConfig';
|
||||
import getSendTelemetry from './getSendTelemetry';
|
||||
import getMachineId from './getMachineId';
|
||||
import createPrint from './print';
|
||||
import { cacheDirectoryPath, outputDirectoryPath } from './directories';
|
||||
import packageJson from '../../package.json';
|
||||
@ -42,7 +41,6 @@ async function startUp(options = {}) {
|
||||
context.outputDirectory = path.resolve(context.baseDirectory, outputDirectoryPath);
|
||||
}
|
||||
const { appId, disableTelemetry, lowdefyVersion } = await getConfig(context);
|
||||
context.machineId = await getMachineId();
|
||||
context.appId = appId;
|
||||
context.disableTelemetry = disableTelemetry;
|
||||
context.lowdefyVersion = lowdefyVersion;
|
||||
|
@ -21,8 +21,6 @@ import createPrint from './print';
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import getConfig from './getConfig';
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import getMachineId from './getMachineId';
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import getSendTelemetry from './getSendTelemetry';
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import packageJson from '../../package.json';
|
||||
@ -32,7 +30,6 @@ jest.mock('./getConfig', () => async () =>
|
||||
);
|
||||
jest.mock('./print', () => () => 'print');
|
||||
jest.mock('../../package.json', () => ({ version: 'cliVersion' }));
|
||||
jest.mock('./getMachineId', () => () => 'machineId');
|
||||
jest.mock('./getSendTelemetry', () => () => 'sendTelemetry');
|
||||
|
||||
test('startUp, options undefined', async () => {
|
||||
@ -44,7 +41,6 @@ test('startUp, options undefined', async () => {
|
||||
cliVersion: 'cliVersion',
|
||||
disableTelemetry: true,
|
||||
lowdefyVersion: 'lowdefyVersion',
|
||||
machineId: 'machineId',
|
||||
outputDirectory: path.resolve(process.cwd(), './.lowdefy/build'),
|
||||
sendTelemetry: 'sendTelemetry',
|
||||
print: 'print',
|
||||
@ -60,7 +56,6 @@ test('startUp, options empty', async () => {
|
||||
cliVersion: 'cliVersion',
|
||||
disableTelemetry: true,
|
||||
lowdefyVersion: 'lowdefyVersion',
|
||||
machineId: 'machineId',
|
||||
outputDirectory: path.resolve(process.cwd(), './.lowdefy/build'),
|
||||
sendTelemetry: 'sendTelemetry',
|
||||
print: 'print',
|
||||
@ -76,7 +71,6 @@ test('startUp, options baseDirectory', async () => {
|
||||
cliVersion: 'cliVersion',
|
||||
disableTelemetry: true,
|
||||
lowdefyVersion: 'lowdefyVersion',
|
||||
machineId: 'machineId',
|
||||
outputDirectory: path.resolve(process.cwd(), 'baseDirectory/.lowdefy/build'),
|
||||
sendTelemetry: 'sendTelemetry',
|
||||
print: 'print',
|
||||
@ -92,7 +86,6 @@ test('startUp, options outputDirectory', async () => {
|
||||
cliVersion: 'cliVersion',
|
||||
disableTelemetry: true,
|
||||
lowdefyVersion: 'lowdefyVersion',
|
||||
machineId: 'machineId',
|
||||
outputDirectory: path.resolve(process.cwd(), 'outputDirectory'),
|
||||
sendTelemetry: 'sendTelemetry',
|
||||
print: 'print',
|
||||
@ -111,7 +104,6 @@ test('startUp, options baseDirectory and outputDirectory', async () => {
|
||||
cliVersion: 'cliVersion',
|
||||
disableTelemetry: true,
|
||||
lowdefyVersion: 'lowdefyVersion',
|
||||
machineId: 'machineId',
|
||||
outputDirectory: path.resolve(process.cwd(), 'outputDirectory'),
|
||||
sendTelemetry: 'sendTelemetry',
|
||||
print: 'print',
|
||||
|
160
yarn.lock
160
yarn.lock
@ -2960,7 +2960,6 @@ __metadata:
|
||||
inquirer: 7.3.3
|
||||
jest: 26.6.3
|
||||
js-yaml: 3.14.1
|
||||
keytar: 7.2.0
|
||||
opener: 1.5.2
|
||||
ora: 5.1.0
|
||||
react: 17.0.1
|
||||
@ -8002,15 +8001,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"decompress-response@npm:^4.2.0":
|
||||
version: 4.2.1
|
||||
resolution: "decompress-response@npm:4.2.1"
|
||||
dependencies:
|
||||
mimic-response: ^2.0.0
|
||||
checksum: d854171a100833d66171ffba0990fc581133cfb62befc18edd2365edc40e8a48f9f96b6156465f1a74802112b9c241c792d865f5ee27e285c2e4417a17ac6c66
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"decompress-response@npm:^6.0.0":
|
||||
version: 6.0.0
|
||||
resolution: "decompress-response@npm:6.0.0"
|
||||
@ -8273,15 +8263,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"detect-libc@npm:^1.0.3":
|
||||
version: 1.0.3
|
||||
resolution: "detect-libc@npm:1.0.3"
|
||||
bin:
|
||||
detect-libc: ./bin/detect-libc.js
|
||||
checksum: 6cec442139459ec2e8517076974b0eba42079885938683eca013c2e0b5db02ef048870725ce68e7ac8e4cf17e482f67d7322f45bbc5f203b7332817bc7833b39
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"detect-newline@npm:^3.0.0":
|
||||
version: 3.1.0
|
||||
resolution: "detect-newline@npm:3.1.0"
|
||||
@ -9417,13 +9398,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"expand-template@npm:^2.0.3":
|
||||
version: 2.0.3
|
||||
resolution: "expand-template@npm:2.0.3"
|
||||
checksum: d1c08a374a2335647562d6958bf23a40371fd9eb64362f3a2475b232a8d2e4bfa8f746066ff45c17efde185dab66f5d0824eaaa26e3e491d03bff50be0be7c3d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"expect@npm:^26.6.2":
|
||||
version: 26.6.2
|
||||
resolution: "expect@npm:26.6.2"
|
||||
@ -10331,13 +10305,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"github-from-package@npm:0.0.0":
|
||||
version: 0.0.0
|
||||
resolution: "github-from-package@npm:0.0.0"
|
||||
checksum: 9c3bae601535f7de7e2f54cc58dcd2ae62aa7afd262e9edea9021a264e633859ad0aef6ec23328e26607e4259f1efb97ce9b5b01e3f80d7d258085a628c9b710
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"glob-parent@npm:^3.1.0":
|
||||
version: 3.1.0
|
||||
resolution: "glob-parent@npm:3.1.0"
|
||||
@ -12882,17 +12849,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"keytar@npm:7.2.0":
|
||||
version: 7.2.0
|
||||
resolution: "keytar@npm:7.2.0"
|
||||
dependencies:
|
||||
node-addon-api: ^3.0.0
|
||||
node-gyp: latest
|
||||
prebuild-install: ^6.0.0
|
||||
checksum: a15afc229e3a61eddd3955fadb6ac217114c4dd698004696df8c56f7cafa654b6b22f3bfac03669eb4efe8a3efe449d865218aaf45c7e741067261710a5ab986
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"keyv@npm:^3.0.0":
|
||||
version: 3.1.0
|
||||
resolution: "keyv@npm:3.1.0"
|
||||
@ -13968,13 +13924,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"mimic-response@npm:^2.0.0":
|
||||
version: 2.1.0
|
||||
resolution: "mimic-response@npm:2.1.0"
|
||||
checksum: 9c206f3aebdc8de306550394301de8ce593e7757f3f9be43b5f99728e38ae787d17e6b72b96eb1b7a998d041da0ee465c48d29c927be4ff6ac3319453285d075
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"mimic-response@npm:^3.1.0":
|
||||
version: 3.1.0
|
||||
resolution: "mimic-response@npm:3.1.0"
|
||||
@ -14059,7 +14008,7 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"minimist@npm:^1.1.1, minimist@npm:^1.1.3, minimist@npm:^1.2.0, minimist@npm:^1.2.3, minimist@npm:^1.2.5, minimist@npm:~1.2.0":
|
||||
"minimist@npm:^1.1.1, minimist@npm:^1.1.3, minimist@npm:^1.2.0, minimist@npm:^1.2.5, minimist@npm:~1.2.0":
|
||||
version: 1.2.5
|
||||
resolution: "minimist@npm:1.2.5"
|
||||
checksum: b77b8590147a4e217ff34266236bc39de23b52e6e33054076991ff674c7397a1380a7bde11111916f16f003a94aaa7e4f3d92595a32189644ff607fabc65a5b6
|
||||
@ -14159,13 +14108,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"mkdirp-classic@npm:^0.5.2, mkdirp-classic@npm:^0.5.3":
|
||||
version: 0.5.3
|
||||
resolution: "mkdirp-classic@npm:0.5.3"
|
||||
checksum: b3c46c62840bdc82c2a5bee417e4e7518a8109d32a85a6dc67bdcfecbe6aff5cfc73cdb98844a61178ddd8ac75743f977857f0badd6e12d14fd18cf1639e41a1
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"mkdirp-promise@npm:^5.0.1":
|
||||
version: 5.0.1
|
||||
resolution: "mkdirp-promise@npm:5.0.1"
|
||||
@ -14428,13 +14370,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"napi-build-utils@npm:^1.0.1":
|
||||
version: 1.0.2
|
||||
resolution: "napi-build-utils@npm:1.0.2"
|
||||
checksum: e4dfbec94d315533fea33a96ef5fb4de0d9e8828f2bb2b30e38de089500dfe35fe058ea5bcd72e104381457263f854c3d52d4d8700df9e1f9e6b78e9500ba435
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"native-request@npm:^1.0.5":
|
||||
version: 1.0.8
|
||||
resolution: "native-request@npm:1.0.8"
|
||||
@ -14511,24 +14446,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"node-abi@npm:^2.7.0":
|
||||
version: 2.19.3
|
||||
resolution: "node-abi@npm:2.19.3"
|
||||
dependencies:
|
||||
semver: ^5.4.1
|
||||
checksum: 503acaa092dbf3e1d4cd96fb8496f726d6d0b3f441e37c8e8be8a622fe88d9fcda495e2016a687c1c147a28c2a9b24bd9ce39f5ae5ac8223c30ab20aece376d8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"node-addon-api@npm:^3.0.0":
|
||||
version: 3.0.2
|
||||
resolution: "node-addon-api@npm:3.0.2"
|
||||
dependencies:
|
||||
node-gyp: latest
|
||||
checksum: 7f401e4ad9ed75cea9ba8590da8048b37e99531e8d8b46b941e6c951ca1cf8e0db29f31ddf25d3e87c13cb6653c06e0db72c05ef50eff9db3529cd929ae69747
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"node-fetch-npm@npm:^2.0.2":
|
||||
version: 2.0.4
|
||||
resolution: "node-fetch-npm@npm:2.0.4"
|
||||
@ -14660,13 +14577,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"noop-logger@npm:^0.1.1":
|
||||
version: 0.1.1
|
||||
resolution: "noop-logger@npm:0.1.1"
|
||||
checksum: 353d31cd08698c797af21069df593772a081b694d0edbb3f1d9aca526ddc414bb0992e3deb9aaf69ad197ddee3a5e3be6dd09043023d3abe385d2872a863829c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"nopt@npm:^4.0.1":
|
||||
version: 4.0.3
|
||||
resolution: "nopt@npm:4.0.3"
|
||||
@ -14839,7 +14749,7 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"npmlog@npm:^4.0.1, npmlog@npm:^4.1.2":
|
||||
"npmlog@npm:^4.1.2":
|
||||
version: 4.1.2
|
||||
resolution: "npmlog@npm:4.1.2"
|
||||
dependencies:
|
||||
@ -15890,31 +15800,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"prebuild-install@npm:^6.0.0":
|
||||
version: 6.0.0
|
||||
resolution: "prebuild-install@npm:6.0.0"
|
||||
dependencies:
|
||||
detect-libc: ^1.0.3
|
||||
expand-template: ^2.0.3
|
||||
github-from-package: 0.0.0
|
||||
minimist: ^1.2.3
|
||||
mkdirp-classic: ^0.5.3
|
||||
napi-build-utils: ^1.0.1
|
||||
node-abi: ^2.7.0
|
||||
noop-logger: ^0.1.1
|
||||
npmlog: ^4.0.1
|
||||
pump: ^3.0.0
|
||||
rc: ^1.2.7
|
||||
simple-get: ^3.0.3
|
||||
tar-fs: ^2.0.0
|
||||
tunnel-agent: ^0.6.0
|
||||
which-pm-runs: ^1.0.0
|
||||
bin:
|
||||
prebuild-install: ./bin.js
|
||||
checksum: 02db5ebaf2c45996a5005928996ffcd2cf13ed5daf10386b3b4fc0ea51d27c4d045fa21acaf4359c07474773bed1d4e4f55f8a33b2efb24339566497cbe7d223
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"prelude-ls@npm:^1.2.1":
|
||||
version: 1.2.1
|
||||
resolution: "prelude-ls@npm:1.2.1"
|
||||
@ -16886,7 +16771,7 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"rc@npm:^1.0.1, rc@npm:^1.1.6, rc@npm:^1.2.7, rc@npm:^1.2.8":
|
||||
"rc@npm:^1.0.1, rc@npm:^1.1.6, rc@npm:^1.2.8":
|
||||
version: 1.2.8
|
||||
resolution: "rc@npm:1.2.8"
|
||||
dependencies:
|
||||
@ -18308,24 +18193,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"simple-concat@npm:^1.0.0":
|
||||
version: 1.0.1
|
||||
resolution: "simple-concat@npm:1.0.1"
|
||||
checksum: 4623960448a49731b5abeedc5430f8158c5caa05f10a685b405b13ed8532c80b5d99e6ef5d53f76a695e66f551cdbcca22c1363ceef8f8b246cda1e21b9ef871
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"simple-get@npm:^3.0.3":
|
||||
version: 3.1.0
|
||||
resolution: "simple-get@npm:3.1.0"
|
||||
dependencies:
|
||||
decompress-response: ^4.2.0
|
||||
once: ^1.3.1
|
||||
simple-concat: ^1.0.0
|
||||
checksum: f56f08765eafde034b379d38d3dd1eb9b9ffb41d090d8216e71dce6ea3936499ee34b20942773a2605b08e8abce940691bd06e110ac12d08f83917493078831e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"sisteransi@npm:^1.0.5":
|
||||
version: 1.0.5
|
||||
resolution: "sisteransi@npm:1.0.5"
|
||||
@ -19159,18 +19026,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"tar-fs@npm:^2.0.0":
|
||||
version: 2.1.1
|
||||
resolution: "tar-fs@npm:2.1.1"
|
||||
dependencies:
|
||||
chownr: ^1.1.1
|
||||
mkdirp-classic: ^0.5.2
|
||||
pump: ^3.0.0
|
||||
tar-stream: ^2.1.4
|
||||
checksum: 4739382487b6ed646670a52cac637c818ecdceb728eb4718847dfdaddd7322d8cce2ea9db160ba8ad2920194034fda7c307b44f4eeb50d244f198bd7e28f2914
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"tar-stream@npm:^1.5.2":
|
||||
version: 1.6.2
|
||||
resolution: "tar-stream@npm:1.6.2"
|
||||
@ -19186,7 +19041,7 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"tar-stream@npm:^2.0.1, tar-stream@npm:^2.1.3, tar-stream@npm:^2.1.4":
|
||||
"tar-stream@npm:^2.0.1, tar-stream@npm:^2.1.3":
|
||||
version: 2.1.4
|
||||
resolution: "tar-stream@npm:2.1.4"
|
||||
dependencies:
|
||||
@ -20663,13 +20518,6 @@ fsevents@^1.2.7:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"which-pm-runs@npm:^1.0.0":
|
||||
version: 1.0.0
|
||||
resolution: "which-pm-runs@npm:1.0.0"
|
||||
checksum: 0bb79a782e98955afec8f35a3ae95c4711fdd3d0743772ee98211da67c2421fdd4c92c95c93532cc0b4dcc085d8e27f3ad2f8a9173cb632692379bd3d2818821
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"which@npm:^1.2.9, which@npm:^1.3.1":
|
||||
version: 1.3.1
|
||||
resolution: "which@npm:1.3.1"
|
||||
|
Loading…
Reference in New Issue
Block a user