Skip to content

Commit c018b1a

Browse files
authored
Merge pull request #15 from contentstack/development
DX | 21-08-2024 | Release
2 parents f549e8b + f386f87 commit c018b1a

File tree

7 files changed

+150
-11
lines changed

7 files changed

+150
-11
lines changed

Diff for: .github/workflows/jira.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
types: [opened]
55
jobs:
6-
security:
6+
security-jira:
77
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'snyk-bot' || contains(github.event.pull_request.head.ref, 'snyk-fix-') || contains(github.event.pull_request.head.ref, 'snyk-upgrade-')}}
88
runs-on: ubuntu-latest
99
steps:
@@ -26,3 +26,8 @@ jobs:
2626
PR: ${{ github.event.pull_request.html_url }}
2727
2828
fields: "${{ secrets.JIRA_FIELDS }}"
29+
- name: Transition issue
30+
uses: atlassian/gajira-transition@v3
31+
with:
32+
issue: ${{ steps.create.outputs.issue }}
33+
transition: ${{ secrets.JIRA_TRANSITION }}

Diff for: .github/workflows/sast-scan.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: SAST Scan
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security-sast:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Semgrep Scan
11+
run: docker run -v /var/run/docker.sock:/var/run/docker.sock -v "${PWD}:/src" returntocorp/semgrep semgrep scan --config auto

Diff for: .github/workflows/sca-scan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
types: [opened, synchronize, reopened]
55
jobs:
6-
security:
6+
security-sca:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@master

Diff for: package-lock.json

+125-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Contentstack Ecosystem <[email protected]>",
33
"name": "datasync-mongodb-sdk",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"description": "Mongodb query wrapper around contents synced via @contentstack/content-store-mongodb",
66
"main": "dist/index.js",
77
"scripts": {
@@ -29,6 +29,7 @@
2929
"debug": "^4.3.4",
3030
"jest": "^29.0.3",
3131
"jsdoc": "^4.0.0",
32+
"node-notifier": "^10.0.1",
3233
"rimraf": "^2.6.3",
3334
"ts-jest": "^29.0.2",
3435
"tslint": "^5.18.0",

Diff for: src/stack.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import {
88
merge,
9+
mergeWith,
910
remove,
1011
} from 'lodash'
1112
import {
@@ -2125,7 +2126,7 @@ export class Stack {
21252126

21262127
schemas.forEach((schema) => {
21272128
// Entry references
2128-
entryReferences = merge(entryReferences, schema[this.types.references])
2129+
entryReferences = mergeWith(entryReferences, schema[this.types.references])
21292130
// tslint:disable-next-line: forin
21302131
for (const path in schema[this.types.assets]) {
21312132
paths.push(path)

Diff for: test/data/assets.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const assets = [
88
title: 'A 1',
99
uid: 'a1',
1010
url:
11-
'https://images.contentstack.io/v3/assets/***REMOVED***/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
11+
'https://images.contentstack.io/v3/assets/blt44d99c34b040fa61/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
1212
},
1313
{
1414
_version: 1,
@@ -19,7 +19,7 @@ export const assets = [
1919
title: 'A 2',
2020
uid: 'a2',
2121
url:
22-
'https://images.contentstack.io/v3/assets/***REMOVED***/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
22+
'https://images.contentstack.io/v3/assets/blt44d99c34b040fa61/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
2323
},
2424
{
2525
_version: 2,
@@ -30,6 +30,6 @@ export const assets = [
3030
title: 'A 3',
3131
uid: 'a3',
3232
url:
33-
'https://images.contentstack.io/v3/assets/***REMOVED***/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
33+
'https://images.contentstack.io/v3/assets/blt44d99c34b040fa61/blt6788d40f2aaaab9a/5c5aae49005d89b20bb85c21/cnn.png',
3434
},
3535
]

0 commit comments

Comments
 (0)