From 8d5f6cdb9530d13448f5125571b9cadc8c0fa213 Mon Sep 17 00:00:00 2001 From: Shilo Date: Tue, 2 Jul 2024 14:38:08 +1000 Subject: [PATCH] Fix: Added missing wkt parser lib --- package-lock.json | 57 +++++++++++++++++++++++++++ package.json | 1 + typescript/api/services/OniService.ts | 2 +- 3 files changed, 59 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index c6f10e7ed..a25dabfd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -85,6 +85,7 @@ "typescript-require": "~0.3.0", "url-pattern": "^1.0.3", "webpack": "^5.92.1", + "wkt-parser-helper": "^4.1.0", "zone.js": "^0.14.7" }, "devDependencies": { @@ -9604,6 +9605,54 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/wellknown": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/wellknown/-/wellknown-0.5.0.tgz", + "integrity": "sha512-za5vTLuPF9nmrVOovYQwNEWE/PwJCM+yHMAj4xN1WWUvtq9OElsvKiPL0CR9rO8xhrYqL7NpI7IknqR8r6eYOg==", + "dependencies": { + "concat-stream": "~1.5.0", + "minimist": "~1.2.0" + }, + "bin": { + "wellknown": "cli.js" + } + }, + "node_modules/wellknown/node_modules/concat-stream": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", + "integrity": "sha512-H6xsIBfQ94aESBG8jGHXQ7i5AEpy5ZeVaLDOisDICiTCKpqEfr34/KmTrspKQNoLKNu9gTkovlpQcUi630AKiQ==", + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "inherits": "~2.0.1", + "readable-stream": "~2.0.0", + "typedarray": "~0.0.5" + } + }, + "node_modules/wellknown/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/wellknown/node_modules/process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha512-yN0WQmuCX63LP/TMvAg31nvT6m4vDqJEiiv2CAZqWOGNWutc9DfDk1NPYYmKUFmaVM2UwDowH4u5AHWYP/jxKw==" + }, + "node_modules/wellknown/node_modules/readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha512-TXcFfb63BQe1+ySzsHZI/5v1aJPCShfqvWJ64ayNImXMsN1Cd0YGk/wm8KB7/OeessgPc9QvS9Zou8QTkFzsLw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" + } + }, "node_modules/whelk": { "version": "6.0.1", "license": "MIT", @@ -9759,6 +9808,14 @@ "node": ">=0.1.90" } }, + "node_modules/wkt-parser-helper": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/wkt-parser-helper/-/wkt-parser-helper-4.1.0.tgz", + "integrity": "sha512-8dm3xRt/f5wF14wm+Ryx9HzcutOaC4uE+rvyhmKL1SlqVDVXDKI832ALVs3NveyP54iOi0xgfFEpMeY7tdhnOQ==", + "dependencies": { + "wellknown": "^0.5.0" + } + }, "node_modules/word-wrap": { "version": "1.2.5", "dev": true, diff --git a/package.json b/package.json index 36d6d8456..2f883f856 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,7 @@ "typescript-require": "~0.3.0", "url-pattern": "^1.0.3", "webpack": "^5.92.1", + "wkt-parser-helper": "^4.1.0", "zone.js": "^0.14.7" }, "scripts": { diff --git a/typescript/api/services/OniService.ts b/typescript/api/services/OniService.ts index 2f7bd2ee9..dee4b956e 100644 --- a/typescript/api/services/OniService.ts +++ b/typescript/api/services/OniService.ts @@ -30,7 +30,7 @@ const finished = promisify(stream.finished); import {languageProfileURI} from "language-data-commons-vocabs"; import * as mime from 'mime-types'; import {ROCrate} from "ro-crate"; -const { convertToWK } = require('wkt-parser-helper'); +import { convertToWK } from 'wkt-parser-helper'; declare var sails: Sails; declare var RecordsService, UsersService;