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

@fluffy-spoon/substitute

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluffy-spoon/substitute - npm Package Compare versions

Comparing version 1.85.0 to 1.86.0

4

dist/src/index.d.ts

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

import { Substitute } from './Substitute';
import { Substitute, SubstituteOf } from './Substitute';
export { Arg } from './Arguments';
export { Substitute };
export { Substitute, SubstituteOf };
export default Substitute;
import { ObjectSubstitute, OmitProxyMethods, DisabledSubstituteObject } from "./Transformations";
export declare const HandlerKey: unique symbol;
export declare const AreProxiesDisabledKey: unique symbol;
export declare type SubstituteOf<T extends Object> = ObjectSubstitute<OmitProxyMethods<T>, T> & T;
export declare class Substitute {
static for<T>(): ObjectSubstitute<OmitProxyMethods<T>, T> & T;
static for<T>(): SubstituteOf<T>;
static disableFor<T extends ObjectSubstitute<OmitProxyMethods<any>>>(substitute: T): DisabledSubstituteObject<T>;
}
{
"name": "@fluffy-spoon/substitute",
"version": "1.85.0",
"version": "1.86.0",
"description": "An NSubstitute port to TypeScript called substitute.js.",

@@ -15,5 +15,5 @@ "main": "dist/src/index.js",

"@types/node": "latest",
"ava": "^1.4.0",
"ava": "^1.4.1",
"ts-node": "^7.0.1",
"typescript": "^3.3.4000"
"typescript": "^3.4.1"
},

@@ -20,0 +20,0 @@ "ava": {

@@ -1,6 +0,6 @@

import { Substitute } from './Substitute';
import { Substitute, SubstituteOf } from './Substitute';
export { Arg } from './Arguments';
export { Substitute };
export { Substitute, SubstituteOf };
export default Substitute;

@@ -7,4 +7,6 @@ import { Context } from "./Context";

export type SubstituteOf<T extends Object> = ObjectSubstitute<OmitProxyMethods<T>, T> & T;
export class Substitute {
static for<T>(): ObjectSubstitute<OmitProxyMethods<T>, T> & T {
static for<T>(): SubstituteOf<T> {
const objectContext = new Context();

@@ -11,0 +13,0 @@ return objectContext.rootProxy;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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