@envelop/core
Advanced tools
Comparing version 4.0.3 to 5.0.0-alpha-20231006093815-abe48e7c
@@ -37,3 +37,5 @@ "use strict"; | ||
// Iterate all plugins and trigger onPluginInit | ||
for (const [i, plugin] of plugins.entries()) { | ||
for (let i = 0; i < plugins.length; i++) { | ||
const plugin = plugins[i]; | ||
const pluginsToAdd = []; | ||
plugin.onPluginInit && | ||
@@ -43,3 +45,3 @@ plugin.onPluginInit({ | ||
addPlugin: newPlugin => { | ||
plugins.push(newPlugin); | ||
pluginsToAdd.push(newPlugin); | ||
}, | ||
@@ -49,2 +51,3 @@ setSchema: modifiedSchema => replaceSchema(modifiedSchema, i), | ||
}); | ||
pluginsToAdd.length && plugins.splice(i + 1, 0, ...pluginsToAdd); | ||
} | ||
@@ -51,0 +54,0 @@ // A set of before callbacks defined here in order to allow it to be used later |
@@ -34,3 +34,5 @@ import { documentStringMap } from './document-string-map.js'; | ||
// Iterate all plugins and trigger onPluginInit | ||
for (const [i, plugin] of plugins.entries()) { | ||
for (let i = 0; i < plugins.length; i++) { | ||
const plugin = plugins[i]; | ||
const pluginsToAdd = []; | ||
plugin.onPluginInit && | ||
@@ -40,3 +42,3 @@ plugin.onPluginInit({ | ||
addPlugin: newPlugin => { | ||
plugins.push(newPlugin); | ||
pluginsToAdd.push(newPlugin); | ||
}, | ||
@@ -46,2 +48,3 @@ setSchema: modifiedSchema => replaceSchema(modifiedSchema, i), | ||
}); | ||
pluginsToAdd.length && plugins.splice(i + 1, 0, ...pluginsToAdd); | ||
} | ||
@@ -48,0 +51,0 @@ // A set of before callbacks defined here in order to allow it to be used later |
{ | ||
"name": "@envelop/core", | ||
"version": "4.0.3", | ||
"version": "5.0.0-alpha-20231006093815-abe48e7c", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89203
2048
2