Skip to content

Commit baac9ca

Browse files
committed
Callback bug in node v10 fixed
1 parent 1d16e1f commit baac9ca

File tree

2 files changed

+5
-60
lines changed

2 files changed

+5
-60
lines changed

lib/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ exports.mkdir = function (path, fn) {
129129
};
130130

131131
exports.write = function (path, str) {
132-
fs.writeFile(path, str);
132+
fs.writeFileSync(path, str);
133133
console.log(' \x1b[36mcreated\x1b[0m : ' + path);
134134
};
135135

package.json

Lines changed: 4 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,7 @@
11
{
2-
"_args": [
3-
[
4-
{
5-
"raw": "contentstack-cli",
6-
"scope": null,
7-
"escapedName": "contentstack-cli",
8-
"name": "contentstack-cli",
9-
"rawSpec": "",
10-
"spec": "latest",
11-
"type": "tag"
12-
},
13-
"D:\\test\\built-io-docs"
14-
]
15-
],
16-
"_from": "contentstack-cli@latest",
17-
"_id": "contentstack-cli@3.0.2",
18-
"_inCache": true,
19-
"_location": "/contentstack-cli",
20-
"_nodeVersion": "4.4.7",
21-
"_npmOperationalInternal": {
22-
"host": "s3://npm-registry-packages",
23-
"tmp": "tmp/contentstack-cli-3.0.2.tgz_1497933476999_0.6207987228408456"
24-
},
25-
"_npmUser": {
26-
"name": "hiteshbal",
27-
"email": "hitesh.baldaniya@raweng.com"
28-
},
29-
"_npmVersion": "2.15.8",
30-
"_phantomChildren": {},
31-
"_requested": {
32-
"raw": "contentstack-cli",
33-
"scope": null,
34-
"escapedName": "contentstack-cli",
35-
"name": "contentstack-cli",
36-
"rawSpec": "",
37-
"spec": "latest",
38-
"type": "tag"
39-
},
40-
"_requiredBy": [
41-
"#USER"
42-
],
43-
"_resolved": "https://registry.npmjs.org/contentstack-cli/-/contentstack-cli-3.0.2.tgz",
44-
"_shasum": "c542ea7881574697c09de0a563cc0cb686c4f37e",
45-
"_shrinkwrap": null,
46-
"_spec": "contentstack-cli",
47-
"_where": "D:\\test\\built-io-docs",
482
"author": {
49-
"name": "Built.io Contentstack",
50-
"url": "https://www.built.io/"
3+
"name": "Contentstack",
4+
"url": "https://www.contentstack.com/"
515
},
526
"bin": {
537
"contentstack": "./bin/index.js"
@@ -63,17 +17,10 @@
6317
"request": "2.79.0",
6418
"resolve": "1.1.7"
6519
},
66-
"description": "Built.io Contentstack Command Line Interface(CLI).",
67-
"devDependencies": {},
68-
"directories": {},
69-
"dist": {
70-
"shasum": "c542ea7881574697c09de0a563cc0cb686c4f37e",
71-
"tarball": "https://registry.npmjs.org/contentstack-cli/-/contentstack-cli-3.0.2.tgz"
72-
},
20+
"description": "Contentstack Command Line Interface(CLI).",
7321
"engines": {
7422
"node": ">=0.10.0"
7523
},
76-
"gitHead": "dbb1c0d1db521546f8a39059a0f1e4001c007881",
7724
"license": "MIT",
7825
"main": "index.js",
7926
"maintainers": [
@@ -87,8 +34,6 @@
8734
}
8835
],
8936
"name": "contentstack-cli",
90-
"optionalDependencies": {},
9137
"readme": "ERROR: No README data found!",
92-
"scripts": {},
93-
"version": "3.0.4"
38+
"version": "3.0.5"
9439
}

0 commit comments

Comments
 (0)