Skip to content

Commit bab0fe7

Browse files
authored
Merge pull request #55 from contentstack/bug/utils-lib
Update Utils Package
2 parents f26e286 + de464a3 commit bab0fe7

8 files changed

Lines changed: 231 additions & 262 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
## Change log
12

2-
3+
### Version: 3.13.2
4+
#### Date: May-26-2021
5+
##### Dependency:
6+
- Update Utils SDK dependency version
7+
38
### Version: 3.13.1
49
#### Date: Apr-16-2021
510
##### Bug fix:

dist/nativescript/contentstack.js

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

dist/react-native/contentstack.js

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

dist/web/contentstack.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/node/contentstack-demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ContentstackDemo {
2626
*/
2727
getEntries(contentTypeUid) {
2828
contentTypeUid = contentTypeUid || 'source'
29-
return this.Stack.ContentType('test').Query().includeContentType().toJSON().find()
29+
return this.Stack.ContentType(contentTypeUid).Query().includeContentType().toJSON().find()
3030
//return this.Stack.getContentTypes(contentTypeUid)
3131

3232
}

package-lock.json

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

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contentstack",
3-
"version": "3.13.1",
3+
"version": "3.13.2",
44
"description": "Contentstack Javascript SDK",
55
"homepage": "https://www.contentstack.com/",
66
"author": {
@@ -10,17 +10,17 @@
1010
"main": "dist/node/contentstack.js",
1111
"browser": "dist/web/contentstack.js",
1212
"types": "./index.d.ts",
13-
"_id": "contentstack@3.13.1",
13+
"_id": "contentstack@3.13.2",
1414
"scripts": {
1515
"test": "npm run test:e2e && npm run test:typescript",
1616
"test:e2e": "istanbul cover tape test/index.js | tap-html --out ./tap-html.html",
1717
"test:typescript": "jest --testPathPattern=test/typescript",
1818
"automate": "node test.js",
19-
"buildnode": "webpack --config webpack/webpack.node.js",
20-
"buildweb": "webpack -p --config webpack/webpack.web.js",
21-
"buildreactnative": "webpack --config webpack/webpack.react-native.js",
22-
"buildnativescript": "webpack --config webpack/webpack.nativescript.js",
23-
"build": "NODE_ENV=production && npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript",
19+
"build:node": "webpack --config webpack/webpack.node.js",
20+
"build:web": "webpack -p --config webpack/webpack.web.js",
21+
"build:react-native": "webpack --config webpack/webpack.react-native.js",
22+
"build:native-script": "webpack --config webpack/webpack.nativescript.js",
23+
"build": "NODE_ENV=production && npm run build:node && npm run build:web && npm run build:react-native && npm run build:native-script",
2424
"generate-docs": "node_modules/.bin/jsdoc --configure docs-config.json --verbose",
2525
"prepare": "npm run build",
2626
"pretest": "npm run build"
@@ -54,14 +54,14 @@
5454
],
5555
"dist": {
5656
"shasum": "a328ed07240476a26b31a23261355dc929e1da63",
57-
"tarball": "https://registry.npmjs.org/contentstack/-/contentstack-3.13.1.tgz"
57+
"tarball": "https://registry.npmjs.org/contentstack/-/contentstack-3.13.2.tgz"
5858
},
5959
"license": "MIT",
6060
"directories": {},
61-
"_resolved": "https://registry.npmjs.org/contentstack/-/contentstack-3.13.1.tgz",
61+
"_resolved": "https://registry.npmjs.org/contentstack/-/contentstack-3.13.2.tgz",
6262
"_npmOperationalInternal": {
6363
"host": "packages-18-east.internal.npmjs.com",
64-
"tmp": "tmp/contentstack-3.13.1.tgz_1477830884275_0.9869455888401717"
64+
"tmp": "tmp/contentstack-3.13.2.tgz_1477830884275_0.9869455888401717"
6565
},
6666
"devDependencies": {
6767
"@types/jest": "^26.0.13",
@@ -80,9 +80,9 @@
8080
"istanbul": "^0.4.5",
8181
"jest": "^26.4.2",
8282
"jest-html-reporters": "^2.0.3",
83-
"jsdoc": "^3.6.5",
83+
"jsdoc": "^3.6.7",
8484
"jshint": "^2.12.0",
85-
"nodemailer": "^4.3.1",
85+
"nodemailer": "^6.6.1",
8686
"request": "^2.88.2",
8787
"string-replace-loader": "1.3.0",
8888
"string-replace-webpack-plugin": "0.1.3",
@@ -98,7 +98,7 @@
9898
"webpack-merge": "4.1.0"
9999
},
100100
"dependencies": {
101-
"@contentstack/utils": "1.0.0",
101+
"@contentstack/utils": "^1.0.1",
102102
"es6-promise": "4.1.1",
103103
"isomorphic-fetch": "^3.0.0",
104104
"localStorage": "1.0.3"

src/core/contentstack.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Stack from "./stack";
22
import CacheProvider from './cache-provider/index';
33
import ContentstackRegion from "./contentstackregion";
4-
import {render , renderContent} from '@contentstack/utils';
54

65
/**
76
* @class
@@ -26,25 +25,7 @@ class Contentstack {
2625
this.CachePolicy = CacheProvider.policies;
2726
this.Region = ContentstackRegion;
2827

29-
this.Utils = {
30-
/**
31-
* @memberof Contentstack
32-
* @description Renders embedded objects in Rich text from Entry or Multiple Entry Object.
33-
*
34-
* @param {EntryEmbedable| EntryEmbedable[]} entry - Objects that contains RTE with embedded objects
35-
* @param {string[]} keyPaths - Key paths for RTE contents in Entry object
36-
* @param {RenderOption?} renderOption - Optional render options to render content
37-
*/
38-
render,
39-
/**
40-
* @memberof Contentstack
41-
* @description Renders embedded objects in Rich text from String or String of array.
42-
* @param {string | string[]} content - RTE content to render
43-
* @param {EntryEmbedable} options.entry - Entry object containing embedded objects
44-
* @param {RenderOption?} options.renderOption - Optional render options to render content
45-
*/
46-
renderContent
47-
}
28+
this.Utils = require('@contentstack/utils');
4829
}
4930
/**
5031

0 commit comments

Comments
 (0)