Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lemonadejs

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lemonadejs - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/lemonadejs.min.js

4

package.json
{
"name": "lemonadejs",
"title": "Micro two-way binding and hook JS library.",
"title": "Micro two-way binding and hook JavaScript vanilla library.",
"description": "Lemonade is a lightweight, micro vanilla javascript library to create quick and reusable JS components without dependencies.",

@@ -16,3 +16,3 @@ "author": {

"main": "dist/lemonade.js",
"version": "1.0.0"
"version": "1.0.1"
}

@@ -1,2 +0,1 @@

# fastjs
Two way binding and hooks vanilla tiny JS library.
# lemonadejs
/**
* Fastjs v1.0.1
* lemonadejs v1.0.2
*
* Author: Paul Hodel <paul.hodel@gmail.com>
* Website: https://bossanova.uk/fastjs/
* Website: https://bossanova.uk/lemonadejs/
* Description: Create amazing web based reusable components.

@@ -14,3 +14,3 @@ *

typeof define === 'function' && define.amd ? define(factory) :
global.fastjs = factory();
global.lemonade = factory();
}(this, (function () {

@@ -20,5 +20,5 @@

var fastjs = {};
var lemonadejs = {};
fastjs.render = function(o, el, self) {
lemonadejs.render = function(o, el, self) {
if (! (el instanceof Element || el instanceof HTMLDocument)) {

@@ -36,3 +36,3 @@ console.log('DOM element given is not valid')

} else {
if (fastjs.isClass(o)) {
if (lemonadejs.isClass(o)) {
var o = new o();

@@ -54,3 +54,3 @@ el.appendChild(o.create());

fastjs.element = (function() {
lemonadejs.element = (function() {
/**

@@ -328,3 +328,3 @@ * Create a new component

}
if (fastjs.isClass(m)) {
if (lemonadejs.isClass(m)) {
var instance = new m();

@@ -342,7 +342,7 @@ element.appendChild(instance.create());

fastjs.isClass = function(func) {
lemonadejs.isClass = function(func) {
return typeof func === 'function' && /^class\s/.test(Function.prototype.toString.call(func));
}
fastjs.component = class {
lemonadejs.component = class {
constructor() {

@@ -352,3 +352,3 @@ }

create() {
var element = fastjs.element(this.render(), this);
var element = lemonadejs.element(this.render(), this);

@@ -363,3 +363,3 @@ if (typeof(this.onload) == 'function') {

return fastjs;
return lemonadejs;
})));
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