Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: contentstack/datasync-content-store-mongodb
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9259e1b164c69f7be545472f1971e596b97d6af8
Choose a base ref
...
head repository: contentstack/datasync-content-store-mongodb
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1ae58b7a904e897d8a70cfbdf466291255ff1f9c
Choose a head ref
  • 7 commits
  • 5 files changed
  • 4 contributors

Commits on Sep 26, 2023

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    763a9be View commit details

Commits on Oct 3, 2023

  1. Copy the full SHA
    31d5a3f View commit details
  2. fix: minor fix

    vkalta committed Oct 3, 2023
    Copy the full SHA
    24695d9 View commit details
  3. fix: bumped version

    vkalta committed Oct 3, 2023
    Copy the full SHA
    bd6f371 View commit details

Commits on Oct 11, 2023

  1. Merge pull request #14 from contentstack/snyk-upgrade-efbdcac2c45e90a…

    …75e99bc82636c1fc7
    
    [Snyk] Upgrade mongodb from 5.8.0 to 6.0.0
    netrajpatel authored Oct 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    182b5cc View commit details

Commits on Oct 19, 2023

  1. Merge pull request #17 from contentstack/development

    Merge development to staging
    aman19K authored Oct 19, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    554b08f View commit details

Commits on Oct 25, 2023

  1. Merge pull request #18 from contentstack/staging

    Merge staging to master
    aman19K authored Oct 25, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1ae58b7 View commit details
Showing with 38 additions and 34 deletions.
  1. +34 −26 package-lock.json
  2. +2 −2 package.json
  3. +0 −2 src/config.ts
  4. +2 −2 src/mongodb.ts
  5. +0 −2 typings/config.d.ts
60 changes: 34 additions & 26 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@contentstack/datasync-content-store-mongodb",
"author": "Contentstack Ecosystem <ecosystem@contentstack.com>",
"version": "1.0.5",
"version": "1.0.6",
"description": "Contentstack datasync's mongodb library. Helps to store contents in mongodb",
"main": "dist/index.js",
"dependencies": {
"debug": "^4.3.4",
"lodash": "^4.17.15",
"mongodb": "^5.8.0"
"mongodb": "^6.0.0"
},
"devDependencies": {
"@types/debug": "0.0.31",
2 changes: 0 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -33,9 +33,7 @@ export const config = {
// http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html
options: {
connectTimeoutMS: 15000,
keepAlive: true,
noDelay: true,
useNewUrlParser: true,
},
unwantedKeys: {
asset: {
4 changes: 2 additions & 2 deletions src/mongodb.ts
Original file line number Diff line number Diff line change
@@ -325,7 +325,7 @@ export class Mongodb {
})
.then((result) => {
debug(`Asset unpublish status: ${JSON.stringify(result)}`)
if (result.value === null) {
if (result === null) {
return resolve(asset)
}

@@ -337,7 +337,7 @@ export class Mongodb {
},
locale: asset.locale,
uid: asset.uid,
url: result.value.url,
url: result.url,
})
.toArray()
.then((assets) => {
2 changes: 0 additions & 2 deletions typings/config.d.ts
Original file line number Diff line number Diff line change
@@ -13,9 +13,7 @@ export declare const config: {
dbName: string;
options: {
connectTimeoutMS: number;
keepAlive: boolean;
noDelay: boolean;
useNewUrlParser: boolean;
};
unwantedKeys: {
asset: {