New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cosplay-pi-device-hub-client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosplay-pi-device-hub-client - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

dist/generate-device-keys-main.d.ts

3

dist/add-device-runtime-module.d.ts

@@ -1,4 +0,5 @@

export declare const addDeviceRuntimeModule: ({ deviceRuntimeModuleName, }: {
export declare const addDeviceRuntimeModule: ({ deviceRuntimeModuleName, deviceRuntimeModuleVersionRange, }: {
deviceRuntimeModuleName: string;
deviceRuntimeModuleVersionRange: string;
}) => Promise<void>;
//# sourceMappingURL=add-device-runtime-module.d.ts.map

@@ -8,3 +8,3 @@ "use strict";

const set_device_runtime_config_1 = require("./set-device-runtime-config");
const addDeviceRuntimeModule = async ({ deviceRuntimeModuleName, }) => {
const addDeviceRuntimeModule = async ({ deviceRuntimeModuleName, deviceRuntimeModuleVersionRange, }) => {
if ((0, device_runtime_process_1.fetchDeviceRuntimeProcess)() !== undefined) {

@@ -15,3 +15,3 @@ throw new Error();

deviceRuntimeConfig.modules[deviceRuntimeModuleName] = {
version: `link:../../../${deviceRuntimeModuleName}`,
versionRange: deviceRuntimeModuleVersionRange,
};

@@ -18,0 +18,0 @@ (0, set_device_runtime_config_1.setDeviceRuntimeConfig)({

export interface DeviceRuntimeConfig {
modules: {
[moduleName: string]: {
version: string;
versionRange: string;
};

@@ -6,0 +6,0 @@ };

@@ -0,3 +1,5 @@

export declare const hubBackendUrl: string;
export declare const hubFrontendUrl: string;
export declare const devicePublicKeyFilePath: string;
export declare const deviceRuntimeDirPath: string;
//# sourceMappingURL=env.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deviceRuntimeDirPath = exports.devicePublicKeyFilePath = void 0;
exports.deviceRuntimeDirPath = exports.devicePublicKeyFilePath = exports.hubFrontendUrl = exports.hubBackendUrl = void 0;
const dotenv = require("dotenv");
dotenv.config();
exports.hubBackendUrl = process.env[`COSPLAY_PI_HUB_BACKEND_URL`];
exports.hubFrontendUrl = process.env[`COSPLAY_PI_HUB_FRONTEND_URL`];
exports.devicePublicKeyFilePath = process.env[`COSPLAY_PI_DEVICE_PUBLIC_KEY_FILE_PATH`];
exports.deviceRuntimeDirPath = process.env[`COSPLAY_PI_DEVICE_RUNTIME_DIR_PATH`];
//# sourceMappingURL=env.js.map

@@ -21,2 +21,3 @@ "use strict";

deviceRuntimeModuleName: deviceCommandInfo.payload.deviceRuntimeModuleName,
deviceRuntimeModuleVersionRange: deviceCommandInfo.payload.deviceRuntimeModuleVersionRange,
});

@@ -23,0 +24,0 @@ }

@@ -20,3 +20,3 @@ "use strict";

Object.assign(deviceRuntimeInfo.dependencies, {
[deviceRuntimeModuleName]: deviceRuntimeModuleConfig.version,
[deviceRuntimeModuleName]: deviceRuntimeModuleConfig.versionRange,
});

@@ -23,0 +23,0 @@ }

@@ -18,4 +18,4 @@ "use strict";

(0, generate_device_runtime_info_file_1.generateDeviceRuntimeInfoFile)();
fs.writeFileSync(path.resolve(env_1.deviceRuntimeDirPath, `yarn.lock`), ``);
const yarnInstallDeviceRuntimeProcess = (0, child_process_1.spawn)(`yarn set version berry && yarn`, {
fs.writeFileSync(path.resolve(env_1.deviceRuntimeDirPath, `package-lock.json`), ``);
const npmInstallDeviceRuntimeProcess = (0, child_process_1.spawn)(`npm install`, {
shell: true,

@@ -26,3 +26,3 @@ cwd: env_1.deviceRuntimeDirPath,

await new Promise((resolvePromise, rejectPromise) => {
yarnInstallDeviceRuntimeProcess.on(`exit`, (code) => {
npmInstallDeviceRuntimeProcess.on(`exit`, (code) => {
if (code === 0) {

@@ -29,0 +29,0 @@ resolvePromise();

@@ -17,7 +17,4 @@ "use strict";

cwd: env_1.deviceRuntimeDirPath,
stdio: `pipe`,
stdio: `inherit`,
});
deviceRuntimeProcess.stdout.on(`data`, (data) => {
console.log(String(data));
});
(0, device_runtime_process_1.setDeviceRuntimeProcess)(deviceRuntimeProcess);

@@ -24,0 +21,0 @@ };

{
"name": "cosplay-pi-device-hub-client",
"version": "1.1.0",
"version": "1.2.0",
"files": [

@@ -9,2 +9,3 @@ "dist",

"bin": {
"generate-cosplay-pi-device-keys": "dist/generate-device-keys-main.js",
"run-cosplay-pi-device-hub-client": "dist/main.js"

@@ -17,6 +18,6 @@ },

"yargs": "^17.0.0",
"cosplay-pi-device-runtime-client": "1.0.0",
"cosplay-pi-hub-backend-client": "1.1.0",
"cosplay-pi-hub-backend-protocol": "1.1.0",
"cosplay-pi-ts-core": "1.0.0"
"cosplay-pi-hub-backend-client": "1.1.1",
"cosplay-pi-hub-backend-protocol": "1.2.0",
"cosplay-pi-ts-core": "1.0.0",
"cosplay-pi-device-runtime-client": "1.0.0"
},

@@ -31,2 +32,3 @@ "devDependencies": {

"scripts": {
"generate-device-keys": "node ./dist/generate-device-keys-main.js",
"build": "tsc",

@@ -33,0 +35,0 @@ "run-dev": "ts-node-dev --exit-child --inspect=127.0.0.1:9230 src/main.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc