Socket
Socket
Sign inDemoInstall

striptags

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

striptags - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json

@@ -13,3 +13,3 @@ {

"bugs": "https://github.com/ericnorris/striptags/issues",
"version": "3.0.0",
"version": "3.0.1",
"devDependencies": {

@@ -16,0 +16,0 @@ "istanbul": "^0.4.5",

@@ -207,3 +207,3 @@ 'use strict';

// AMD
define([], striptags);
define(function module_factory() { return striptags; });
}

@@ -210,0 +210,0 @@

@@ -16,3 +16,3 @@ 'use strict';

it('should define a node module', function() {
it('should define a Node module', function() {
let module = { exports: {} };

@@ -22,9 +22,9 @@

assert.notEqual(module.exports, {});
assert.equal(module.exports.toString(), striptags.toString());
});
it('should define an amd module', function() {
let global = {};
let define = function(dependencies, module) {
global.defined = module;
it('should define an AMD module', function() {
let module = null;
let define = function(module_factory) {
module = module_factory();
};

@@ -34,5 +34,5 @@

script.runInNewContext({global, define});
script.runInNewContext({define});
assert.notEqual(global.defined, null);
assert.equal(module.toString(), striptags.toString());
});

@@ -39,0 +39,0 @@

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