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

@magnetarjs/core

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magnetarjs/core - npm Package Compare versions

Comparing version 0.3.5 to 0.3.7

9

dist/index.cjs.js

@@ -504,8 +504,9 @@ 'use strict';

if (actionName === 'fetch') {
const optimisticFetch = !payload ||
!Object.hasOwnProperty.call(payload || {}, 'force') ||
(payload === null || payload === void 0 ? void 0 : payload.force) === false;
const force = (payload === null || payload === void 0 ? void 0 : payload.force) === true;
const optimisticFetch = !force;
if (optimisticFetch) {
// the local store successfully returned a fetch response based on already fetched data
if (storeName === globalConfig.localStoreName && isFetchResponse(resultFromPlugin)) {
if (storeName === globalConfig.localStoreName &&
isFetchResponse(resultFromPlugin) &&
resultFromPlugin.docs.length) {
stopExecutionAfterAction(true);

@@ -512,0 +513,0 @@ }

@@ -500,8 +500,9 @@ import { merge, mergeAndConcat } from 'merge-anything';

if (actionName === 'fetch') {
const optimisticFetch = !payload ||
!Object.hasOwnProperty.call(payload || {}, 'force') ||
(payload === null || payload === void 0 ? void 0 : payload.force) === false;
const force = (payload === null || payload === void 0 ? void 0 : payload.force) === true;
const optimisticFetch = !force;
if (optimisticFetch) {
// the local store successfully returned a fetch response based on already fetched data
if (storeName === globalConfig.localStoreName && isFetchResponse(resultFromPlugin)) {
if (storeName === globalConfig.localStoreName &&
isFetchResponse(resultFromPlugin) &&
resultFromPlugin.docs.length) {
stopExecutionAfterAction(true);

@@ -508,0 +509,0 @@ }

{
"name": "@magnetarjs/core",
"version": "0.3.5",
"version": "0.3.7",
"sideEffects": false,

@@ -26,3 +26,3 @@ "description": "Magnetar core library.",

"devDependencies": {
"@magnetarjs/test-utils": "^0.1.16"
"@magnetarjs/test-utils": "^0.1.18"
},

@@ -70,3 +70,3 @@ "keywords": [

},
"gitHead": "a07b7b0bd09341394ac94c9627650d813052d15a"
"gitHead": "641b0f9aadf1a8ac1394eece5b126ee6dbd29c87"
}

@@ -227,9 +227,11 @@ /* eslint-disable no-inner-declarations */

if (actionName === 'fetch') {
const optimisticFetch =
!payload ||
!Object.hasOwnProperty.call(payload || {}, 'force') ||
payload?.force === false
const force = payload?.force === true
const optimisticFetch = !force
if (optimisticFetch) {
// the local store successfully returned a fetch response based on already fetched data
if (storeName === globalConfig.localStoreName && isFetchResponse(resultFromPlugin)) {
if (
storeName === globalConfig.localStoreName &&
isFetchResponse(resultFromPlugin) &&
resultFromPlugin.docs.length
) {
stopExecutionAfterAction(true)

@@ -236,0 +238,0 @@ }

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