Socket
Socket
Sign inDemoInstall

feat.js

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feat.js - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

components/component.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc