Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
fileignoreconfig:
- filename: package-lock.json
checksum: b89941bdbdeb07c213733fef4d934e35478c5a1c6e33f2ec150e515a012b8d2d
- filename: dist/nativescript/contentstack.js
checksum: ad3c75c5c18f8b396d7338f24024c6a4fb0839fa7b471bf89b5ee6d4d07284fe
- filename: dist/react-native/contentstack.js
checksum: b0d9db0acc9bb46c67d104e7b28ae7429d775487efb38e5f5d25a2de9731a8f8
- filename: dist/node/contentstack.js
checksum: 50b0f7d9c93c53fa5df3adadae94de74089fdbd7012778b371573a2d154a8277
- filename: dist/web/contentstack.js
checksum: a9d2ee09e3409142f238901afc3efc7f731628a8c239c366360c59690de2e309
2 changes: 1 addition & 1 deletion dist/nativescript/contentstack.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/node/contentstack.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-native/contentstack.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/web/contentstack.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export class Utils {
paths?: string[]
}): void;
static renderContent(content: (string | string[]), option: Option): (string| string[]);
static jsonToHTML(option: {
entry: EntryEmbedable| EntryEmbedable[],
paths: string[],
renderOption?: RenderOption,
}): void;
}

//Enum for Contentstack Region
Expand Down
2,380 changes: 306 additions & 2,074 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"tmp": "tmp/contentstack-3.13.2.tgz_1477830884275_0.9869455888401717"
},
"devDependencies": {
"@types/jest": "^26.0.13",
"@types/jest": "^26.0.24",
"babel-core": "6.26.0",
"babel-loader": "7.1.2",
"babel-plugin-transform-runtime": "6.23.0",
Expand All @@ -79,26 +79,26 @@
"http-proxy-agent": "^3.0.0",
"istanbul": "^0.4.5",
"jest": "^26.4.2",
"jest-html-reporters": "^2.0.3",
"jest-html-reporters": "^2.1.6",
"jsdoc": "^3.6.7",
"jshint": "^2.12.0",
"nodemailer": "^6.6.1",
"jshint": "^2.13.0",
"nodemailer": "^6.6.3",
"request": "^2.88.2",
"string-replace-loader": "1.3.0",
"string-replace-webpack-plugin": "0.1.3",
"tap-html": "^1.0.1",
"tap-json": "1.0.0",
"tape": "4.8.0",
"ts-jest": "^26.3.0",
"typescript": "^4.0.2",
"ts-jest": "^26.5.6",
"typescript": "^4.3.5",
"uglify-js": "2.8.29",
"webpack": "^4.44.1",
"webpack": "^5.44.0",
"webpack-cli": "^3.3.12",
"webpack-md5-hash": "0.0.5",
"webpack-merge": "4.1.0"
},
"dependencies": {
"@contentstack/utils": "^1.0.1",
"@contentstack/utils": "^1.0.2",
"es6-promise": "4.1.1",
"isomorphic-fetch": "^3.0.0",
"localStorage": "1.0.3"
Expand Down
4 changes: 4 additions & 0 deletions test/typescript/stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ describe('Stack tests', () => {
const option = {entry: {field: string, uid: '', _embedded_items: { field: [{ uid:'',_content_type_uid: ''}]}}};
utils.render(option);
utils.renderContent(string, option);
utils.jsonToHTML({
...option,
paths: []
});
expect(true).toBeTruthy();
done();
})
Expand Down