@keyv/mongo
Advanced tools
Comparing version
@@ -45,2 +45,2 @@ import EventEmitter from 'events'; | ||
export { KeyvMongo, KeyvMongo as default }; | ||
export { KeyvMongo, type KeyvMongoOptions, KeyvMongo as default }; |
@@ -9,3 +9,3 @@ // src/index.ts | ||
} from "mongodb"; | ||
var keyvMongoKeys = /* @__PURE__ */ new Set(["url", "collection", "namespace", "serialize", "deserialize", "uri", "useGridFS", "dialect"]); | ||
var keyvMongoKeys = /* @__PURE__ */ new Set(["url", "collection", "namespace", "serialize", "deserialize", "uri", "useGridFS", "dialect", "db"]); | ||
var KeyvMongo = class extends EventEmitter { | ||
@@ -269,6 +269,6 @@ ttlSupport = false; | ||
}; | ||
var src_default = KeyvMongo; | ||
var index_default = KeyvMongo; | ||
export { | ||
KeyvMongo, | ||
src_default as default | ||
index_default as default | ||
}; |
160
package.json
{ | ||
"name": "@keyv/mongo", | ||
"version": "3.0.1", | ||
"description": "MongoDB storage adapter for Keyv", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.js" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "rm -rf dist && tsup src/index.ts --format cjs,esm --dts --clean", | ||
"prepare": "yarn build", | ||
"test": "xo --fix && vitest run --coverage", | ||
"test:ci": "xo && vitest --run --sequence.setupFiles=list", | ||
"clean": "rm -rf node_modules && rm -rf ./coverage" | ||
}, | ||
"xo": { | ||
"rules": { | ||
"import/no-named-as-default": "off", | ||
"unicorn/prefer-module": "off", | ||
"unicorn/prefer-event-target": "off", | ||
"unicorn/no-array-reduce": "off", | ||
"unicorn/prefer-object-from-entries": "off", | ||
"unicorn/prefer-node-protocol": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"import/extensions": "off", | ||
"@typescript-eslint/consistent-type-imports": "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"@typescript-eslint/no-confusing-void-expression": "off", | ||
"@typescript-eslint/no-empty-function": "off" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/jaredwray/keyv.git" | ||
}, | ||
"keywords": [ | ||
"mongo", | ||
"mongodb", | ||
"keyv", | ||
"storage", | ||
"adapter", | ||
"key", | ||
"value", | ||
"store", | ||
"cache", | ||
"ttl" | ||
], | ||
"author": "Jared Wray <me@jaredwray.com> (https://jaredwray.com)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/jaredwray/keyv/issues" | ||
}, | ||
"homepage": "https://github.com/jaredwray/keyv", | ||
"dependencies": { | ||
"mongodb": "^6.8.0" | ||
}, | ||
"devDependencies": { | ||
"@keyv/test-suite": "*", | ||
"keyv": "^5.0.0", | ||
"tsd": "^0.31.1", | ||
"xo": "^0.59.3" | ||
}, | ||
"tsd": { | ||
"directory": "test" | ||
}, | ||
"files": [ | ||
"dist", | ||
"LICENSE" | ||
] | ||
} | ||
"name": "@keyv/mongo", | ||
"version": "3.0.2", | ||
"description": "MongoDB storage adapter for Keyv", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.js" | ||
} | ||
}, | ||
"xo": { | ||
"rules": { | ||
"import/no-named-as-default": "off", | ||
"unicorn/prefer-module": "off", | ||
"unicorn/prefer-event-target": "off", | ||
"unicorn/no-array-reduce": "off", | ||
"unicorn/prefer-object-from-entries": "off", | ||
"unicorn/prefer-node-protocol": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"import/extensions": "off", | ||
"@typescript-eslint/consistent-type-imports": "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"@typescript-eslint/no-confusing-void-expression": "off", | ||
"@typescript-eslint/no-empty-function": "off" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/jaredwray/keyv.git" | ||
}, | ||
"keywords": [ | ||
"mongo", | ||
"mongodb", | ||
"keyv", | ||
"storage", | ||
"adapter", | ||
"key", | ||
"value", | ||
"store", | ||
"cache", | ||
"ttl" | ||
], | ||
"author": "Jared Wray <me@jaredwray.com> (https://jaredwray.com)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/jaredwray/keyv/issues" | ||
}, | ||
"homepage": "https://github.com/jaredwray/keyv", | ||
"dependencies": { | ||
"mongodb": "^6.8.0" | ||
}, | ||
"devDependencies": { | ||
"keyv": "^5.0.0", | ||
"rimraf": "^6.0.1", | ||
"tsd": "^0.31.1", | ||
"xo": "^0.59.3", | ||
"@keyv/test-suite": "^2.0.7" | ||
}, | ||
"tsd": { | ||
"directory": "test" | ||
}, | ||
"files": [ | ||
"dist", | ||
"LICENSE" | ||
], | ||
"scripts": { | ||
"build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean", | ||
"test": "xo --fix && vitest run --coverage", | ||
"test:ci": "xo && vitest --run --sequence.setupFiles=list", | ||
"clean": "rimraf ./node_modules ./coverage ./dist" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26213
0.84%0
-100%5
25%