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

unassertify

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unassertify - npm Package Compare versions

Comparing version 2.1.1 to 3.0.0

index.cjs

13

CHANGELOG.md

@@ -0,1 +1,14 @@

## [3.0.0](https://github.com/unassert-js/unassertify/releases/tag/v3.0.0) (2022-08-07)
#### Features
* [Upgrade unassert to v2.0.0](https://github.com/unassert-js/unassertify/pull/9)
* change .js to .cjs ([97c32f0b](https://github.com/unassert-js/unassertify/commit/97c32f0bf288787fed27d4abf285fe31c6864ec8))
#### Breaking Changes
This release will not affect most users. This is a major release of "just in case" for unassert-v2 which is completely rewritten.
### [2.1.1](https://github.com/unassert-js/unassertify/releases/tag/v2.1.1) (2018-04-19)

@@ -2,0 +15,0 @@

40

package.json
{
"name": "unassertify",
"description": "Browserify transform for unassert: Encourages programming with assertions by providing tools to compile them away",
"version": "2.1.1",
"version": "3.0.0",
"author": {

@@ -18,18 +18,19 @@ "name": "Takuto Wada",

"dependencies": {
"acorn": "^5.1.0",
"acorn": "^8.0.0",
"convert-source-map": "^1.1.1",
"escodegen": "^1.6.1",
"multi-stage-sourcemap": "^0.2.1",
"escodegen": "^2.0.0",
"multi-stage-sourcemap": "^0.3.1",
"through": "^2.3.7",
"unassert": "^1.3.1"
"unassert": "^2.0.0"
},
"devDependencies": {
"browserify": "^13.1.0",
"coffeeify": "^2.0.0",
"espower-loader": "^1.0.1",
"event-stream": "^3.3.4",
"browserify": "^17.0.0",
"coffeeify": "^3.0.0",
"coffeescript": "^2.7.0",
"event-stream": "^4.0.0",
"intelli-espower-loader": "^1.0.1",
"jshint": "^2.9.3",
"mocha": "^3.0.2",
"power-assert": "^1.4.1"
"mocha": "^10.0.0",
"power-assert": "^1.4.1",
"semistandard": "^16.0.0",
"snazzy": "^9.0.0"
},

@@ -40,3 +41,3 @@ "files": [

"LICENSE",
"index.js",
"index.cjs",
"package.json"

@@ -54,3 +55,3 @@ ],

"license": "MIT",
"main": "index.js",
"main": "index.cjs",
"repository": {

@@ -61,5 +62,14 @@ "type": "git",

"scripts": {
"lint": "jshint index.js",
"fmt": "semistandard --fix index.cjs 'test/*.cjs'",
"lint": "semistandard --verbose index.cjs 'test/*.cjs' | snazzy",
"test": "npm run lint && mocha --require intelli-espower-loader"
},
"semistandard": {
"globals": [
"describe",
"context",
"beforeEach",
"it"
]
}
}

@@ -8,5 +8,5 @@ unassertify

[![Build Status][travis-image]][travis-url]
[![Build Status][ci-image]][ci-url]
[![NPM version][npm-image]][npm-url]
[![Dependency Status][depstat-image]][depstat-url]
[![Code Style][style-image]][style-url]
[![License][license-image]][license-url]

@@ -22,2 +22,3 @@

- [unassert-cli](https://github.com/unassert-js/unassert-cli): CLI for unassert
- [rollup-plugin-unassert](https://github.com/unassert-js/rollup-plugin-unassert): RollupJS plugin for unassert

@@ -46,9 +47,9 @@

```javascript
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var glob = require('glob'),
const source = require('vinyl-source-stream');
const browserify = require('browserify');
const glob = require('glob'),
gulp.task('production_build', function() {
var files = glob.sync('./src/*.js');
var b = browserify({entries: files});
const files = glob.sync('./src/*.js');
const b = browserify({entries: files});
b.transform('unassertify');

@@ -70,3 +71,3 @@ return b.bundle()

var assert = require('assert');
const assert = require('node:assert');

@@ -113,5 +114,10 @@ function add (a, b) {

* `assert.notDeepStrictEqual(actual, expected, [message])`
* `assert.fail(actual, expected, message, operator)`
* `assert.match(string, regexp[, message])`
* `assert.doesNotMatch(string, regexp[, message])`
* `assert.throws(block, [error], [message])`
* `assert.doesNotThrow(block, [message])`
* `await assert.rejects(asyncFn, [error], [message])`
* `await assert.doesNotReject(asyncFn, [error], [message])`
* `assert.fail([message])`
* `assert.fail(actual, expected, message, operator)`
* `assert.ifError(value)`

@@ -122,4 +128,22 @@ * `console.assert(value, [message])`

* `var assert = require("assert")`
* `var assert = require("power-assert")`
* `import assert from "assert"`
* `import assert from "assert/strict"`
* `import assert from "node:assert"`
* `import assert from "node:assert/strict"`
* `import * as assert from "assert"`
* `import * as assert from "node:assert"`
* `import * as assert from "assert/strict"`
* `import * as assert from "node:assert/strict"`
* `import { strict as assert } from "assert"`
* `import { strict as assert } from "node:assert"`
* `import { default as assert } from "assert"`
* `import { default as assert } from "node:assert"`
* `const assert = require("assert")`
* `const assert = require("node:assert")`
* `const assert = require("assert/strict")`
* `const assert = require("node:assert/strict")`
* `const assert = require("assert").strict`
* `const assert = require("node:assert").strict`
* `const { strict: assert } = require("assert")`
* `const { strict: assert } = require("node:assert")`

@@ -129,5 +153,20 @@ and assignments.

* `assert = require("assert")`
* `assert = require("power-assert")`
* `assert = require("node:assert")`
* `assert = require("assert/strict")`
* `assert = require("node:assert/strict")`
* `assert = require("assert").strict`
* `assert = require("node:assert").strict`
#### Auto Variable Tracking
unassert automatically removes assertion calls based on their imported variable names.
So if import declaration is as follows,
* `import strictAssert, { ok, equal as eq } from 'node:assert/strict';`
unassert removes all `strictAssert`, `ok`, `eq` calls.
AUTHOR

@@ -164,9 +203,9 @@ ---------------------------------------

[travis-url]: https://travis-ci.org/unassert-js/unassertify
[travis-image]: https://secure.travis-ci.org/unassert-js/unassertify.svg?branch=master
[ci-image]: https://github.com/unassert-js/unassertify/workflows/Node.js%20CI/badge.svg
[ci-url]: https://github.com/unassert-js/unassertify/actions?query=workflow%3A%22Node.js+CI%22
[depstat-url]: https://gemnasium.com/unassert-js/unassertify
[depstat-image]: https://gemnasium.com/unassert-js/unassertify.svg
[license-url]: https://github.com/unassert-js/unassertify/blob/master/LICENSE
[license-image]: https://img.shields.io/badge/license-MIT-brightgreen.svg
[style-url]: https://github.com/standard/semistandard
[style-image]: https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg

Sorry, the diff of this file is not supported yet

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