Skip to content

Commit afd6183

Browse files
author
Aamod Pisat
committed
made code changes
1 parent ce96a84 commit afd6183

File tree

5 files changed

+25
-51
lines changed

5 files changed

+25
-51
lines changed

package.json

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"buildnode": "webpack --config webpack/webpack.node.js",
1616
"buildweb": "webpack -p --config webpack/webpack.web.js",
1717
"buildreactnative": "webpack --config webpack/webpack.react-native.js",
18+
"buildall": "npm run buildnode;npm run buildweb;npm run buildreactnative",
1819
"generate-docs": "node_modules/.bin/jsdoc --configure docs-config.json --verbose"
1920
},
2021
"repository": {
@@ -51,31 +52,28 @@
5152
"tmp": "tmp/contentstack-3.0.0.tgz_1477830884275_0.9869455888401717"
5253
},
5354
"devDependencies": {
54-
"babel-core": "^6.24.0",
55-
"babel-loader": "^6.4.1",
56-
"babel-plugin-transform-runtime": "^6.23.0",
57-
"babel-preset-env": "^1.3.2",
58-
"babel-preset-es2015": "^6.16.0",
59-
"babel-preset-es2016": "^6.22.0",
60-
"babel-preset-stage-1": "^6.22.0",
61-
"compression-webpack-plugin": "^0.3.1",
62-
"es3ify-loader": "^0.2.0",
63-
"jshint": "~2.6.3",
55+
"babel-core": "6.24.0",
56+
"babel-loader": "6.4.1",
57+
"babel-plugin-transform-runtime": "6.23.0",
58+
"babel-preset-env": "1.3.2",
59+
"babel-preset-es2015": "6.16.0",
60+
"babel-preset-es2016": "6.22.0",
61+
"babel-preset-stage-1": "6.22.0",
62+
"compression-webpack-plugin": "0.3.1",
63+
"es3ify-loader": "0.2.0",
64+
"jshint": "2.6.3",
6465
"string-replace-webpack-plugin": "0.0.3",
65-
"tap-json": "^0.1.1",
66-
"tape": "^4.4.0",
67-
"jsdoc": "^3.4.0",
68-
"uglify-js": "^2.6.2",
69-
"webpack": "^2.2.1",
70-
"webpack-md5-hash": "^0.0.5",
71-
"webpack-merge": "^0.17.0"
66+
"tap-json": "0.1.1",
67+
"tape": "4.4.0",
68+
"jsdoc": "3.4.0",
69+
"uglify-js": "2.6.2",
70+
"webpack": "2.2.1",
71+
"webpack-md5-hash": "0.0.5",
72+
"webpack-merge": "0.17.0",
73+
"babel-runtime": "6.23.0"
7274
},
7375
"dependencies": {
74-
"babel-runtime": "^6.23.0",
75-
"es6-promise": "^4.1.1",
76-
"fs": "0.0.1-security",
77-
"isomorphic-fetch": "^2.2.1",
78-
"localStorage": "1.0.3",
79-
"path": "^0.12.7"
76+
"isomorphic-fetch": "2.2.1",
77+
"localStorage": "1.0.3"
8078
}
8179
}

react-native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
module.exports = require('./dist/react-native/contentstack');
1+
import * as contentstack from 'react-native/contentstack';
2+
module.exports = contentstack;

src/runtime/node/http.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
// import * as http from 'xmlhttprequest';
2-
3-
// var HTTPRequest = http.XMLHttpRequest;
4-
5-
// export default HTTPRequest;
6-
7-
var es6 = require('es6-promise').polyfill();
8-
fetch = require('isomorphic-fetch');
1+
import fetch from 'isomorphic-fetch';
92

103
export default fetch;
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
11
import localStorage from 'localStorage';
22

33
export default localStorage;
4-
5-
// import {AsyncStorage} from 'react-native';
6-
7-
// export default class localStorage{
8-
// constructor(){
9-
10-
// }
11-
12-
// getItem(key){
13-
// AsyncStorage.getItem(key).then((value) => {
14-
// return {key:value};
15-
// });
16-
// }
17-
18-
// setItem(key, data){
19-
// return AsyncStorage.setItem(key, data);
20-
// }
21-
// }

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
'use strict';
2-
var test = require('./test/automation-script.js');
2+
const test = require('./test/automation-script.js');
33
new test();

0 commit comments

Comments
 (0)