bson
Advanced tools
Comparing version 4.5.0 to 4.5.1
@@ -25,3 +25,3 @@ { | ||
], | ||
"version": "4.5.0" | ||
"version": "4.5.1" | ||
} |
@@ -96,8 +96,2 @@ "use strict"; | ||
function deprecate(fn, message) { | ||
if (typeof require === 'function' && | ||
typeof window === 'undefined' && | ||
typeof self === 'undefined') { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
return require('util').deprecate(fn, message); | ||
} | ||
var warned = false; | ||
@@ -104,0 +98,0 @@ function deprecated() { |
@@ -18,3 +18,3 @@ { | ||
"types": "bson.d.ts", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"author": { | ||
@@ -21,0 +21,0 @@ "name": "The MongoDB NodeJS Team", |
@@ -114,10 +114,2 @@ import { Buffer } from 'buffer'; | ||
export function deprecate<T extends Function>(fn: T, message: string): T { | ||
if ( | ||
typeof require === 'function' && | ||
typeof window === 'undefined' && | ||
typeof self === 'undefined' | ||
) { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
return require('util').deprecate(fn, message); | ||
} | ||
let warned = false; | ||
@@ -124,0 +116,0 @@ function deprecated(this: unknown, ...args: unknown[]) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
15
2834475
38830