Socket
Socket
Sign inDemoInstall

iridium

Package Overview
Dependencies
25
Maintainers
1
Versions
157
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.0-alpha.1 to 8.0.0-alpha.2

4

dist/lib/Cache.d.ts
export interface Cache {
set<T>(key: string, value: T): void;
set<T>(key: string, value: T): PromiseLike<T>;
get<T>(key: string): PromiseLike<T>;
clear(key: string): void;
clear(key: string): PromiseLike<boolean>;
}

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

/// <reference types="bluebird" />
import * as Bluebird from "bluebird";
import { Cache } from "../Cache";

@@ -12,5 +10,5 @@ /**

private cache;
set<T>(key: string, value: T): Bluebird<T>;
get<T>(key: string): Bluebird<T>;
clear(key: string): Bluebird<boolean>;
set<T>(key: string, value: T): PromiseLike<T>;
get<T>(key: string): PromiseLike<T>;
clear(key: string): PromiseLike<boolean>;
}

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

/// <reference types="bluebird" />
import { Cache } from "../Cache";
import * as Bluebird from "bluebird";
/**

@@ -12,5 +10,5 @@ * A cache implementation which does not cache any received documents

export declare class NoOpCache implements Cache {
set<T>(key: string, object: T): Bluebird<T>;
get<T>(key: string): Bluebird<void>;
clear(key: string): Bluebird<boolean>;
set<T>(key: string, object: T): PromiseLike<T>;
get<T>(key: string): PromiseLike<T>;
clear(key: string): PromiseLike<boolean>;
}

@@ -16,3 +16,3 @@ "use strict";

get(key) {
return Bluebird.resolve();
return Bluebird.resolve(undefined);
}

@@ -19,0 +19,0 @@ clear(key) {

{
"name": "iridium",
"version": "8.0.0-alpha.1",
"version": "8.0.0-alpha.2",
"author": "Benjamin Pannell <admin@sierrasoftworks.com>",

@@ -5,0 +5,0 @@ "description": "A custom lightweight ORM for MongoDB designed for power-users",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc