mongo-cursor-pagination
Advanced tools
Comparing version
@@ -0,1 +1,8 @@ | ||
### [8.1.2](https://github.com/mixmaxhq/mongo-cursor-pagination/compare/v8.1.1...v8.1.2) (2022-08-26) | ||
### Bug Fixes | ||
* use the transpiled version in node 12 ([a705377](https://github.com/mixmaxhq/mongo-cursor-pagination/commit/a705377f0a191dd2f27482a8cd09f46ce5825829)) | ||
### [8.1.1](https://github.com/mixmaxhq/mongo-cursor-pagination/compare/v8.1.0...v8.1.1) (2022-08-26) | ||
@@ -2,0 +9,0 @@ |
@@ -1,7 +0,7 @@ | ||
// This file was created by running mixmax-runner/scripts/migrate-module.sh | ||
// See mixmax-runner/scripts/unmigrate-module.sh for resetting this project | ||
const semver = require('semver'); | ||
let main; | ||
if (semver.lt(process.version, '7.6.0')) { | ||
// We use optional chaining (?.), so we need to use the transpiled versions | ||
// in node versions earlier than 14.0.0: | ||
if (semver.lt(process.version, '14.0.0')) { | ||
main = require('./dist/node/index.js'); | ||
@@ -8,0 +8,0 @@ } else { |
{ | ||
"name": "mongo-cursor-pagination", | ||
"version": "8.1.1", | ||
"version": "8.1.2", | ||
"description": "Make it easy to return cursor-paginated results from a Mongo collection", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"semantic-release": "SEMANTIC_COMMITLINT_SKIP=f4543f643bac890c627d538e6200c5f5a1d45ebc semantic-release", | ||
"test": "DRIVER=mongoist jest && DRIVER=native jest" | ||
"test": "npm run babelBuild; DRIVER=mongoist jest && DRIVER=native jest" | ||
}, | ||
@@ -22,0 +22,0 @@ "repository": { |
92132
0.28%