Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

givens

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

givens - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

9

dist/getGiven.d.ts

@@ -1,2 +0,7 @@

import { given } from './types';
export default function getGiven<T>(): given<T>;
interface givenFunc<T> {
<K extends keyof T>(key: K, func: () => T[K]): void
}
type given<T> = givenFunc<T> & T;
export default function getGiven<T = {[K: string]: any}>(): given<T>;
{
"name": "givens",
"version": "1.2.0",
"version": "1.3.0",
"description": "Easy test setup without side effects",

@@ -15,17 +15,21 @@ "main": "dist/getGiven.js",

"install:tests": "npm-run-all install:tests:**",
"install:tests:jest": "cd integration-tests/jest && npm i --no-package-lock",
"install:tests:mocha": "cd integration-tests/mocha && npm i --no-package-lock",
"install:tests:jasmine": "cd integration-tests/jasmine && npm i --no-package-lock",
"build": "tsc --removeComments",
"build:tests": "tsc --inlineSourceMap",
"install:tests:js-jest": "cd integration-tests/javascript/jest && npm i --no-package-lock",
"install:tests:js-mocha": "cd integration-tests/javascript/mocha && npm i --no-package-lock",
"install:tests:js-jasmine": "cd integration-tests/javascript/jasmine && npm i --no-package-lock",
"install:tests:ts-jest": "cd integration-tests/typescript/jest && npm i --no-package-lock",
"build": "tsc --removeComments && npm run copy-dts",
"build:tests": "tsc --inlineSourceMap && npm run copy-dts",
"copy-dts": "copyfiles -u 1 \"src/getGiven.d.ts\" dist",
"lint": "npm-run-all --continue-on-error lint:**",
"lint:main": "eslint ./src/**.* ./test/**.* --ext .ts",
"lint:jest": "cd integration-tests/jest && npm run lint",
"lint:mocha": "cd integration-tests/mocha && npm run lint",
"lint:jasmine": "cd integration-tests/jasmine && npm run lint",
"lint:js-jest": "cd integration-tests/javascript/jest && npm run lint",
"lint:js-mocha": "cd integration-tests/javascript/mocha && npm run lint",
"lint:js-jasmine": "cd integration-tests/javascript/jasmine && npm run lint",
"lint:ts-jest": "cd integration-tests/typescript/jest && npm run lint",
"test": "npm-run-all --continue-on-error test:**",
"test:unit": "jest",
"test:jest": "cd integration-tests/jest && npm test",
"test:mocha": "cd integration-tests/mocha && npm test",
"test:jasmine": "cd integration-tests/jasmine && npm test",
"test:js-jest": "cd integration-tests/javascript/jest && npm test",
"test:js-mocha": "cd integration-tests/javascript/mocha && npm test",
"test:js-jasmine": "cd integration-tests/javascript/jasmine && npm test",
"test:ts-jest": "cd integration-tests/typescript/jest && npm test",
"clean": "./clean.sh"

@@ -49,15 +53,16 @@ },

"devDependencies": {
"@types/jest": "^24.9.0",
"@types/node": "^13.1.7",
"@typescript-eslint/eslint-plugin": "^2.15.0",
"@typescript-eslint/parser": "^2.15.0",
"@types/jest": "^24.9.1",
"@types/node": "^13.9.0",
"@typescript-eslint/eslint-plugin": "^2.23.0",
"@typescript-eslint/parser": "^2.23.0",
"copyfiles": "^2.2.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-airbnb-typescript": "^6.3.1",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jest": "^23.2.0",
"eslint-config-airbnb-typescript": "^6.3.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^23.8.2",
"jest": "^24.9.0",
"npm-run-all": "^4.1.5",
"ts-jest": "^24.3.0",
"typescript": "^3.7.4"
"typescript": "^3.8.3"
},

@@ -64,0 +69,0 @@ "eslintConfig": {

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