Comparing version 3.0.0 to 3.0.1
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16115
0