@envelop/core
Advanced tools
Comparing version 5.0.0-rc-20231013095023-2b21464e to 5.0.0-rc-20231013095602-991b537a
@@ -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": "5.0.0-rc-20231013095023-2b21464e", | ||
"version": "5.0.0-rc-20231013095602-991b537a", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@envelop/types": "5.0.0-rc-20231013095023-2b21464e", | ||
"@envelop/types": "5.0.0-rc-20231013095602-991b537a", | ||
"tslib": "^2.5.0" | ||
@@ -8,0 +8,0 @@ }, |
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
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
89227
2048
+ Added@envelop/types@5.0.0-rc-20231013095602-991b537a(transitive)
- Removed@envelop/types@5.0.0-rc-20231013095023-2b21464e(transitive)