@envelop/core
Advanced tools
Comparing version 5.0.0-alpha-20231013095204-a7b05d40 to 5.0.0-alpha-20231013095727-f85e25ee
@@ -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-alpha-20231013095204-a7b05d40", | ||
"version": "5.0.0-alpha-20231013095727-f85e25ee", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@envelop/types": "5.0.0-alpha-20231013095204-a7b05d40", | ||
"@envelop/types": "5.0.0-alpha-20231013095727-f85e25ee", | ||
"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
89233
2048
+ Added@envelop/types@5.0.0-alpha-20231013095727-f85e25ee(transitive)
- Removed@envelop/types@5.0.0-alpha-20231013095204-a7b05d40(transitive)