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

grim

Package Overview
Dependencies
Maintainers
1
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 0.9.0 to 0.10.0

.node-version

5

lib/grim.js

@@ -34,6 +34,7 @@ (function() {

deprecate: function(message) {
var deprecation, methodName, stack;
var deprecation, deprecations, methodName, stack;
stack = Deprecation.generateStack().slice(1);
methodName = Deprecation.getFunctionNameFromCallsite(stack[0]);
if (!(deprecation = global.__grimDeprecations__.find(function(d) {
deprecations = global.__grimDeprecations__;
if (!(deprecation = _.find(deprecations, function(d) {
return d.getOriginName() === methodName;

@@ -40,0 +41,0 @@ }))) {

2

package.json
{
"name": "grim",
"version": "0.9.0",
"version": "0.10.0",
"description": "Log usage of deprecated methods",

@@ -5,0 +5,0 @@ "main": "./lib/grim",

@@ -1,3 +0,21 @@

# Grim [![Build Status](https://magnum.travis-ci.com/atom/grim.svg?token=wKV9hrS79m2qMyqpNvUo&branch=master)](https://travis-ci.org/atom/grim)
# Grim [![Build Status](https://travis-ci.org/atom/grim.svg)](https://travis-ci.org/atom/grim)
Log usage of deprecated methods
Log deprecate calls
## Installing
```sh
npm install grim
```
## Usage
```javascript
Grim = require('Grim')
function someOldMethod() {
Grim.deprecate("Use theNewMethod instead.")
}
```
To view all calls to deprecated methods use `Grim.logDeprecations()` or get direct access to the deprecated calls by using `Grim.getDeprecations()`
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