Comparing version 3.4.1 to 3.4.2
@@ -11,1 +11,2 @@ /** | ||
export declare const inject: (injectedAbsolutePath: string, cypressPackagePath?: string) => Promise<void>; | ||
export declare const getBinPath: (cypressPackagePath?: string) => Promise<string>; |
@@ -5,3 +5,4 @@ "use strict"; | ||
}); | ||
exports.patch = exports.run = exports.inject = void 0; | ||
exports.getBinPath = exports.run = exports.inject = exports.patch = void 0; | ||
var _binPath = require("./bin-path"); | ||
var _context = require("./context"); | ||
@@ -80,1 +81,5 @@ var lib = _interopRequireWildcard(require("./patch")); | ||
exports.inject = inject; | ||
const getBinPath = _asyncToGenerator(function*(cypressPackagePath = require.resolve('cypress')) { | ||
return yield (0, _context).runInContext(_binPath.getCypressCLIBinPath, new Map().set('cypressPackagePath', cypressPackagePath)); | ||
}); | ||
exports.getBinPath = getBinPath; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const req = Mod.prototype.require; | ||
console.log('INJECTED'); | ||
// @ts-ignore | ||
@@ -27,2 +28,3 @@ if ((ref = global.snapshotResult) === null || ref === void 0 ? void 0 : (ref1 = ref.customRequire) === null || ref1 === void 0 ? void 0 : ref1.exports) { | ||
if (args[0].match(/app\.json/)) { | ||
console.log('bingo! app.json'); | ||
return { | ||
@@ -29,0 +31,0 @@ development: { |
{ | ||
"name": "cy2", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"author": "Andrew Goldis", | ||
@@ -5,0 +5,0 @@ "main": "./dist", |
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
50110
1199