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

lazy-ass

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lazy-ass - npm Package Compare versions

Comparing version 1.6.0 to 2.0.2

dist/index.js

111

package.json
{
"name": "lazy-ass",
"description": "Lazy assertions without performance penalty",
"version": "1.6.0",
"version": "2.0.2",
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",

@@ -10,12 +10,8 @@ "bugs": {

"config": {
"pre-git": {
"commit-msg": "simple",
"pre-commit": [
"npm test"
],
"pre-push": [
"npm run size"
],
"post-commit": [],
"post-merge": []
"next-update": {
"skip": [
"grunt",
"grunt-cli",
"karma"
]
}

@@ -26,37 +22,12 @@ },

"devDependencies": {
"@semantic-release/condition-travis": "4.1.4",
"bad-line": "0.1.1",
"condition-node-version": "1.2.0",
"coveralls": "2.11.6",
"expect.js": "0.3.1",
"git-issues": "1.2.0",
"grunt": "0.4.5",
"grunt-banner": "0.6.0",
"grunt-clean-console": "0.1.1",
"grunt-cli": "1.0.0-rc1",
"grunt-contrib-concat": "0.5.1",
"grunt-contrib-copy": "0.8.2",
"grunt-contrib-jshint": "1.0.0",
"grunt-contrib-uglify": "0.11.1",
"grunt-contrib-watch": "0.6.1",
"grunt-deps-ok": "0.9.0",
"grunt-gh-pages": "1.0.0",
"grunt-karma": "0.10.1",
"grunt-mocha-test": "0.12.7",
"grunt-nice-package": "0.10.3",
"grunt-npm2bower-sync": "0.9.1",
"jshint-stylish": "2.1.0",
"karma": "0.12.32",
"karma-chrome-launcher": "0.2.2",
"karma-coverage": "0.5.3",
"karma-mocha": "0.2.2",
"karma-phantomjs-launcher": "1.0.0",
"matchdep": "1.0.1",
"mocha": "2.4.5",
"phantomjs": "2.1.3",
"phantomjs-prebuilt": "2.1.12",
"@types/jest": "27.0.2",
"coveralls": "2.13.3",
"git-issues": "1.3.1",
"jest": "27.3.0",
"mocha": "3.5.3",
"pkgfiles": "2.3.2",
"pre-git": "3.4.0",
"semantic-release": "6.3.6",
"time-grunt": "1.4.0"
"prettier": "1.13.2",
"semantic-release": "^18.0.0",
"ts-jest": "27.0.7",
"typescript": "4.4.4"
},

@@ -67,7 +38,4 @@ "engines": {

"files": [
"index.js",
"index.html",
"bower.json",
"test/demo.js",
"index.d.ts"
"src",
"dist"
],

@@ -85,14 +53,5 @@ "homepage": "https://github.com/bahmutov/lazy-ass",

"license": "MIT",
"main": "index.js",
"release": {
"verifyConditions": [
{
"path": "@semantic-release/condition-travis"
},
{
"path": "condition-node-version",
"node": "4.2.2"
}
]
},
"main": "./dist",
"module": "./src",
"types": "./src",
"repository": {

@@ -103,3 +62,5 @@ "type": "git",

"scripts": {
"build": "grunt",
"clean": "rm -rf dist",
"prebuild": "npm run clean && npm run pretty",
"build": "tsc",
"commit": "git-issues && commit-wizard",

@@ -112,8 +73,20 @@ "coveralls": "cat coverage/PhantomJS*/lcov.info | ./node_modules/coveralls/bin/coveralls.js",

"pkgfiles": "pkgfiles",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"size": "tarball=\"$(npm pack .)\"; wc -c \"${tarball}\"; tar tvf \"${tarball}\"; rm \"${tarball}\";",
"test": "grunt test",
"watch": "grunt watch"
"pretest": "npm run build",
"semantic-release": "semantic-release",
"size": "npm pack --dry",
"test": "npm run unit && npm run jest",
"unit": "mocha test/commonjs.spec.js",
"jest": "jest",
"pretty": "prettier --single-quote --no-semi --write src/*.ts __tests__/*.ts"
},
"types": "index.d.ts"
}
"jest": {
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts$",
"moduleFileExtensions": [
"ts",
"js"
]
}
}

@@ -19,7 +19,3 @@ # lazy-ass

Is the current code breaking dependencies if released?
[![Dont-break][circle-ci-image] ][circle-ci-url] - checks using
[dont-break](https://github.com/bahmutov/dont-break)
[circle-ci-image]: https://circleci.com/gh/bahmutov/lazy-ass.svg?style=svg
[circle-ci-url]: https://circleci.com/gh/bahmutov/lazy-ass
Note: only tested against Node 4+

@@ -40,3 +36,7 @@ ## Example

```js
const {lazyAss} = require('lazy-ass')
lazyAss(typeof foo === 'object', 'expected', foo, 'to be an object');
// shorter version
const {lazyAss: la} = require('lazy-ass')
la(typeof foo === 'object', 'expected', foo, 'to be an object');
```

@@ -272,1 +272,3 @@

[semantic-url]: https://github.com/semantic-release/semantic-release
[nut-badge]: https://img.shields.io/badge/next--update--travis-ok-green.svg
[nut-readme]: https://github.com/bahmutov/next-update-travis#readme
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