Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
With related changes to imports.
  • Loading branch information
stefandesu committed Oct 8, 2024
1 parent 5c5af4d commit a1fd66f
Show file tree
Hide file tree
Showing 11 changed files with 646 additions and 262 deletions.
4 changes: 2 additions & 2 deletions bin/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ indexes && log("- will create indexes", type ? `for type ${type}` : "for all typ
format && log(`- with format: ${format}`)
log("")

import validate from "jskos-validate"
import { validate } from "jskos-validate"
import config from "../config/index.js"
import { v5 as uuidv5 } from "uuid"
import path from "node:path"
import anystream from "json-anystream"
import * as anystream from "json-anystream"
import _ from "lodash"
import * as utils from "../utils/index.js"
import * as db from "../utils/db.js"
Expand Down
870 changes: 627 additions & 243 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"devDependencies": {
"chai": "^5.1.1",
"chai-as-promised": "^8.0.0",
"chai-http": "^5.0.0",
"eslint": "~9.10.0",
"eslint-config-gbv": "~2.0.0",
"chai-http": "^5.1.1",
"eslint": "~9.11",
"eslint-config-gbv": "~2.1",
"esmock": "^2.6.7",
"jsonwebtoken": "^9.0.2",
"lint-staged": "^15.2.10",
Expand All @@ -55,23 +55,23 @@
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"axios": "^1.7.7",
"cocoda-sdk": "^3.4.11",
"cocoda-sdk": "^3.4.12",
"dotenv": "^16.4.5",
"ejs": "^3.1.10",
"express": "^4.21.0",
"express-basic-auth": "^1.2.1",
"ipaddr.js": "^2.2.0",
"jskos-tools": "^1.0.40",
"jskos-validate": "~0.6.0",
"json-anystream": "^1.1.1",
"jskos-tools": "^1.0.42",
"jskos-validate": "^1.0.0",
"json-anystream": "^2.0.1",
"JSONStream": "^1.3.5",
"lodash": "^4.17.21",
"meow": "^13.2.0",
"mongodb": "^6.9.0",
"mongoose": "^8.6.2",
"mongoose": "^8.7.0",
"morgan": "^1.10.0",
"nocache": "^4.0.0",
"nodemon": "^3.1.4",
"nodemon": "^3.1.7",
"passport": "~0.7.0",
"passport-anonymous": "^1.0.1",
"passport-jwt": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion services/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from "lodash"
import config from "../config/index.js"
import * as utils from "../utils/index.js"
import jskos from "jskos-tools"
import validate from "jskos-validate"
import { validate } from "jskos-validate"

import { Annotation, Mapping, Concept } from "../models/index.js"
import { EntityNotFoundError, DatabaseAccessError, InvalidBodyError, MalformedBodyError, MalformedRequestError, ForbiddenAccessError } from "../errors/index.js"
Expand Down
2 changes: 1 addition & 1 deletion services/concepts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _ from "lodash"
import jskos from "jskos-tools"
import validate from "jskos-validate"
import { validate } from "jskos-validate"
import * as utils from "../utils/index.js"

import { Concept } from "../models/concepts.js"
Expand Down
2 changes: 1 addition & 1 deletion services/concordances.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from "lodash"
import config from "../config/index.js"
import * as utils from "../utils/index.js"
import jskos from "jskos-tools"
import validate from "jskos-validate"
import { validate } from "jskos-validate"

import { Concordance } from "../models/concordances.js"
import { Mapping } from "../models/mappings.js"
Expand Down
2 changes: 1 addition & 1 deletion services/mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from "lodash"
import config from "../config/index.js"
import * as utils from "../utils/index.js"
import jskos from "jskos-tools"
import validate from "jskos-validate"
import { validate } from "jskos-validate"
import { cdk } from "cocoda-sdk"

import { Mapping } from "../models/mappings.js"
Expand Down
2 changes: 1 addition & 1 deletion services/schemes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from "lodash"
import config from "../config/index.js"
import * as utils from "../utils/index.js"
import validate from "jskos-validate"
import { validate } from "jskos-validate"

import { MalformedBodyError, MalformedRequestError, EntityNotFoundError, DatabaseAccessError, InvalidBodyError } from "../errors/index.js"
import { Scheme } from "../models/schemes.js"
Expand Down
2 changes: 1 addition & 1 deletion services/validate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import validate from "jskos-validate"
import { validate } from "jskos-validate"
import jskos from "jskos-tools"
import { schemeService } from "./schemes.js"
const guessObjectType = jskos.guessObjectType
Expand Down
2 changes: 1 addition & 1 deletion test/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function exec(command, options) {
}

import Stream from "node:stream"
import anystream from "json-anystream"
import * as anystream from "json-anystream"

export async function arrayToStream(array) {
const readable = new Stream.Readable({ objectMode: true })
Expand Down
2 changes: 1 addition & 1 deletion utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { v4 as uuid } from "uuid"

import { Transform, Readable } from "node:stream"
import JSONStream from "JSONStream"
import anystream from "json-anystream"
import * as anystream from "json-anystream"
import express from "express"
import * as searchHelper from "./searchHelper.js"

Expand Down

0 comments on commit a1fd66f

Please sign in to comment.