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

@faststore/api

Package Overview
Dependencies
Maintainers
7
Versions
442
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@faststore/api - npm Package Compare versions

Comparing version 3.0.43 to 3.0.44

6

dist/cjs/package.json
{
"name": "@faststore/api",
"version": "3.0.40",
"version": "3.0.43",
"license": "MIT",

@@ -54,4 +54,4 @@ "main": "dist/cjs/src/index.js",

"@envelop/core": "^2.6.0",
"@faststore/eslint-config": "^3.0.40",
"@faststore/shared": "^3.0.40",
"@faststore/eslint-config": "^3.0.43",
"@faststore/shared": "^3.0.43",
"@graphql-codegen/cli": "2.2.0",

@@ -58,0 +58,0 @@ "@graphql-codegen/typescript": "2.2.2",

@@ -7,3 +7,11 @@ "use strict";

exports.StoreFacet = {
__resolveType: ({ type }) => type === 'TEXT' ? 'StoreFacetBoolean' : 'StoreFacetRange',
__resolveType: ({ type, values }) => {
if (type !== 'TEXT') {
return 'StoreFacetRange';
}
if (values.every((value) => value.range)) {
return 'StoreFacetRange';
}
return 'StoreFacetBoolean';
},
};

@@ -10,0 +18,0 @@ exports.StoreFacetBoolean = {

{
"name": "@faststore/api",
"version": "3.0.40",
"version": "3.0.43",
"license": "MIT",

@@ -54,4 +54,4 @@ "main": "dist/cjs/src/index.js",

"@envelop/core": "^2.6.0",
"@faststore/eslint-config": "^3.0.40",
"@faststore/shared": "^3.0.40",
"@faststore/eslint-config": "^3.0.43",
"@faststore/shared": "^3.0.43",
"@graphql-codegen/cli": "2.2.0",

@@ -58,0 +58,0 @@ "@graphql-codegen/typescript": "2.2.2",

import { parseRange } from '../utils/facets';
import { min } from '../utils/orderStatistics';
export const StoreFacet = {
__resolveType: ({ type }) => type === 'TEXT' ? 'StoreFacetBoolean' : 'StoreFacetRange',
__resolveType: ({ type, values }) => {
if (type !== 'TEXT') {
return 'StoreFacetRange';
}
if (values.every((value) => value.range)) {
return 'StoreFacetRange';
}
return 'StoreFacetBoolean';
},
};

@@ -6,0 +14,0 @@ export const StoreFacetBoolean = {

{
"name": "@faststore/api",
"version": "3.0.43",
"version": "3.0.44",
"license": "MIT",

@@ -81,3 +81,3 @@ "main": "dist/cjs/src/index.js",

},
"gitHead": "79c8f515cc9eeaac288354f4bc40c339ee124ef7"
"gitHead": "58bf8cadc618b100f93b82b4b371a9e24bef3e6f"
}

@@ -13,4 +13,14 @@ import { parseRange } from '../utils/facets'

export const StoreFacet: Record<string, Resolver<Root>> = {
__resolveType: ({ type }) =>
type === 'TEXT' ? 'StoreFacetBoolean' : 'StoreFacetRange',
__resolveType: ({ type, values }) =>
{
if (type !== 'TEXT') {
return 'StoreFacetRange'
}
if (values.every((value) => (value as FacetValueRange).range)) {
return 'StoreFacetRange'
}
return 'StoreFacetBoolean'
},
}

@@ -17,0 +27,0 @@

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