tfk-saksbehandling-skoleskyss-fara
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -20,6 +20,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 +32,3 @@ const gatenavn = options.gatenavn | ||
if (isFile(fileNameSpecials)) { | ||
const specials = require('./' + fileNameSpecials) | ||
const specials = require(fileNameSpecials) | ||
if (specials[postnummer.toString()]) { | ||
@@ -49,3 +50,3 @@ var isSnowflake = false | ||
if (isFile(fileName)) { | ||
const zips = require('./' + fileName) | ||
const zips = require(fileName) | ||
return zips.indexOf(postnummer) > -1 | ||
@@ -52,0 +53,0 @@ } else { |
{ | ||
"name": "tfk-saksbehandling-skoleskyss-fara", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "Checks if FARA is transporter", | ||
@@ -43,5 +43,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"coveralls": "2.11.11", | ||
"coveralls": "2.11.12", | ||
"standard": "7.1.2", | ||
"tap": "6.2.0" | ||
"tap": "6.3.0" | ||
}, | ||
@@ -48,0 +48,0 @@ "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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
129325
6552
1