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

grim

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grim - npm Package Compare versions

Comparing version 1.5.0 to 2.0.0

12

lib/grim.js
(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": {

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