Comparing version 2.12.0 to 2.12.1
@@ -80,6 +80,10 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
nockBack.fixtures = opts.cassetteFolder; | ||
nockListener.subscribe('no match', (_, req, body) => { | ||
nockListener.subscribe('no match', (req, options, body) => { | ||
assert(hasCassette === true); | ||
if (anyFlagPresent(['magic', 'record'])) { | ||
if (options === undefined) { | ||
throw new Error('Please delete empty cassette instead of using "record" option.'); | ||
} | ||
expectedCassette.push(async () => { | ||
@@ -92,3 +96,3 @@ nockRecorder.rec({ | ||
await new Promise(resolve => { | ||
const r = http.request(req, response => { | ||
const r = http.request(options, response => { | ||
response.on('data', () => {}); | ||
@@ -163,8 +167,6 @@ response.on('end', resolve); | ||
}, | ||
afterRecord: recordings => JSON.stringify(opts.stripHeaders === true ? recordings.map(r => { | ||
const res = _objectSpread({}, r); | ||
delete res.rawHeaders; | ||
return res; | ||
}) : recordings, null, 2) | ||
afterRecord: recordings => JSON.stringify(recordings.map(r => _objectSpread(_objectSpread({}, r), {}, { | ||
body: tryParseJson(r.body), | ||
rawHeaders: opts.stripHeaders === true ? undefined : r.rawHeaders | ||
})), null, 2) | ||
}, resolve)); | ||
@@ -219,2 +221,2 @@ }, | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2R1bGVzL3JlcXVlc3QtcmVjb3JkZXIuanMiXSwibmFtZXMiOlsiYXNzZXJ0IiwicmVxdWlyZSIsImh0dHAiLCJwYXRoIiwiZnMiLCJKb2kiLCJub2NrIiwibm9ja0xpc3RlbmVyIiwiaGVhbFNxc1NlbmRNZXNzYWdlQmF0Y2giLCJidWlsZEtleSIsInRyeVBhcnNl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KSB7XG4gICAgICAgICAgZXhwZWN0ZWRDYXNzZXR0ZS5wdXNoKGFzeW5jICgpID0+IHtcbiAgICAgICAgICAgIG5vY2tSZWNvcmRlci5yZWMoe1xuICAgICAgICAgICAgICBvdXRwdXRfb2JqZWN0czogdHJ1ZSxcbiAgICAgICAgICAgICAgZG9udF9wcmludDogdHJ1ZSxcbiAgICAgICAgICAgICAgZW5hYmxlX3JlcWhlYWRlcnNfcmVjb3JkaW5nOiBmYWxzZVxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBhd2FpdCBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4ge1xuICAgICAgICAgICAgICBjb25zdCByID0gaHR0cC5yZXF1ZXN0KHJlcSwgKHJlc3BvbnNlKSA9PiB7XG4gICAgICAgICAgICAgICAgcmVzcG9uc2Uub24oJ2RhdGEnLCAoKSA9PiB7fSk7XG4gICAgICAgICAgICAgICAgcmVzcG9uc2Uub24oJ2VuZCcsIHJlc29sdmUpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgci53cml0ZShib2R5KTtcbiAgICAgICAgICAgICAgci5lbmQoKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY29uc3QgcmVjb3JkZWQgPSBub2NrUmVjb3JkZXIucGxheSgpO1xuICAgICAgICAgICAgbm9ja1JlY29yZGVyLmNsZWFyKCk7XG4gICAgICAgICAgICByZXR1cm4gcmVjb3JkZWQubWFwKChyZWNvcmQpID0+IE9iamVjdC5hc3NpZ24ocmVjb3JkLCB7XG4gICAgICAgICAgICAgIGhlYWRlcnM6IG9wdHMuc3RyaXBIZWFkZXJzID09PSB0cnVlID8gdW5kZWZpbmVkIDogY29udmVydEhlYWRlcnMocmVjb3JkLnJhd0hlYWRlcnMpLFxuICAgICAgICAgICAgICByYXdIZWFkZXJzOiB1bmRlZmluZWRcbiAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoI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VxuICAgICAgICAgICAgICApKTtcbiAgICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIG5vLXBhcmFtLXJlYXNzaWduXG4gICAgICAgICAgICAgIGludGVyY2VwdG9yLmJvZHkgPSByZXNwb25zZUJvZHk7XG4gICAgICAgICAgICAgIHBlbmRpbmdNb2Nrc1tpZHhdLnJlY29yZC5yZXNwb25zZSA9IHJlc3BvbnNlQm9keTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgZXhwZWN0ZWRDYXNzZXR0ZS5wdXNoKHBlbmRpbmdNb2Nrc1tpZHhdLnJlY29yZCk7XG4gICAgICAgICAgICBpZiAoaWR4ICE9PSAwKSB7XG4gICAgICAgICAgICAgIG91dE9mT3JkZXJFcnJvcnMucHVzaChwZW5kaW5nTW9ja3NbaWR4XS5rZXkpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcGVuZGluZ01vY2tzLnNwbGljZShpZHgsIDEpO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9LFxuICAgICAgICBhZnRlclJlY29yZDogKHJlY29yZGluZ3MpID0+IEpTT05cbiAgICAgICAgICAuc3RyaW5naWZ5KG9wdHMuc3RyaXBIZWFkZXJzID09PSB0cnVlID8gcmVjb3JkaW5ncy5tYXAoKHIpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHJlcyA9IHsgLi4uciB9O1xuICAgICAgICAgICAgZGVsZXRlIHJlcy5yYXdIZWFkZXJzO1xuICAgICAgICAgICAgcmV0dXJuIHJlcztcbiAgICAgICAgICB9KSA6IHJlY29yZGluZ3MsIG51bGwsIDIpXG4gICAgICB9LCByZXNvbHZlKSk7XG4gICAgfSxcbiAgICByZWxlYXNlOiBhc3luYyAoKSA9PiB7XG4gICAgICBhc3NlcnQobm9ja0RvbmUgIT09IG51bGwpO1xuICAgICAgZm9yIChsZXQgaWR4ID0gMDsgaWR4IDwgZXhwZWN0ZWRDYXNzZXR0ZS5sZW5ndGg7IGlkeC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tYXAoKGUpID0+IGUua2V5KS5qb2luKCcsICcpfWApO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcbiAgICBzaHV0ZG93bjogKCkgPT4ge1xuICAgICAgY29uc3QgdW5leHBlY3RlZEZpbGVzID0gZnMud2Fsa0RpcihvcHRzLmNhc3NldHRlRm9sZGVyKS5maWx0ZXIoKGYpID0+ICFrbm93bkNhc3NldHRlTmFtZXMuaW5jbHVkZXMoZikpO1xuICAgICAgaWYgKHVuZXhwZWN0ZWRGaWxlcy5sZW5ndGggIT09IDApIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBVbmV4cGVjdGVkIGZpbGUocykgaW4gY2Fzc2V0dGUgZm9sZGVyOiAke3VuZXhwZWN0ZWRGaWxlcy5qb2luKCcsICcpfWApO1xuICAgICAgfVxuICAgIH0sXG4gICAgZ2V0OiAoKSA9PiAoe1xuICAgICAgcmVjb3JkczogcmVjb3Jkcy5zbGljZSgpLFxuICAgICAgb3V0T2ZPcmRlckVycm9yczogb3V0T2ZPcmRlckVycm9ycy5zbGljZSgpLFxuICAgICAgdW5tYXRjaGVkUmVjb3JkaW5nczogcGVuZGluZ01vY2tzLm1hcCgoZSkgPT4gZS5rZXkpLnNsaWNlKCksXG4gICAgICBleHBlY3RlZENhc3NldHRlOiBleHBlY3RlZENhc3NldHRlLnNsaWNlKCksXG4gICAgICBjYXNzZXR0ZUZpbGVQYXRoXG4gICAgfSlcbiAgfSk7XG59O1xuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2R1bGVzL3JlcXVlc3QtcmVjb3JkZXIuanMiXSwibmFtZXMiOlsiYXNzZXJ0IiwicmVxdWlyZSIsImh0dHAiLCJwYXRoIiwiZnMiLCJKb2kiLCJub2NrIiwibm9ja0xpc3RlbmVyIiwiaGVhbFNxc1NlbmRNZXNzYWdlQmF0Y2giLCJidWlsZEtleSIs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vcGVJZHgpO1xuXG4gICAgICAgICAgICBpZiAoYW55RmxhZ1ByZXNlbnQoWydtYWdpYycsICdyZXNwb25zZSddKSkge1xuICAgICAgICAgICAgICBjb25zdCByZXNwb25zZUJvZHkgPSB0cnlQYXJzZUpzb24oW1xuICAgICAgICAgICAgICAgIGhlYWxTcXNTZW5kTWVzc2FnZUJhdGNoXG4gICAgICAgICAgICAgIF0ucmVkdWNlKFxuICAgICAgICAgICAgICAgIChyZXNwQm9keSwgZm4pID0+IGZuKHJlcXVlc3RCb2R5U3RyaW5nLCByZXNwQm9keSwgc2NvcGUpLFxuICAgICAgICAgICAgICAgIGludGVyY2VwdG9yLmJvZHlcbiAgICAgICAgICAgICAgKSk7XG4gICAgICAgICAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1wYXJhbS1yZWFzc2lnblxuICAgICAgICAgICAgICBpbnRlcmNlcHRvci5ib2R5ID0gcmVzcG9uc2VCb2R5O1xuICAgICAgICAgICAgICBwZW5kaW5nTW9ja3NbaWR4XS5yZWNvcmQucmVzcG9uc2UgPSByZXNwb25zZUJvZHk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGV4cGVjdGVkQ2Fzc2V0dGUucHVzaChwZW5kaW5nTW9ja3NbaWR4XS5yZWNvcmQpO1xuICAgICAgICAgICAgaWYgKGlkeCAhPT0gMCkge1xuICAgICAgICAgICAgICBvdXRPZk9yZGVyRXJyb3JzLnB1c2gocGVuZGluZ01vY2tzW2lkeF0ua2V5KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHBlbmRpbmdNb2Nrcy5zcGxpY2UoaWR4LCAxKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgICAgYWZ0ZXJSZWNvcmQ6IChyZWNvcmRpbmdzKSA9PiBKU09OLnN0cmluZ2lmeShyZWNvcmRpbmdzLm1hcCgocikgPT4gKHtcbiAgICAgICAgICAuLi5yLFxuICAgICAgICAgIGJvZHk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GVkQ2Fzc2V0dGUuc2xpY2UoKSxcbiAgICAgIGNhc3NldHRlRmlsZVBhdGhcbiAgICB9KVxuICB9KTtcbn07XG4iXX0= |
module.exports.buildKey = interceptor => `${interceptor.method} ${interceptor.basePath}${interceptor.uri}`; | ||
module.exports.tryParseJson = value => { | ||
if (typeof value !== 'string') { | ||
return value; | ||
} | ||
try { | ||
@@ -20,2 +24,2 @@ return JSON.parse(value); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2R1bGVzL3JlcXVlc3QtcmVjb3JkZXIvdXRpbC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiYnVpbGRLZXkiLCJpbnRlcmNlcHRvciIsIm1ldGhvZCIsImJhc2VQYXRoIiwidXJpIiwidHJ5UGFyc2VKc29uIiwidmFsdWUiLCJKU09OIiwicGFyc2UiLCJlIiwiY29udmVydEhlYWRlcnMiLCJhcnJheSIsIm9iaiIsImlkeCIsImxlbmd0aCIsInRvTG93ZXJDYXNlIl0sIm1hcHBpbmdzIjoiQUFBQUEsTUFBTSxDQUFDQyxPQUFQLENBQWVDLFFBQWYsR0FBMkJDLFdBQUQsSUFBa0IsR0FBRUEsV0FBVyxDQUFDQyxNQUFPLElBQUdELFdBQVcsQ0FBQ0UsUUFBUyxHQUFFRixXQUFXLENBQUNHLEdBQUksRUFBM0c7O0FBRUFOLE1BQU0sQ0FBQ0MsT0FBUCxDQUFlTSxZQUFmLEdBQStCQyxLQUFELElBQVc7QUFDdkMsTUFBSTtBQUNGLFdBQU9DLElBQUksQ0FBQ0MsS0FBTCxDQUFXRixLQUFYLENBQVA7QUFDRCxHQUZELENBRUUsT0FBT0csQ0FBUCxFQUFVO0FBQ1YsV0FBT0gsS0FBUDtBQUNEO0FBQ0YsQ0FORDs7QUFRQVIsTUFBTSxDQUFDQyxPQUFQLENBQWVXLGNBQWYs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tBQUssQ0FBQ0UsR0FBRCxDQUFMLENBQVdFLFdBQVgsRUFBRCxDQUFILEdBQWdDSixLQUFLLENBQUNFLEdBQUcsR0FBRyxDQUFQLENBQXJDO0FBQ0Q7O0FBQ0QsU0FBT0QsR0FBUDtBQUNELENBTkQiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cy5idWlsZEtleSA9IChpbnRlcmNlcHRvcikgPT4gYCR7aW50ZXJjZXB0b3IubWV0aG9kfSAke2ludGVyY2VwdG9yLmJhc2VQYXRofSR7aW50ZXJjZXB0b3IudXJpfWA7XG5cbm1vZHVsZS5leHBvcnRzLnRyeVBhcnNlSnNvbiA9ICh2YWx1ZSkgPT4ge1xuICBpZiAodHlwZW9mIHZhbHVlICE9PSAnc3RyaW5nJykge1xuICAgIHJldHVybiB2YWx1ZTtcbiAgfVxuICB0cnkge1xuICAgIHJldHVybiBKU09OLnBhcnNlKHZhbHVlKTtcbiAgfSBjYXRjaCAoZSkge1xuICAgIHJldHVybiB2YWx1ZTtcbiAgfVxufTtcblxubW9kdWxlLmV4cG9ydHMuY29udmVydEhlYWRlcnMgPSAoYXJyYXkpID0+IHtcbiAgY29uc3Qgb2JqID0ge307XG4gIGZvciAobGV0IGlkeCA9IDA7IGlkeCA8IGFycmF5Lmxlbmd0aDsgaWR4ICs9IDIpIHtcbiAgICBvYmpbYXJyYXlbaWR4XS50b0xvd2VyQ2FzZSgpXSA9IGFycmF5W2lkeCArIDFdO1xuICB9XG4gIHJldHVybiBvYmo7XG59O1xuIl19 |
{ | ||
"name": "node-tdd", | ||
"version": "2.12.0", | ||
"version": "2.12.1", | ||
"description": "Drop in extension for mocha to abstract commonly used test setups", | ||
@@ -45,7 +45,7 @@ "main": "lib/index.js", | ||
"@babel/core": "7.10.2", | ||
"@babel/plugin-proposal-object-rest-spread": "7.10.1", | ||
"@babel/register": "7.10.1", | ||
"@babel/plugin-proposal-object-rest-spread": "7.10.3", | ||
"@babel/register": "7.10.3", | ||
"@blackflux/eslint-plugin-rules": "1.3.30", | ||
"@blackflux/robo-config-plugin": "3.4.11", | ||
"aws-sdk": "2.699.0", | ||
"@blackflux/robo-config-plugin": "3.4.12", | ||
"aws-sdk": "2.701.0", | ||
"aws-sdk-wrap": "4.4.7", | ||
@@ -52,0 +52,0 @@ "babel-eslint": "10.1.0", |
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
116295
674