Comparing version 19.1.0-beta.1 to 19.1.0-beta.2
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
419695
10
216
5509
4
+ Added@nrwl/nx-cloud@19.1.0-beta.2(transitive)
- Removedstrip-json-comments@^5.0.1
- Removed@nrwl/nx-cloud@19.1.0-beta.1(transitive)
- Removedstrip-json-comments@5.0.1(transitive)
Updated@nrwl/nx-cloud@19.1.0-beta.2