Comparing version 1.5.0 to 2.0.0
(function() { | ||
var Deprecation, Emitter, getRawStack, grim; | ||
Emitter = require('emissary').Emitter; | ||
Deprecation = require('./deprecation'); | ||
if (global.__grim__ == null) { | ||
Emitter = require('event-kit').Emitter; | ||
grim = global.__grim__ = { | ||
deprecations: {}, | ||
emitter: new Emitter, | ||
includeDeprecatedAPIs: true, | ||
@@ -70,3 +70,3 @@ getDeprecations: function() { | ||
deprecation.addStack(stack, metadata); | ||
grim.emit("updated", deprecation); | ||
this.emitter.emit("updated", deprecation); | ||
}, | ||
@@ -94,6 +94,8 @@ addSerializedDeprecation: function(serializedDeprecation) { | ||
} | ||
grim.emit("updated", deprecation); | ||
this.emitter.emit("updated", deprecation); | ||
}, | ||
on: function(eventName, callback) { | ||
return this.emitter.on(eventName, callback); | ||
} | ||
}; | ||
Emitter.extend(grim); | ||
} | ||
@@ -100,0 +102,0 @@ |
{ | ||
"name": "grim", | ||
"version": "1.5.0", | ||
"version": "2.0.0", | ||
"description": "Log usage of deprecated methods", | ||
@@ -24,3 +24,3 @@ "main": "./lib/grim", | ||
"dependencies": { | ||
"emissary": "^1.2.0" | ||
"event-kit": "^1.4.1" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12157
240
0
+ Addedevent-kit@^1.4.1
+ Addedevent-kit@1.5.0(transitive)
+ Addedgrim@1.5.0(transitive)
- Removedemissary@^1.2.0