couch-init2
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -36,7 +36,4 @@ import { InitDb } from './init_db.js' | ||
/** | ||
* @param {any} operations | ||
*/ | ||
function minimzeOperationsReport (operations) { | ||
const minimized = /** @type {OperationsSummary} */ ({}) | ||
const minimized = {} | ||
for (const [ dbName, { created, designDocs, securityDoc } ] of Object.entries(operations)) { | ||
@@ -60,3 +57,3 @@ let dbHasOp = created | ||
} | ||
return minimized | ||
return /** @type {OperationsSummary} */ (minimized) | ||
} |
@@ -1,2 +0,2 @@ | ||
import { readFile } from 'fs/promises' | ||
import { readFile } from 'node:fs/promises' | ||
import fetch from 'node-fetch' | ||
@@ -3,0 +3,0 @@ import { couchdbError } from './couchdb_error.js' |
import { readFileSync } from 'node:fs' | ||
import { readFile } from 'node:fs/promises' | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'url' | ||
import { fileURLToPath } from 'node:url' | ||
@@ -6,0 +6,0 @@ export const getJsonSync = absoluteFilePath => { |
{ | ||
"name": "couch-init2", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"type": "module", | ||
@@ -8,2 +8,3 @@ "description": "Opiniated CouchDB databases initializer", | ||
"scripts": { | ||
"check-types": "tsc -p ./jsconfig.json", | ||
"lint": "eslint -c ./.eslintrc lib test", | ||
@@ -25,2 +26,4 @@ "lint-fix": "eslint --fix -c ./.eslintrc lib test", | ||
"devDependencies": { | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.15.13", | ||
"config": "^3.3.8", | ||
@@ -27,0 +30,0 @@ "eslint": "^8.31.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
17327
0
11
347