Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DevDockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation and others. Licensed under the MIT license.
# SPDX-License-Identifier: MIT

FROM docker.io/library/node:24-bullseye
FROM docker.io/library/node:24-trixie
ENV APPDIR=/opt/service

## get SSH server running
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation and others. Licensed under the MIT license.
# SPDX-License-Identifier: MIT

FROM docker.io/library/node:24-bullseye
FROM docker.io/library/node:24-trixie
ENV APPDIR=/opt/service

## get SSH server running
Expand Down
28 changes: 28 additions & 0 deletions lib/scancodeMap.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright (c) Microsoft Corporation and others. Licensed under the MIT license.
// SPDX-License-Identifier: MIT

/**
* A scancode license key (e.g., 'mit', 'apache-2.0', 'gpl-3.0')
*/
export type ScancodeKey = string

/**
* An SPDX license identifier (e.g., 'MIT', 'Apache-2.0', 'GPL-3.0-only')
* or a LicenseRef-scancode-* reference for licenses not in SPDX
*/
export type SpdxIdentifier = string

/**
* Mapping from scancode license keys to SPDX identifiers.
* Based on https://scancode-licensedb.aboutcode.org/index.json
*
* @example
* ```js
* const scancodeMap = require('./scancodeMap')
* const spdxId = scancodeMap.get('mit') // 'MIT'
* const spdxId2 = scancodeMap.get('apache-2.0') // 'Apache-2.0'
* ```
*/
declare const scancodeMap: Map<ScancodeKey, SpdxIdentifier>

export = scancodeMap
23 changes: 18 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"winston": "^3.17.0"
},
"devDependencies": {
"@tsconfig/node20": "20.1.6",
"@tsconfig/node24": "24.0.2",
"@tsconfig/strictest": "2.0.5",
"@types/base-64": "0.1.3",
"@types/body-parser": "1.19.6",
Expand Down
7 changes: 5 additions & 2 deletions test/providers/store/mongoDefinitionPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ const shouldPaginateSearchCorrectly = function () {
})

after('cleanup database', async function () {
await mongoStore.collection.drop()
await mongoStore.close()
if (mongoStore) {
await mongoStore.collection.drop()
await mongoStore.close()
}

await mongoServer.stop()
})

Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node20/tsconfig.json"],
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node24/tsconfig.json"],
"compilerOptions": {
"allowJs": true,
"checkJs": true,
Expand Down Expand Up @@ -32,6 +32,8 @@
"lib/pypiCoordinatesMapper.js",
"lib/rateLimit.d.ts",
"lib/rateLimit.js",
"lib/scancodeMap.d.ts",
"lib/scancodeMap.js",
"providers/caching/memory.d.ts",
"providers/caching/memory.js",
"providers/caching/redis.d.ts",
Expand Down