Socket
Socket
Sign inDemoInstall

jest-playback

Package Overview
Dependencies
332
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 3.0.0

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Change Log

<a name="3.0.0"></a>
# [3.0.0](https://github.com/ikatyang/jest-playback/compare/v2.0.2...v3.0.0) (2020-07-29)
### Features
* upgrade Nock to v13 ([#411](https://github.com/ikatyang/jest-playback/issues/411)) ([9ec364e](https://github.com/ikatyang/jest-playback/commit/9ec364e))
### BREAKING CHANGES
* require Node 10+
<a name="2.0.2"></a>

@@ -7,0 +22,0 @@ ## [2.0.2](https://github.com/ikatyang/jest-playback/compare/v2.0.1...v2.0.2) (2018-11-30)

4

lib/record.d.ts
import nock = require('nock');
export declare function loadRecords(playbackDir: string): nock.NockDefinition[];
export declare function writeRecords(playbackDir: string, records: nock.NockDefinition[]): void;
export declare function loadRecords(playbackDir: string): nock.Definition[];
export declare function writeRecords(playbackDir: string, records: nock.Definition[]): void;

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

.filter(function (filename) { return filename.endsWith(PLAYBACK_EXTENSION); })
.map(function (filename) {
return JSON.parse(fs.readFileSync(filename, 'utf8'));
});
.map(function (filename) { return JSON.parse(fs.readFileSync(filename, 'utf8')); });
}

@@ -25,0 +23,0 @@ exports.loadRecords = loadRecords;

{
"name": "jest-playback",
"version": "2.0.2",
"version": "3.0.0",
"description": "Record and playback http requests from your Jest tests",

@@ -23,3 +23,3 @@ "keywords": [

"scripts": {
"prepublish": "yarn run build",
"prepublish": "npm run build",
"lint": "tslint -p .",

@@ -34,3 +34,3 @@ "test": "jest",

"lodash.kebabcase": "^4.1.1",
"nock": "^9.0.13",
"nock": "^13.0.3",
"rev-hash": "^2.0.0"

@@ -43,11 +43,10 @@ },

"@types/json-stable-stringify": "1.0.32",
"@types/lodash.kebabcase": "4.1.4",
"@types/nock": "9.3.0",
"@types/node": "4.9.1",
"@types/lodash.kebabcase": "4.1.6",
"@types/node": "^10.17.28",
"@types/request": "2.48.1",
"@types/rev-hash": "2.0.0",
"del": "3.0.0",
"glob": "7.1.3",
"glob": "7.1.4",
"jest": "21.2.1",
"prettier": "1.15.2",
"prettier": "1.18.2",
"prettier-config-ikatyang": "1.1.1",

@@ -57,6 +56,6 @@ "request": "2.88.0",

"ts-jest": "21.2.4",
"tslint": "5.11.0",
"tslint-config-prettier": "1.17.0",
"tslint": "5.15.0",
"tslint-config-prettier": "1.18.0",
"tslint-plugin-prettier": "2.0.1",
"typescript": "3.2.1"
"typescript": "3.5.2"
},

@@ -67,3 +66,3 @@ "peerDependencies": {

"engines": {
"node": ">= 4"
"node": ">= 10"
},

@@ -70,0 +69,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc