Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@furystack/core

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/core - npm Package Compare versions

Comparing version 5.1.3 to 6.0.0

2

dist/InMemoryStore.js

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

if (filter.top || filter.skip) {
value = value.slice(filter.skip, (filter.skip || 0) + (filter.top || 0));
value = value.slice(filter.skip, (filter.skip || 0) + (filter.top || this.cache.size));
}

@@ -59,0 +59,0 @@ if (filter.select) {

@@ -19,3 +19,3 @@ import { Constructable, Injector } from '@furystack/inject';

*/
getStoreFor<T>(model: Constructable<T>): PhysicalStore<T>;
getStoreFor<T, TType extends PhysicalStore<T> = PhysicalStore<T>>(model: Constructable<T>): TType;
/**

@@ -22,0 +22,0 @@ * Adds a store instance to the StoreManager class

{
"name": "@furystack/core",
"version": "5.1.3",
"version": "6.0.0",
"description": "Core FuryStack package",

@@ -59,3 +59,3 @@ "main": "dist/index.js",

"typings": "./dist/index.d.ts",
"gitHead": "c864ccc3b136bf08f75c00c86ea5aa2942c9bde6"
"gitHead": "ed7937b9607e4c296683ffea8afb27a09243f839"
}

@@ -52,3 +52,3 @@ import { Constructable } from '@furystack/inject'

if (filter.top || filter.skip) {
value = value.slice(filter.skip, (filter.skip || 0) + (filter.top || 0))
value = value.slice(filter.skip, (filter.skip || 0) + (filter.top || this.cache.size))
}

@@ -55,0 +55,0 @@

@@ -31,3 +31,3 @@ import { Constructable, Injectable, Injector } from '@furystack/inject'

*/
public getStoreFor<T>(model: Constructable<T>) {
public getStoreFor<T, TType extends PhysicalStore<T> = PhysicalStore<T>>(model: Constructable<T>) {
const instance = this.stores.get(model)

@@ -42,3 +42,3 @@ if (!instance) {

}
return instance as PhysicalStore<T>
return instance as TType
}

@@ -45,0 +45,0 @@

Sorry, the diff of this file is not supported yet

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