New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/bson

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bson - npm Package Compare versions

Comparing version 0.4.30 to 0.4.31

125

bson/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for bson 0.4.21
// Type definitions for bson 0.4
// Project: https://github.com/mongodb/js-bson

@@ -8,9 +8,5 @@ // Definitions by: Hiroki Horiuchi <https://github.com/horiuchi/>

declare namespace bson {
export module BSONPure {
export namespace BSONPure {
export interface DeserializeOptions {

@@ -38,92 +34,60 @@ /** {Boolean, default:false}, evaluate functions in the BSON document scoped to the object deserialized. */

export class Binary {
static SUBTYPE_DEFAULT: number;
static SUBTYPE_FUNCTION: number;
static SUBTYPE_BYTE_ARRAY: number;
static SUBTYPE_UUID_OLD: number;
static SUBTYPE_UUID: number;
static SUBTYPE_MD5: number;
static SUBTYPE_USER_DEFINED: number;
export interface Binary { }
export interface BinaryStatic {
SUBTYPE_DEFAULT: number;
SUBTYPE_FUNCTION: number;
SUBTYPE_BYTE_ARRAY: number;
SUBTYPE_UUID_OLD: number;
SUBTYPE_UUID: number;
SUBTYPE_MD5: number;
SUBTYPE_USER_DEFINED: number;
new (buffer: Buffer, subType?: number): Binary;
constructor(buffer: Buffer, subType?: number);
}
export let Binary: BinaryStatic;
export interface Code { }
export interface CodeStatic {
new (code: string | Function, scope?: any): Code;
export class Code {
constructor(code: string | Function, scope?: any);
}
export let Code: CodeStatic;
export interface DBRef { }
export interface DBRefStatic {
new (namespace: string, oid: ObjectID, db?: string): DBRef;
export class DBRef {
constructor(namespace: string, oid: ObjectID, db?: string);
}
export let DBRef: DBRefStatic;
export interface Double { }
export interface DoubleStatic {
new (value: number): Double;
export class Double {
constructor (value: number);
}
export let Double: DoubleStatic;
export class Long {
static fromInt(i: number): Long;
static fromNumber(n: number): Long;
static fromBits(lowBits: number, highBits: number): Long;
static fromString(s: string, opt_radix?: number): Long;
export interface Long { }
export interface LongStatic {
new (low: number, high: number): Long;
fromInt(i: number): Long;
fromNumber(n: number): Long;
fromBits(lowBits: number, highBits: number): Long;
fromString(s: string, opt_radix?: number): Long;
constructor(low: number, high: number);
}
export let Long: LongStatic;
export interface MaxKey { }
export interface MaxKeyStatic {
new (): MaxKey;
export class MaxKey {
constructor();
}
export let MaxKey: MaxKeyStatic;
export interface MinKey { }
export interface MinKeyStatic {
new (): MinKey;
export class MinKey {
constructor();
}
export let MinKey: MinKeyStatic;
export class ObjectId {
static createPk(): ObjectId;
static createFromTime(time: number): ObjectId;
static createFromHexString(hexString: string): ObjectId;
static isValid(id: number | string | ObjectId): boolean;
export interface ObjectID { }
export interface ObjectIDStatic {
new (id?: number | string | ObjectID): ObjectID;
createPk(): ObjectID;
createFromTime(time: number): ObjectID;
createFromHexString(hexString: string): ObjectID;
isValid(id: number | string | ObjectID): boolean;
constructor(id?: number | string | ObjectId);
}
export let ObjectID: ObjectIDStatic;
export let ObjectId: ObjectIDStatic;
export interface BSONRegExp { }
export interface BSONRegExpStatic {
new (pattern: string, options: string): BSONRegExp;
export type ObjectID = ObjectId;
export class BSONRegExp {
constructor(pattern: string, options: string);
}
export let BSONRegExp: BSONRegExpStatic;
export interface Symbol { }
export interface SymbolStatic {
new (value: string): Symbol;
export class Symbol {
constructor(value: string);
}
export let Symbol: SymbolStatic;
export class Timestamp {
static fromInt(i: number): Timestamp;
static fromNumber(n: number): Timestamp;
static fromBits(lowBits: number, highBits: number): Timestamp;
static fromString(s: string, opt_radix?: number): Timestamp;
export interface Timestamp { }
export interface TimestampStatic {
new (low: number, high: number): Timestamp;
fromInt(i: number): Timestamp;
fromNumber(n: number): Timestamp;
fromBits(lowBits: number, highBits: number): Timestamp;
fromString(s: string, opt_radix?: number): Timestamp;
constructor(low: number, high: number);
}
export let Timestamp: TimestampStatic;
}
export let BSONNative: typeof BSONPure;

@@ -134,1 +98,2 @@

export = bson;
{
"name": "@types/bson",
"version": "0.4.30",
"description": "TypeScript definitions for bson 0.4.21",
"version": "0.4.31",
"description": "TypeScript definitions for bson",
"license": "MIT",

@@ -16,4 +16,5 @@ "author": "Hiroki Horiuchi <https://github.com/horiuchi/>",

},
"typings": "index.d.ts",
"typesPublisherContentHash": "b24fdfb35ead7385a2e75110de9a6d0c1f66ae4b57ee8d938aef00770cf99144"
"peerDependencies": {},
"typesPublisherContentHash": "9cbc6ff15288fd0e222ee25cb4bc958e2f63e0e99af86a1eaec1daf10874bebb",
"typeScriptVersion": "2.0"
}

@@ -5,15 +5,14 @@ # Installation

# Summary
This package contains type definitions for bson 0.4.21 (https://github.com/mongodb/js-bson).
This package contains type definitions for bson (https://github.com/mongodb/js-bson).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/bson
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/bson
Additional Details
* Last updated: Mon, 19 Sep 2016 16:15:23 GMT
* File structure: ProperModule
* Last updated: Wed, 28 Dec 2016 06:32:23 GMT
* Library Dependencies: node
* Module Dependencies: none
* Global values: bson
* Global values: none
# Credits
These definitions were written by Hiroki Horiuchi <https://github.com/horiuchi/>.
{
"authors": "Hiroki Horiuchi <https://github.com/horiuchi/>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [

@@ -8,13 +7,11 @@ "node"

"moduleDependencies": [],
"libraryMajorVersion": "0",
"libraryMinorVersion": "4",
"libraryName": "bson 0.4.21",
"libraryMajorVersion": 0,
"libraryMinorVersion": 4,
"typeScriptVersion": "2.0",
"libraryName": "bson",
"typingsPackageName": "bson",
"projectName": "https://github.com/mongodb/js-bson",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [
"bson"
],
"sourceBranch": "master",
"globals": [],
"declaredModules": [

@@ -27,3 +24,3 @@ "bson"

"hasPackageJson": false,
"contentHash": "b24fdfb35ead7385a2e75110de9a6d0c1f66ae4b57ee8d938aef00770cf99144"
"contentHash": "9cbc6ff15288fd0e222ee25cb4bc958e2f63e0e99af86a1eaec1daf10874bebb"
}
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