Comparing version 0.0.2 to 0.0.3
@@ -30,3 +30,3 @@ module.exports = { | ||
try { | ||
importFile = require(attributes.src); //Import the component. | ||
importFile = require(process.cwd() + "/" + attributes.src); //Import the component. | ||
} catch (e) { | ||
@@ -33,0 +33,0 @@ throw new Error("" + attributes.src + " is not a valid component path."); //Throw an error if the path is not valid. |
@@ -18,3 +18,3 @@ module.exports = (html, cmo, options, blb) => { | ||
//get amount of elements in components | ||
if (html.length > 0) { | ||
if (html?.length > 0) { | ||
let cpy = Object.keys(components) | ||
@@ -21,0 +21,0 @@ for (let m = 0; m < cpy.length; m++) { |
@@ -7,3 +7,3 @@ let pullData = require('./pullData.js'); | ||
var vars = str.match(/{{[^}]*}}/g); | ||
var vars = str?.match(/{{[^}]*}}/g); | ||
if (vars) { | ||
@@ -10,0 +10,0 @@ vars.forEach(function(v) { |
{ | ||
"name": "feat.js", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "src/index.js", | ||
@@ -9,3 +9,3 @@ "scripts": { | ||
}, | ||
"homepage":"https://github.com/Feat-js/feat", | ||
"homepage":"https://github.com/Feat-js/feat#readme", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
@@ -270,3 +270,3 @@ <br><br> | ||
## 7. Have fun | ||
### 7. Have fun | ||
@@ -273,0 +273,0 @@ Please make sure that you have fun while contributing to FeatJS. |
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
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
86244