mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Polyfill Array.prototype.toSorted
(no-chanhelog) (#13463)
This commit is contained in:
parent
d277e0ba0e
commit
f2b15ea086
|
@ -46,6 +46,7 @@
|
|||
"@vue-flow/node-resizer": "^1.4.0",
|
||||
"@vueuse/components": "^10.11.0",
|
||||
"@vueuse/core": "catalog:frontend",
|
||||
"array.prototype.tosorted": "1.1.4",
|
||||
"axios": "catalog:",
|
||||
"bowser": "2.11.0",
|
||||
"change-case": "^5.4.4",
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<script setup lang="ts">
|
||||
import '@/polyfills';
|
||||
|
||||
import { ref, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import LoadingView from '@/views/LoadingView.vue';
|
||||
import BannerStack from '@/components/banners/BannerStack.vue';
|
||||
import AskAssistantChat from '@/components/AskAssistant/AskAssistantChat.vue';
|
||||
|
@ -18,11 +19,6 @@ import { useSettingsStore } from '@/stores/settings.store';
|
|||
import { useHistoryHelper } from '@/composables/useHistoryHelper';
|
||||
import { useStyles } from './composables/useStyles';
|
||||
|
||||
// Polyfill crypto.randomUUID
|
||||
if (!('randomUUID' in crypto)) {
|
||||
Object.defineProperty(crypto, 'randomUUID', { value: uuid });
|
||||
}
|
||||
|
||||
const route = useRoute();
|
||||
const rootStore = useRootStore();
|
||||
const assistantStore = useAssistantStore();
|
||||
|
|
7
packages/editor-ui/src/polyfills.ts
Normal file
7
packages/editor-ui/src/polyfills.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import 'array.prototype.tosorted';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
// Polyfill crypto.randomUUID
|
||||
if (!('randomUUID' in crypto)) {
|
||||
Object.defineProperty(crypto, 'randomUUID', { value: uuid });
|
||||
}
|
|
@ -1480,6 +1480,9 @@ importers:
|
|||
'@vueuse/core':
|
||||
specifier: catalog:frontend
|
||||
version: 10.11.0(vue@3.5.13(typescript@5.7.2))
|
||||
array.prototype.tosorted:
|
||||
specifier: 1.1.4
|
||||
version: 1.1.4
|
||||
axios:
|
||||
specifier: 'catalog:'
|
||||
version: 1.7.4
|
||||
|
@ -6695,6 +6698,10 @@ packages:
|
|||
resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
array.prototype.tosorted@1.1.4:
|
||||
resolution: {integrity: sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
arraybuffer.prototype.slice@1.0.3:
|
||||
resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
@ -8097,6 +8104,10 @@ packages:
|
|||
es-shim-unscopables@1.0.0:
|
||||
resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==}
|
||||
|
||||
es-shim-unscopables@1.1.0:
|
||||
resolution: {integrity: sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
es-to-primitive@1.2.1:
|
||||
resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
@ -13307,6 +13318,9 @@ packages:
|
|||
vue-component-type-helpers@2.2.2:
|
||||
resolution: {integrity: sha512-6lLY+n2xz2kCYshl59mL6gy8OUUTmkscmDFMO8i7Lj+QKwgnIFUZmM1i/iTYObtrczZVdw7UakPqDTGwVSGaRg==}
|
||||
|
||||
vue-component-type-helpers@2.2.4:
|
||||
resolution: {integrity: sha512-F66p0XLbAu92BRz6kakHyAcaUSF7HWpWX/THCqL0TxySSj7z/nok5UUMohfNkkCm1pZtawsdzoJ4p1cjNqCx0Q==}
|
||||
|
||||
vue-demi@0.14.10:
|
||||
resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==}
|
||||
engines: {node: '>=12'}
|
||||
|
@ -18439,7 +18453,7 @@ snapshots:
|
|||
ts-dedent: 2.2.0
|
||||
type-fest: 2.19.0
|
||||
vue: 3.5.13(typescript@5.7.2)
|
||||
vue-component-type-helpers: 2.2.2
|
||||
vue-component-type-helpers: 2.2.4
|
||||
|
||||
'@supabase/auth-js@2.65.0':
|
||||
dependencies:
|
||||
|
@ -19771,12 +19785,20 @@ snapshots:
|
|||
es-abstract: 1.22.5
|
||||
es-shim-unscopables: 1.0.0
|
||||
|
||||
array.prototype.tosorted@1.1.4:
|
||||
dependencies:
|
||||
call-bind: 1.0.7
|
||||
define-properties: 1.2.1
|
||||
es-abstract: 1.23.3
|
||||
es-errors: 1.3.0
|
||||
es-shim-unscopables: 1.1.0
|
||||
|
||||
arraybuffer.prototype.slice@1.0.3:
|
||||
dependencies:
|
||||
array-buffer-byte-length: 1.0.1
|
||||
call-bind: 1.0.7
|
||||
define-properties: 1.2.1
|
||||
es-abstract: 1.22.5
|
||||
es-abstract: 1.23.3
|
||||
es-errors: 1.3.0
|
||||
get-intrinsic: 1.2.4
|
||||
is-array-buffer: 3.0.4
|
||||
|
@ -21430,7 +21452,7 @@ snapshots:
|
|||
dependencies:
|
||||
define-data-property: 1.1.4
|
||||
define-properties: 1.2.1
|
||||
es-abstract: 1.22.5
|
||||
es-abstract: 1.23.3
|
||||
es-errors: 1.3.0
|
||||
function-bind: 1.1.2
|
||||
globalthis: 1.0.3
|
||||
|
@ -21473,6 +21495,10 @@ snapshots:
|
|||
dependencies:
|
||||
has: 1.0.3
|
||||
|
||||
es-shim-unscopables@1.1.0:
|
||||
dependencies:
|
||||
hasown: 2.0.2
|
||||
|
||||
es-to-primitive@1.2.1:
|
||||
dependencies:
|
||||
is-callable: 1.2.7
|
||||
|
@ -22216,7 +22242,7 @@ snapshots:
|
|||
dependencies:
|
||||
call-bind: 1.0.7
|
||||
define-properties: 1.2.1
|
||||
es-abstract: 1.22.5
|
||||
es-abstract: 1.23.3
|
||||
functions-have-names: 1.2.3
|
||||
|
||||
functions-have-names@1.2.3: {}
|
||||
|
@ -25002,7 +25028,7 @@ snapshots:
|
|||
dependencies:
|
||||
call-bind: 1.0.7
|
||||
define-properties: 1.2.1
|
||||
es-abstract: 1.22.5
|
||||
es-abstract: 1.23.3
|
||||
|
||||
object.entries@1.1.8:
|
||||
dependencies:
|
||||
|
@ -26746,7 +26772,7 @@ snapshots:
|
|||
dependencies:
|
||||
call-bind: 1.0.7
|
||||
define-properties: 1.2.1
|
||||
es-abstract: 1.22.5
|
||||
es-abstract: 1.23.3
|
||||
|
||||
string.prototype.trim@1.2.9:
|
||||
dependencies:
|
||||
|
@ -26759,7 +26785,7 @@ snapshots:
|
|||
dependencies:
|
||||
call-bind: 1.0.7
|
||||
define-properties: 1.2.1
|
||||
es-abstract: 1.22.5
|
||||
es-abstract: 1.23.3
|
||||
|
||||
string.prototype.trimend@1.0.8:
|
||||
dependencies:
|
||||
|
@ -26771,7 +26797,7 @@ snapshots:
|
|||
dependencies:
|
||||
call-bind: 1.0.7
|
||||
define-properties: 1.2.1
|
||||
es-abstract: 1.22.5
|
||||
es-abstract: 1.23.3
|
||||
|
||||
string.prototype.trimstart@1.0.8:
|
||||
dependencies:
|
||||
|
@ -27754,6 +27780,8 @@ snapshots:
|
|||
|
||||
vue-component-type-helpers@2.2.2: {}
|
||||
|
||||
vue-component-type-helpers@2.2.4: {}
|
||||
|
||||
vue-demi@0.14.10(vue@3.5.13(typescript@5.7.2)):
|
||||
dependencies:
|
||||
vue: 3.5.13(typescript@5.7.2)
|
||||
|
|
Loading…
Reference in a new issue