Socket
Socket
Sign inDemoInstall

depd

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depd - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

lib/browser/index.js

9

History.md

@@ -0,1 +1,10 @@

1.1.0 / 2015-09-14
==================
* Enable strict mode in more places
* Support io.js 3.x
* Support io.js 2.x
* Support web browser loading
- Requires bundler like Browserify or webpack
1.0.1 / 2015-04-07

@@ -2,0 +11,0 @@ ==================

12

index.js
/*!
* depd
* Copyright(c) 2014 Douglas Christopher Wilson
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed

@@ -12,3 +12,3 @@ */

var callSiteToString = require('./lib/compat').callSiteToString
var EventEmitter = require('events').EventEmitter
var eventListenerCount = require('./lib/compat').eventListenerCount
var relative = require('path').relative

@@ -29,10 +29,2 @@

/**
* Get listener count on event emitter.
*/
/*istanbul ignore next*/
var eventListenerCount = EventEmitter.listenerCount
|| function (emitter, type) { return emitter.listeners(type).length }
/**
* Determine if namespace is contained in the string.

@@ -39,0 +31,0 @@ */

@@ -7,2 +7,4 @@ /*!

'use strict'
/**

@@ -9,0 +11,0 @@ * Module exports.

@@ -7,2 +7,4 @@ /*!

'use strict'
/**

@@ -9,0 +11,0 @@ * Module exports.

/*!
* depd
* Copyright(c) 2014 Douglas Christopher Wilson
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict'
/**
* Module dependencies.
* @private
*/
var Buffer = require('buffer')
var EventEmitter = require('events').EventEmitter
/**
* Module exports.
* @public
*/

@@ -39,2 +50,6 @@

lazyProperty(module.exports, 'eventListenerCount', function eventListenerCount() {
return EventEmitter.listenerCount || require('./event-listener-count')
})
/**

@@ -41,0 +56,0 @@ * Define a lazy property.

{
"name": "depd",
"description": "Deprecate all the things",
"version": "1.0.1",
"version": "1.1.0",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",

@@ -12,2 +12,3 @@ "license": "MIT",

"repository": "dougwilson/nodejs-depd",
"browser": "lib/browser/index.js",
"devDependencies": {

@@ -14,0 +15,0 @@ "benchmark": "1.0.0",

@@ -17,2 +17,4 @@ # depd

This module is installed directly using `npm`:
```sh

@@ -22,2 +24,7 @@ $ npm install depd

This module can also be bundled with systems like
[Browserify](http://browserify.org/) or [webpack](https://webpack.github.io/),
though by default this module will alter it's API to no longer display or
track deprecations.
## API

@@ -24,0 +31,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc