From f6e7d56f967db38334752d81ba566b7d30845a87 Mon Sep 17 00:00:00 2001 From: falsandtru Date: Tue, 7 Nov 2023 08:43:36 +0900 Subject: [PATCH] Update dependencies --- package.json | 30 +++++++++++++++--------------- src/layer/data/es/store.ts | 8 ++++---- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 7e1b8c3..081fd3d 100644 --- a/package.json +++ b/package.json @@ -35,31 +35,31 @@ "LICENSE" ], "devDependencies": { - "@types/mocha": "10.0.1", - "@types/power-assert": "1.5.8", - "@typescript-eslint/parser": "^5.59.11", - "babel-loader": "^9.1.2", + "@types/mocha": "10.0.3", + "@types/power-assert": "1.5.10", + "@typescript-eslint/parser": "^6.10.0", + "babel-loader": "^9.1.3", "babel-plugin-unassert": "^3.2.0", - "concurrently": "^8.2.0", - "eslint": "^8.42.0", + "concurrently": "^8.2.2", + "eslint": "^8.53.0", "eslint-plugin-redos": "^4.4.5", "eslint-webpack-plugin": "^4.0.1", - "glob": "^10.2.7", + "glob": "^10.3.10", "karma": "^6.4.2", "karma-chrome-launcher": "^3.2.0", - "karma-coverage": "^2.2.0", + "karma-coverage": "^2.2.1", "karma-firefox-launcher": "^2.1.2", "karma-mocha": "^2.0.1", "karma-power-assert": "^1.0.0", "mocha": "^10.2.0", - "npm-check-updates": "^16.10.12", - "semver": "^7.5.1", - "spica": "0.0.736", - "ts-loader": "^9.4.3", - "typescript": "5.1.3", - "webpack": "^5.86.0", + "npm-check-updates": "^16.14.6", + "semver": "^7.5.4", + "spica": "0.0.761", + "ts-loader": "^9.5.0", + "typescript": "5.2.2", + "webpack": "^5.89.0", "webpack-cli": "^5.1.4", - "webpack-merge": "^5.9.0" + "webpack-merge": "^5.10.0" }, "scripts": { "update": "ncu -u && npm i --no-shrinkwrap && bundle update", diff --git a/src/layer/data/es/store.ts b/src/layer/data/es/store.ts index 989d872..d23d9ae 100644 --- a/src/layer/data/es/store.ts +++ b/src/layer/data/es/store.ts @@ -6,7 +6,7 @@ import { Prop, hasBinary } from '../database/value'; import { Observation } from 'spica/observer'; import { Cancellation } from 'spica/cancellation'; import { clock } from 'spica/chrono'; -import { concat } from 'spica/concat'; +import { push, unshift } from 'spica/array'; import { causeAsyncException } from 'spica/exception'; namespace EventStoreSchema { @@ -213,7 +213,7 @@ export abstract class EventStore { return this.memory.reflect([]) .reduce((keys, ev) => keys.at(-1) !== ev.key - ? concat(keys, [ev.key]) + ? push(keys, [ev.key]) : keys , []) .sort(); @@ -517,8 +517,8 @@ export function compose( if (!prev) return [[event]]; assert(prev.key === event.key); return prev.key === event.key - ? concat([concat([event], head)], tail) - : concat([[event]], concat([head], tail)); + ? unshift([unshift([event], head)], tail) + : unshift([[event]], unshift([head], tail)); }, [[]]); } function compose(target: E, source: E): E {