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: e569e054795fb455ece1c7ef82d01282a631407e
Choose a head ref
  • 17 commits
  • 6 files changed
  • 6 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
  2. Verified

    This commit was signed with the committer’s verified signature.
    snyk-bot Snyk bot
    Copy the full SHA
    0c0d163 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 20, 2023

  1. Copy the full SHA
    79afff7 View commit details
  2. fix: resolved conflicts

    vkalta committed Oct 20, 2023
    Copy the full SHA
    ee97dc5 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

Commits on Oct 26, 2023

  1. Merge pull request #19 from contentstack/snyk-upgrade-f1e5debe43e8299…

    …41aa6bba36f50106c
    
    fix/CS-41994
    netrajpatel authored Oct 26, 2023

    Verified

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

Commits on Nov 6, 2023

  1. Copy the full SHA
    f16f3ac View commit details
  2. Copy the full SHA
    093c17b View commit details
  3. Verified

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

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

Commits on Nov 8, 2023

  1. Verified

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

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e569e05 View commit details
Showing with 174 additions and 97 deletions.
  1. +1 −1 .talismanrc
  2. +169 −88 package-lock.json
  3. +2 −2 package.json
  4. +0 −2 src/config.ts
  5. +2 −2 src/mongodb.ts
  6. +0 −2 typings/config.d.ts
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fileignoreconfig:
- filename: package-lock.json
checksum: d897527a99b2eb7c6edd38f3171b998297d53f10e7897d57c1fc7c446e275379
checksum: b9989022679f3ffdc44f7bae43618855ee966f41561bd0a804bff91fe9c370b2
version: ""
257 changes: 169 additions & 88 deletions package-lock.json
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.7",
"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.1.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?.value) {
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: {