@toddledev/core
Advanced tools
Comparing version 0.0.2-alpha.14 to 0.0.2-alpha.15
@@ -255,3 +255,3 @@ "use strict"; | ||
}; | ||
return apis.toSorted(([aKey, aObj], [bKey, bObj]) => { | ||
return [...apis].sort(([aKey, aObj], [bKey, bObj]) => { | ||
const a = getApi(aObj, aKey); | ||
@@ -263,4 +263,4 @@ const b = getApi(bObj, bKey); | ||
exports.sortApiObjects = sortApiObjects; | ||
const sortApiEntries = (apis) => apis.toSorted(([_, a], [__, b]) => compareApiDependencies(a, b)); | ||
const sortApiEntries = (apis) => [...apis].sort(([_, a], [__, b]) => compareApiDependencies(a, b)); | ||
exports.sortApiEntries = sortApiEntries; | ||
//# sourceMappingURL=api.js.map |
@@ -74,3 +74,3 @@ import type { Component, ComponentData } from '../component/component.types'; | ||
package: string | undefined; | ||
toddle?: { | ||
toddle: { | ||
getFormula: FormulaLookup; | ||
@@ -77,0 +77,0 @@ getCustomFormula: CustomFormulaHandler; |
{ | ||
"name": "@toddledev/core", | ||
"version": "0.0.2-alpha.14", | ||
"version": "0.0.2-alpha.15", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/toddledev/toddle", |
@@ -381,3 +381,4 @@ import { applyFormula, Formula, FormulaContext } from '../formula/formula' | ||
} | ||
return apis.toSorted(([aKey, aObj], [bKey, bObj]) => { | ||
return [...apis].sort(([aKey, aObj], [bKey, bObj]) => { | ||
const a = getApi(aObj, aKey) | ||
@@ -391,2 +392,2 @@ const b = getApi(bObj, bKey) | ||
apis: Array<[string, LegacyToddleApi<Handler> | ToddleApiV2<Handler>]>, | ||
) => apis.toSorted(([_, a], [__, b]) => compareApiDependencies(a, b)) | ||
) => [...apis].sort(([_, a], [__, b]) => compareApiDependencies(a, b)) |
@@ -106,3 +106,3 @@ import type { Component, ComponentData } from '../component/component.types' | ||
package: string | undefined | ||
toddle?: { | ||
toddle: { | ||
getFormula: FormulaLookup | ||
@@ -109,0 +109,0 @@ getCustomFormula: CustomFormulaHandler |
Sorry, the diff of this file is not supported yet
375158