File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ const encode = (obj, opt = {}) => {
88 opt . newline = opt . newline === true
99 opt . sort = opt . sort === true
1010 opt . whitespace = opt . whitespace === true || opt . align === true
11+ // The `typeof` check is required because accessing the `process` directly fails on browsers.
1112 /* istanbul ignore next */
12- opt . platform = opt . platform || process ? .platform
13+ opt . platform = opt . platform || ( typeof process !== 'undefined' && process . platform )
1314 opt . bracketedArray = opt . bracketedArray !== false
1415
1516 /* istanbul ignore next */
@@ -172,8 +173,8 @@ const decode = (str, opt = {}) => {
172173 const remove = [ ]
173174 for ( const k of Object . keys ( out ) ) {
174175 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 ] ) ) {
177178 continue
178179 }
179180
Original file line number Diff line number Diff line change 22 "author" : " GitHub Inc." ,
33 "name" : " ini" ,
44 "description" : " An ini encoder/decoder for node" ,
5- "version" : " 4.1.0 " ,
5+ "version" : " 4.1.1 " ,
66 "repository" : {
77 "type" : " git" ,
88 "url" : " https://github.com/npm/ini.git"
2020 },
2121 "devDependencies" : {
2222 "@npmcli/eslint-config" : " ^4.0.0" ,
23- "@npmcli/template-oss" : " 4.13.0 " ,
23+ "@npmcli/template-oss" : " 4.15.1 " ,
2424 "tap" : " ^16.0.1"
2525 },
2626 "license" : " ISC" ,
3333 },
3434 "templateOSS" : {
3535 "//@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 " ,
3737 "publish" : " true"
3838 },
3939 "tap" : {
Original file line number Diff line number Diff line change 103103 "glob": "^10.2.7",
104104 "graceful-fs": "^4.2.11",
105105 "hosted-git-info": "^6.1.1",
106- "ini": "^4.1.0 ",
106+ "ini": "^4.1.1 ",
107107 "init-package-json": "^5.0.0",
108108 "is-cidr": "^4.0.2",
109109 "json-parse-even-better-errors": "^3.0.0",
65696569 "inBundle": true
65706570 },
65716571 "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 ==",
65756575 "inBundle": true,
65766576 "engines": {
65776577 "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
Original file line number Diff line number Diff line change 7070 "glob" : " ^10.2.7" ,
7171 "graceful-fs" : " ^4.2.11" ,
7272 "hosted-git-info" : " ^6.1.1" ,
73- "ini" : " ^4.1.0 " ,
73+ "ini" : " ^4.1.1 " ,
7474 "init-package-json" : " ^5.0.0" ,
7575 "is-cidr" : " ^4.0.2" ,
7676 "json-parse-even-better-errors" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments