New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

funclate

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

funclate - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

lib/parser/index.js

@@ -84,3 +84,3 @@ 'use strict';

if (index > -1) {
name = attName.substring(index + 1);
name = (0, _utils.toCamelCase)(attName.substring(index + 1));
destination = fcProps;

@@ -87,0 +87,0 @@ }

@@ -8,2 +8,3 @@ 'use strict';

exports.interpolate = interpolate;
exports.toCamelCase = toCamelCase;
/**

@@ -61,2 +62,14 @@ * @return {*}

return statements.join(' + ');
}
/**
* Converts string to camel case.
* @param {!string} string the string to convert
* @return {string} the camel cased string
* @private
*/
function toCamelCase(string) {
return string.toLowerCase().split('-').map(function (part, index) {
return index ? part.charAt(0).toUpperCase() + part.slice(1) : part;
}).join('');
}
{
"name": "funclate",
"version": "0.0.2",
"version": "0.0.3",
"description": "A 'build time' HTML parser + a 'runtime' template engine to patch the DOM incrementally.",

@@ -26,3 +26,3 @@ "keywords": [

"test": "COVERAGE=true npm run test:others && npm run test:integration",
"test:watch": "npm run test -- --auto-watch --no-single-run",
"test:watch": "npm run test:others -- --auto-watch --no-single-run",
"coveralls": "cat coverage/lcov.info | coveralls --verbose",

@@ -29,0 +29,0 @@ "check": "npm run lint && npm run test",

@@ -8,3 +8,3 @@ import htmlparser2 from 'htmlparser2';

import {Factory} from './Factory';
import {assign, interpolate} from './utils';
import {assign, interpolate, toCamelCase} from './utils';

@@ -67,3 +67,3 @@ /**

if (index > -1) {
name = attName.substring(index + 1);
name = toCamelCase(attName.substring(index + 1));
destination = fcProps;

@@ -70,0 +70,0 @@ }

@@ -54,1 +54,11 @@ /**

}
/**
* Converts string to camel case.
* @param {!string} string the string to convert
* @return {string} the camel cased string
* @private
*/
export function toCamelCase(string) {
return string.toLowerCase().split('-').map((part, index) => index ? part.charAt(0).toUpperCase() + part.slice(1) : part).join('');
}
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