File tree 4 files changed +12
-11
lines changed
4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ const encode = (obj, opt = {}) => {
8
8
opt . newline = opt . newline === true
9
9
opt . sort = opt . sort === true
10
10
opt . whitespace = opt . whitespace === true || opt . align === true
11
+ // The `typeof` check is required because accessing the `process` directly fails on browsers.
11
12
/* istanbul ignore next */
12
- opt . platform = opt . platform || process ? .platform
13
+ opt . platform = opt . platform || ( typeof process !== 'undefined' && process . platform )
13
14
opt . bracketedArray = opt . bracketedArray !== false
14
15
15
16
/* istanbul ignore next */
@@ -172,8 +173,8 @@ const decode = (str, opt = {}) => {
172
173
const remove = [ ]
173
174
for ( const k of Object . keys ( out ) ) {
174
175
if ( ! hasOwnProperty . call ( out , k ) ||
175
- typeof out [ k ] !== 'object' ||
176
- Array . isArray ( out [ k ] ) ) {
176
+ typeof out [ k ] !== 'object' ||
177
+ Array . isArray ( out [ k ] ) ) {
177
178
continue
178
179
}
179
180
Original file line number Diff line number Diff line change 2
2
"author" : " GitHub Inc." ,
3
3
"name" : " ini" ,
4
4
"description" : " An ini encoder/decoder for node" ,
5
- "version" : " 4.1.0 " ,
5
+ "version" : " 4.1.1 " ,
6
6
"repository" : {
7
7
"type" : " git" ,
8
8
"url" : " https://github.com/npm/ini.git"
20
20
},
21
21
"devDependencies" : {
22
22
"@npmcli/eslint-config" : " ^4.0.0" ,
23
- "@npmcli/template-oss" : " 4.13.0 " ,
23
+ "@npmcli/template-oss" : " 4.15.1 " ,
24
24
"tap" : " ^16.0.1"
25
25
},
26
26
"license" : " ISC" ,
33
33
},
34
34
"templateOSS" : {
35
35
"//@npmcli/template-oss" : " This file is partially managed by @npmcli/template-oss. Edits may be overwritten." ,
36
- "version" : " 4.13.0 " ,
36
+ "version" : " 4.15.1 " ,
37
37
"publish" : " true"
38
38
},
39
39
"tap" : {
Original file line number Diff line number Diff line change 103
103
"glob": "^10.2.7",
104
104
"graceful-fs": "^4.2.11",
105
105
"hosted-git-info": "^6.1.1",
106
- "ini": "^4.1.0 ",
106
+ "ini": "^4.1.1 ",
107
107
"init-package-json": "^5.0.0",
108
108
"is-cidr": "^4.0.2",
109
109
"json-parse-even-better-errors": "^3.0.0",
6569
6569
"inBundle": true
6570
6570
},
6571
6571
"node_modules/ini": {
6572
- "version": "4.1.0 ",
6573
- "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.0 .tgz",
6574
- "integrity": "sha512-HLR38RSF2iulAzc3I/sma4CoYxQP844rPYCNfzGDOHqa/YqVlwuuZgBx6M50/X8dKgzk0cm1qRg3+47mK2N+cQ ==",
6572
+ "version": "4.1.1 ",
6573
+ "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.1 .tgz",
6574
+ "integrity": "sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g ==",
6575
6575
"inBundle": true,
6576
6576
"engines": {
6577
6577
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
Original file line number Diff line number Diff line change 70
70
"glob" : " ^10.2.7" ,
71
71
"graceful-fs" : " ^4.2.11" ,
72
72
"hosted-git-info" : " ^6.1.1" ,
73
- "ini" : " ^4.1.0 " ,
73
+ "ini" : " ^4.1.1 " ,
74
74
"init-package-json" : " ^5.0.0" ,
75
75
"is-cidr" : " ^4.0.2" ,
76
76
"json-parse-even-better-errors" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments