Socket
Socket
Sign inDemoInstall

nx-cloud

Package Overview
Dependencies
Maintainers
2
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nx-cloud - npm Package Compare versions

Comparing version 19.1.0-beta.1 to 19.1.0-beta.2

lib/utilities/strip-json-comments.d.ts

22

lib/core/runners/distributed-execution/task-graph-creator.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TaskGraphCreator = exports.createTaskGraphCompat = void 0;
const fs_1 = require("fs");
const strip_json_comments_1 = require("../../../utilities/strip-json-comments");
const { workspaceRoot } = require('../../../utilities/nx-imports-light');
const { getDependencyConfigs } = require('../../../utilities/nx-imports');
// This package is ESM and needs to be imported using an async import
// IF YOU CHANGE THIS, THE PACKAGE WILL FAIL TO LOAD AT RUNTIME
// YOU WILL NOT CATCH IT IN CI
const dynamicImport = new Function('specifier', 'return import(specifier)');
let stripJsonComments;
(function () {
return __awaiter(this, void 0, void 0, function* () {
stripJsonComments = (yield dynamicImport('strip-json-comments')).default;
});
})();
function createTaskGraphCompat(options, projectGraph, tasks) {
const nxjson = JSON.parse(stripJsonComments((0, fs_1.readFileSync)(`${workspaceRoot}/nx.json`).toString(), {
const nxjson = JSON.parse((0, strip_json_comments_1.stripJsonComments)((0, fs_1.readFileSync)(`${workspaceRoot}/nx.json`).toString(), {
trailingCommas: true,

@@ -29,0 +11,0 @@ }));

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCloudOptions = void 0;
const fs_1 = require("fs");
const strip_json_comments_1 = require("./strip-json-comments");
const { workspaceRoot } = require('./nx-imports-light');
// This package is ESM and needs to be imported using an async import
// IF YOU CHANGE THIS, THE PACKAGE WILL FAIL TO LOAD AT RUNTIME
// YOU WILL NOT CATCH IT IN CI
const dynamicImport = new Function('specifier', 'return import(specifier)');
let stripJsonComments;
(function () {
return __awaiter(this, void 0, void 0, function* () {
stripJsonComments = (yield dynamicImport('strip-json-comments')).default;
});
})();
function getCloudOptions(taskRunnerConfiguration) {
var _a, _b, _c, _d, _e, _f, _g, _h;
const nxJson = JSON.parse(stripJsonComments((0, fs_1.readFileSync)(`${workspaceRoot}/nx.json`).toString(), {
const nxJson = JSON.parse((0, strip_json_comments_1.stripJsonComments)((0, fs_1.readFileSync)(`${workspaceRoot}/nx.json`).toString(), {
trailingCommas: true,

@@ -29,0 +11,0 @@ }));

{
"name": "nx-cloud",
"version": "19.1.0-beta.1",
"version": "19.1.0-beta.2",
"description": "Distributed caching and task execution for Lerna and Nx",

@@ -27,3 +27,2 @@ "keywords": [

"tar": "6.2.1",
"strip-json-comments": "^5.0.1",
"chalk": "^4.1.0",

@@ -34,5 +33,5 @@ "yargs-parser": ">=21.1.1",

"ini": "4.1.3",
"@nrwl/nx-cloud": "19.1.0-beta.1"
"@nrwl/nx-cloud": "19.1.0-beta.2"
},
"type": "commonjs"
}

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