zip-to-timezone
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -32,3 +32,4 @@ "use strict"; | ||
} | ||
let fileContents = yield fs.readFileSync(`./src/${fileName}.yml`, 'utf8'); | ||
const filePath = process.cwd(); | ||
let fileContents = yield fs.readFileSync(`${filePath}/src/${fileName}.yml`, 'utf8'); | ||
let data = yaml.safeLoad(fileContents); | ||
@@ -35,0 +36,0 @@ for (const [timezone] of Object.entries(data)) { |
@@ -18,3 +18,4 @@ const fs = require('fs'); | ||
} | ||
let fileContents = await fs.readFileSync(`./src/${fileName}.yml`, 'utf8'); | ||
const filePath = process.cwd(); | ||
let fileContents = await fs.readFileSync(`${filePath}/src/${fileName}.yml`, 'utf8'); | ||
let data = yaml.safeLoad(fileContents); | ||
@@ -21,0 +22,0 @@ for (const [timezone] of Object.entries(data)) { |
{ | ||
"name": "zip-to-timezone", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node index.js", | ||
"upload": "npm version patch && npm publish" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "http://git@github.com:pmmonier/zipToTz.git" | ||
}, | ||
"author": "Pedro Monier", | ||
@@ -10,0 +15,0 @@ "license": "ISC", |
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1643547
93
1