Skip to content

Commit c614b0d

Browse files
authored
Merge pull request #105 from contentstack/staging
Sprint 52 release
2 parents ae36dbb + e93cb8e commit c614b0d

18 files changed

+22
-21
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @contentstack/security-admin

.github/workflows/secrets-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fetch-depth: 0
1212

1313
- name: Install Expect, jq and Python
14-
run: sudo apt-get install -y expect jq python3 python3-pip wkhtmltopdf
14+
run: sudo apt-get update --fix-missing && sudo apt-get install -y expect jq python3 python3-pip wkhtmltopdf
1515

1616
- name: Install Python packages
1717
run: pip install pandas json2html tabulate
@@ -51,4 +51,4 @@ jobs:
5151
- name: Check the status of talisman scan
5252
run: |
5353
# if [[ ${{ steps.run_talisman.outcome }} == "success" ]]; then exit 0; else echo "Download the Talisman scan report from Artifact: ${{ steps.upload_report.outputs.artifact-url }}" && exit 1; fi
54-
echo "Download the Talisman scan report from Artifact: ${{ steps.upload_report.outputs.artifact-url }}";
54+
echo "Download the Talisman scan report from Artifact: ${{ steps.upload_report.outputs.artifact-url }}";

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "contentstack-cli-tsgen",
33
"description": "Generate TypeScript typings from a Stack.",
4-
"version": "2.3.1",
4+
"version": "2.3.2",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {

src/lib/tsgen/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export default function (userOptions: TSGenOptions) {
240240
define_interface(contentType, options.systemFields),
241241
'{',
242242
['/**', "Version", '*/'].join(' '),
243-
[`version: `,contentType._version,';'].join(' '),
243+
[`_version: `,contentType._version,';'].join(' '),
244244
visit_fields(contentType.schema),
245245
'}',
246246
]

tests/tsgen/boolean.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("builtin boolean field", () => {
2525
"export interface IBoolean
2626
{
2727
/** Version */
28-
version: 2 ;
28+
_version: 2 ;
2929
title: string ;
3030
boolean?: boolean ;
3131
}"

tests/tsgen/defaults.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("default single content block", () => {
1818
"export interface IMetadataSingleContentBlock
1919
{
2020
/** Version */
21-
version: 2 ;
21+
_version: 2 ;
2222
title: string ;
2323
}"
2424
`);
@@ -44,7 +44,7 @@ describe("default single webpage", () => {
4444
"export interface IMetadataSingleWebpage
4545
{
4646
/** Version */
47-
version: 2 ;
47+
_version: 2 ;
4848
title: string ;
4949
url: string ;
5050
}"

tests/tsgen/global.fields.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("global fields", () => {
2525
"export interface ISeo
2626
{
2727
/** Version */
28-
version: ;
28+
_version: ;
2929
keywords?: string ;
3030
description?: string ;
3131
}"
@@ -37,7 +37,7 @@ describe("global fields", () => {
3737
"export interface IGlobalFields
3838
{
3939
/** Version */
40-
version: 2 ;
40+
_version: 2 ;
4141
title: string ;
4242
seo?: ISeo ;
4343
}"

tests/tsgen/group.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("group", () => {
2424
"export interface Group
2525
{
2626
/** Version */
27-
version: 3 ;
27+
_version: 3 ;
2828
title: string ;
2929
multiple_group_max_limit?: [{
3030
number?: number | null ;

tests/tsgen/isodate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("builtin isodate field", () => {
2525
"export interface Isodate
2626
{
2727
/** Version */
28-
version: 2 ;
28+
_version: 2 ;
2929
title: string ;
3030
date?: string | null ;
3131
date_required: string ;

0 commit comments

Comments
 (0)