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

@envelop/core

Package Overview
Dependencies
Maintainers
1
Versions
1491
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/core - npm Package Compare versions

Comparing version

to
2.4.0-alpha-aca44e1.0

9

index.js

@@ -302,3 +302,2 @@ 'use strict';

}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
function getInMemoryLRUCache({ max = 1000, onDelete = () => { }, } = {}) {

@@ -346,2 +345,6 @@ let storage = {};

}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
function isSourceObject(maybeSource) {
return maybeSource != null && maybeSource.body != null;
}

@@ -793,4 +796,3 @@ function createEnvelopOrchestrator(plugins) {

var _a;
const getTimestamp = typeof globalThis !== 'undefined' && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.performance) === null || _a === void 0 ? void 0 : _a.now) ? () => performance.now() : () => Date.now();
const getTimestamp = typeof performance !== 'undefined' && performance.now ? () => performance.now() : () => Date.now();
const measure = () => {

@@ -1346,2 +1348,3 @@ const start = getTimestamp();

exports.isPluginEnabled = isPluginEnabled;
exports.isSourceObject = isSourceObject;
exports.makeExecute = makeExecute;

@@ -1348,0 +1351,0 @@ exports.makeSubscribe = makeSubscribe;

{
"name": "@envelop/core",
"version": "2.4.0-alpha-3936561.0",
"version": "2.4.0-alpha-aca44e1.0",
"sideEffects": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

@@ -34,10 +34,14 @@ import { ASTNode, DocumentNode, OperationDefinitionNode, Source, ExecutionResult, SubscriptionArgs, ExecutionArgs } from 'graphql';

export declare function errorAsyncIterator<TInput>(source: AsyncIterable<TInput>, onError: (err: unknown) => void): AsyncGenerator<TInput>;
export interface BasicCache<V> {
get(key: string): V | undefined;
set(key: string, value: V): void;
delete(key: string): void;
clear?: () => void;
}
export declare function getInMemoryLRUCache<V>({ max, onDelete, }?: {
max?: number;
onDelete?: (key: string, value: V) => void;
}): {
get(key: string): V | undefined;
set(key: string, value: V): void;
delete(key: string): void;
}): BasicCache<V> & {
clear(): void;
};
export declare function isSourceObject(maybeSource: any): maybeSource is Source;

Sorry, the diff of this file is not supported yet