tfk-saksbehandling-skoleskyss-tbr
Advanced tools
Comparing version 6.0.0 to 6.0.1
10
index.js
@@ -19,7 +19,7 @@ 'use strict' | ||
} | ||
const basePath = require('path').resolve(__dirname) | ||
const isFile = require('is-file') | ||
const skoleid = parseInt(options.skoleid, 10) | ||
const fileName = 'lib/data/' + skoleid + '.json' | ||
const fileNameSpecials = 'lib/data/specials/' + skoleid + '.json' | ||
const fileName = basePath + '/lib/data/' + skoleid + '.json' | ||
const fileNameSpecials = basePath + '/lib/data/specials/' + skoleid + '.json' | ||
const postnummer = parseInt(options.postnummer, 10) | ||
@@ -31,3 +31,3 @@ const gatenavn = options.gatenavn | ||
if (isFile(fileNameSpecials)) { | ||
const specials = require('./' + fileNameSpecials) | ||
const specials = require(fileNameSpecials) | ||
if (specials[postnummer.toString()]) { | ||
@@ -50,3 +50,3 @@ var isSnowflake = false | ||
if (isFile(fileName)) { | ||
const zips = require('./' + fileName) | ||
const zips = require(fileName) | ||
return zips.indexOf(postnummer) > -1 | ||
@@ -53,0 +53,0 @@ } else { |
{ | ||
"name": "tfk-saksbehandling-skoleskyss-tbr", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Checks if TBR is transporter", | ||
@@ -36,5 +36,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"coveralls": "2.11.11", | ||
"coveralls": "2.11.12", | ||
"standard": "7.1.2", | ||
"tap": "6.2.0" | ||
"tap": "6.3.0" | ||
}, | ||
@@ -44,2 +44,2 @@ "dependencies": { | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
159075
4430