Comparing version 1.0.0 to 1.0.1
@@ -12,2 +12,3 @@ /** | ||
const fs = require('fs') | ||
const path = require('path') | ||
@@ -24,3 +25,3 @@ module.exports = { | ||
var finalString = words | ||
fs.readFile('swearwords.txt', 'utf8', (err, data) => { | ||
fs.readFile(path.join(__dirname,'swearwords.txt'), 'utf8', (err, data) => { | ||
if (err) throw err | ||
@@ -27,0 +28,0 @@ // Trim down file input to remove weird encoding/returns |
{ | ||
"name": "no-swears", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Filter swearwords out of your strings automagically", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
4644
65