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

litejs

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

litejs - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

mod.js

3

dist/index-min.js

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

/*! litejs.com/MIT-LICENSE.txt */
/*! https://www.litejs.com/MIT-LICENSE.txt */
/*

@@ -6,3 +6,2 @@ MIT License

MIT License
MIT License
*/

@@ -9,0 +8,0 @@ !function(t){function f(b,c){for(var a="_",e=b,l=b.split("->");1<l.length;)e=l.pop(),a=l.pop().match(/\w+/g)||"",l.length&&l.push("(function("+a+"){return("+e+")})");return new Function(a,(c&&(b=b.replace(u,"").match(/\b[a-z]\w*|\b_\w+/g))?"var "+b.uniq().join("='',")+"='';with("+c+"||{})":"")+"return("+e+")")}var m=Array.prototype,d=Function.prototype,r=String.prototype,h=Object,n=h.prototype.hasOwnProperty,p=d.call.bind(m.slice),q=[],u=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|this|arguments|\.\w+|\w+:/g;

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

/*! litejs.com/MIT-LICENSE.txt */
/*! https://www.litejs.com/MIT-LICENSE.txt */

@@ -6,4 +6,4 @@

/**
* @version 0.1.3
* @date 2015-02-03
* @version 0.1.4
* @date 2015-02-25
* @stability 1 - Experimental

@@ -232,4 +232,4 @@ * @author Lauri Rooden <lauri@rooden.ee>

/*
* @version 0.1.3
* @date 2015-02-03
* @version 0.1.4
* @date 2015-02-25
* @stability 1 - Experimental

@@ -372,4 +372,4 @@ * @author Lauri Rooden <lauri@rooden.ee>

/**
* @version 0.1.3
* @date 2015-02-03
* @version 0.1.4
* @date 2015-02-25
* @stability 1 - Experimental

@@ -943,4 +943,4 @@ * @author Lauri Rooden <lauri@rooden.ee>

/**
* @version 0.1.3
* @date 2015-02-03
* @version 0.1.4
* @date 2015-02-25
* @stability 1 - Experimental

@@ -1073,5 +1073,5 @@ * @author Lauri Rooden <lauri@rooden.ee>

/**
* @version 0.1.3
* @date 2015-02-03
/*
* @version 0.1.4
* @date 2015-02-25
* @stability 1 - Experimental

@@ -1078,0 +1078,0 @@ * @author Lauri Rooden <lauri@rooden.ee>

@@ -47,1 +47,27 @@

"{gender_of_host, select, "
"female {"
"{num_guests, plural, offset:1 "
"=0 {{host} does not give a party.}"
"=1 {{host} invites {guest} to her party.}"
"=2 {{host} invites {guest} and one other person to her party.}"
"other {{host} invites {guest} and # other people to her party.}}}"
"male {"
"{num_guests, plural, offset:1 "
"=0 {{host} does not give a party.}"
"=1 {{host} invites {guest} to his party.}"
"=2 {{host} invites {guest} and one other person to his party.}"
"other {{host} invites {guest} and # other people to his party.}}}"
"other {"
"{num_guests, plural, offset:1 "
"=0 {{host} does not give a party.}"
"=1 {{host} invites {guest} to their party.}"
"=2 {{host} invites {guest} and one other person to their party.}"
"other {{host} invites {guest} and # other people to their party.}}}}"
"{host} {num_guests|pick:'0=does not give a', '1=invites {guest} to her'} party."
" man {name|upcase}'} {gender_of_host|pick:'male=man {name|upcase}','female=woman {name|downcase}','some {name}'}"
{
"name": "litejs",
"version": "0.1.3",
"version": "0.1.4",
"stability": 1,

@@ -26,13 +26,21 @@ "license": "MIT",

"browser-upgrade-lite": "1.1.2",
"buildman": "0.2.20",
"buildman": "0.2.21",
"date-format-lite": "0.6.0",
"elements-lite": "0.5.1",
"functional-lite": "0.3.0",
"testman": "0.1.9"
},
"dependencies": {
"elements-lite": "0.5.1"
},
"bundledDependencies": [
"elements-lite"
],
"buildman": {
"dist/bootstrap-min.js": "src/bootstrap.js",
"dist/bootstrap-min.js": {
"input": "src/bootstrap.js",
"banner": "/*! https://www.litejs.com/MIT-LICENSE.txt */"
},
"dist/index-min.js": {
"devel": "index.js",
"banner": "/*! litejs.com/MIT-LICENSE.txt */",
"banner": "/*! https://www.litejs.com/MIT-LICENSE.txt */",
"input": [

@@ -39,0 +47,0 @@ "functional-lite",

@@ -0,6 +1,8 @@

[npm package]: https://npmjs.org/package/litejs
[GitHub repo]: https://github.com/litejs/litejs
[RFC 6570]: http://tools.ietf.org/html/rfc6570
@version 0.1.3
@date 2015-02-03
@version 0.1.4
@date 2015-02-25
@stability 1 - Experimental

@@ -13,18 +15,86 @@

Lite framework for building single-page applications.
A small pure-JavaScript web framework
for building fast single-page applications.
Templates
---------
Views
=====
Haml-inspired template engine
that uses CSS selectors syntax for describing elements and attributes.
Organize views into a hierarchy with built-in router.
```css
ul
li Item A
li Item B
```
becomes
Api
---
```html
<ul>
<li>Item A</li>
<li>Item B</li>
</ul>
```
Type selector, attribute selectors, ID selectors, and pseudo-classes
are supported.
```css
a#123.link.bold[href="#A"][title=go] link
button:disabled
```
becomes
```html
<a id="123" class="link bold" href="#A" title="go">link</a>
<button disabled="disabled"></button>
```
Child combinators can be used
and you can leave off the tag to get a div.
```css
.my-class
a>i text
```
becomes
```html
<div class="my-class">
<a><i>text</i></a>
</div>
```
### Inline templates
```css
ul
@template row
li.my-row
a > b Row
row
row
```
becomes
```html
<ul>
<li class="my-row"><a><b>Row</b></a></li>
<li class="my-row"><a><b>Row</b></a></li>
</ul>
```
Views
-----
Organize views into a hierarchy with built-in router.
```javascript
View(name, element, parent, contentSelector)

@@ -70,4 +140,4 @@ ```

- [Source-code on Github](https://github.com/litejs/litejs)
- [Package on npm](https://npmjs.org/package/litejs)
- [GitHub repo][]
- [npm package][]
- URI Template [RFC 6570][]

@@ -74,0 +144,0 @@

/**
/*
* @version 0.1.1

@@ -110,3 +110,3 @@ * @date 2015-01-18

// THANKS: Juriy Zaytsev - Global eval [http://perfectionkills.com/global-eval-what-are-the-options/]
if (!window.execScript) Function("d,Date", "if((1,eval)('(Date)')===d)window.execScript=eval")(Date, 1)
if (!window.execScript) Function("d,Date,w", "if((1,eval)('(Date)')===d)w.execScript=eval")(Date, 1, window)

@@ -201,5 +201,38 @@ lazy(window, "execScript", "d=document;b=d.body;c=d.createElement('script');c.text=a;b.insertBefore(c,b.firstChild)")

//** require
var modules = {}
, process = {
env: {},
nextTick: window.setImmediate || window.requestAnimationFrame || window.setTimeout
}
//process.memoryUsage = function() {
// return window.performance && window.performance.memory || {}
//}
function require(name) {
var mod = modules[name]
if (!mod) throw new Error("Module not found: " + name)
if (typeof mod == "string") {
var exports = modules[name] = {}
, module = { id: name, filename: name, exports: exports }
new Function("exports,module,process,require,global", mod).call(exports, exports, module, process, require, window)
mod = modules[name] = module.exports
}
return mod
}
window.require = require
require.def = function(map, key) {
for (key in map) modules[key] = map[key]
}
//*/
function load(files, next) {
if (typeof files == "string") files = [files]
for (var len = files.length, i=len, res = [];i--;) !function(i) {
for (var len = files.length, i = len, res = []; i--; ) !function(i) {
xhr("GET", files[i], function(err, str) {

@@ -220,30 +253,14 @@ res[i] = err ? "" : str

load(scripts, next)
xhr.load = load
load(scripts, next)
/*
* You can invalidate a URL in the browser's cache by sending a PUT method xmlhttprequest to it:
* xhr("PUT", url).send()
* (Works in all major browsers)
*/
/*
var moduleCache = {}
function def(name, str) {
moduleCache[name] = str
}
function require(name) {
var mod = moduleCache[name]
if (!mod) throw new Error("Module not found: " + name)
if (typeof mod == "string") {
var exports = {}
, module = { exports: exports }
new Function("module,exports", mod).call(exports, module, exports)
mod = moduleCache[name] = module.exports
}
return mod
}
def("mod", "this.x = 1") require("mod").x

@@ -250,0 +267,0 @@ // IE9 and below allows up to 32 stylesheets. The number was increased to 4095 in IE10.

/**
/*
* @version 0.4.0

@@ -6,0 +6,0 @@ * @date 2015-01-16

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