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

folio

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

folio - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

.settings.xml

15

History.md
0.1.0 / 2011-11-01
==================
* clean up part 2
* cleaning up for first official release
* renamed to folio. published 0.0.4 on npm
* Edited README.md via GitHub
* README - Name Change
* volume functional
* volume & volume tests init
* codex.require remove wrappers
* serve enhancements to support volumes
* initializing codex require feature
* renamed binding to glossary tests
0.0.4 / 2011-10-02

@@ -3,0 +18,0 @@ ==================

2

index.js
module.exports = require('./lib/codex');
module.exports = require('./lib/folio');

@@ -7,3 +7,5 @@ var path = require('path'),

var Glossary = exports.Glossary = function Glossary (files, options) {
module.exports = Glossary;
function Glossary (files, options) {
options = options || {};

@@ -19,3 +21,3 @@ this.minify = options.minify || false;

return this;
};
}

@@ -22,0 +24,0 @@ Glossary.prototype.checkFiles = function () {

function Serve (codex) {
function Serve (folio) {
return function (req, res, next) {
codex.compile(function(err, content) {
folio.compile(function(err, content) {
res.header('Content-Type', 'text/javascript');
res.header('Cache-Control', 'max-age=' + (codex.cache || 0));
res.header('Cache-Control', 'max-age=' + (folio.cache || 0));
res.send(content);

@@ -8,0 +8,0 @@ });

@@ -5,3 +5,3 @@ {

"description": "Asset installation, management, and browserfication.",
"version": "0.0.4",
"version": "0.1.0",
"repository": {

@@ -20,8 +20,5 @@ "type": "git",

"colors": "0.5.x",
"commander": "0.2.x",
"mkdirp": "0.0.7",
"uglify-js": "1.1.x",
"async": "0.1.x",
"detective": "0.0.3",
"resolve": "0.0.4"
"async": "0.1.x"
},

@@ -31,3 +28,2 @@ "devDependencies": {

"jq": "1.6.x",
"seed": "0.0.x",
"express": "2.4.x",

@@ -34,0 +30,0 @@ "request": "2.1.x",

@@ -9,3 +9,3 @@ # Folio

Codex can be used for creating asyncronous builds of client files for javascript.
Folio can be used for creating asyncronous builds of client files for javascript.

@@ -15,6 +15,6 @@ ```js

fs = require('fs'),
codex = require('codex');
folio = require('folio');
// normal output
var glossary = new codex.glossary([
var glossary = new folio.glossary([
path.join(__dirname, 'assets', 'first.js'),

@@ -37,3 +37,3 @@ path.join(__dirname, 'assets', 'second.js')

server.get('/assets.min.js', codex.serve(glossary));
server.get('/assets.min.js', folio.serve(glossary));

@@ -53,3 +53,3 @@ server.listen(8000);

Copyright (c) 2011 Jake Luer <@jakeluer>
Copyright (c) 2011 Jake Luer <jake@alogicalparadox.com>

@@ -56,0 +56,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

@@ -5,9 +5,9 @@ var vows = require('vows'),

var codex = require('../');
var folio = require('../');
var suite = vows.describe('Codex Binding');
var suite = vows.describe('Folio Binding');
suite.addBatch({
'single file binding': {
topic: new(codex.glossary)( path.join(__dirname, 'include', 'me.js') ),
topic: new(folio.glossary)( path.join(__dirname, 'include', 'me.js') ),
'knows which files to include': function (binding) {

@@ -24,3 +24,3 @@ assert.isArray(binding.files);

assert.throws(function() {
var b = new(codex.glossary)(path.join(__dirname, 'include', 'bad.js'));
var b = new(folio.glossary)(path.join(__dirname, 'include', 'bad.js'));
return b;

@@ -55,3 +55,3 @@ }, Error);

'multiple file binding': {
topic: new(codex.glossary)([
topic: new(folio.glossary)([
path.join(__dirname, 'include', 'me.js'),

@@ -72,3 +72,3 @@ path.join(__dirname, 'include', 'you.js')

assert.throws(function() {
var b = new(codex.glossary)([
var b = new(folio.glossary)([
path.join(__dirname, 'include', 'bad.js'),

@@ -110,3 +110,3 @@ require.resolve('jq/dist/jquery')

'multiple file binding with options': {
topic: new(codex.glossary)([
topic: new(folio.glossary)([
path.join(__dirname, 'include', 'me.js'),

@@ -127,3 +127,3 @@ path.join(__dirname, 'include', 'you.js')

assert.throws(function() {
var b = new(codex.glossary)([
var b = new(folio.glossary)([
path.join(__dirname, 'include', 'bad.js'),

@@ -155,5 +155,5 @@ require.resolve('jq/dist/jquery')

'nested file bindings': {
topic: new(codex.glossary)([
topic: new(folio.glossary)([
path.join(__dirname, 'include', 'me.js'),
new codex.glossary([
new folio.glossary([
path.join(__dirname, 'include', 'you.js')

@@ -172,5 +172,5 @@ ], { minify: true })

assert.throws(function() {
var b = new(codex.glossary)([
var b = new(folio.glossary)([
path.join(__dirname, 'include', 'me.js'),
new codex.glossary([
new folio.glossary([
path.join(__dirname, 'include', 'bad.js')

@@ -204,5 +204,5 @@ ])

return new(codex.glossary)([
return new(folio.glossary)([
path.join(__dirname, 'include', 'me.js'),
new codex.glossary([
new folio.glossary([
path.join(__dirname, 'include', 'you.js')

@@ -209,0 +209,0 @@ ], {

@@ -8,5 +8,5 @@ var vows = require('vows'),

var codex = require('../');
var folio = require('../');
var suite = vows.describe('Codex Serve');
var suite = vows.describe('Folio Serve');

@@ -18,13 +18,13 @@ suite.addBatch({

var glossary = new codex.glossary([
var glossary = new folio.glossary([
require.resolve('./include/me.js')
]);
var glossary_min = new codex.glossary([
var glossary_min = new folio.glossary([
require.resolve('./include/me.js')
], { minify: true });
var glossary_nested = new codex.glossary([
var glossary_nested = new folio.glossary([
require.resolve('./include/me.js'),
new codex.glossary([
new folio.glossary([
require.resolve('./include/you.js')

@@ -34,5 +34,5 @@ ], { minify: true })

var glossary_wrapped = new(codex.glossary)([
var glossary_wrapped = new(folio.glossary)([
path.join(__dirname, 'include', 'me.js'),
new codex.glossary([
new folio.glossary([
path.join(__dirname, 'include', 'you.js')

@@ -49,6 +49,6 @@ ], {

server.get('/me.js', codex.serve(glossary));
server.get('/me.min.js', codex.serve(glossary_min));
server.get('/me.you.js', codex.serve(glossary_nested));
server.get('/me.wrapped.js', codex.serve(glossary_wrapped));
server.get('/me.js', folio.serve(glossary));
server.get('/me.min.js', folio.serve(glossary_min));
server.get('/me.you.js', folio.serve(glossary_nested));
server.get('/me.wrapped.js', folio.serve(glossary_wrapped));

@@ -58,3 +58,3 @@ server.listen(8003);

},
'can serve a codex': {
'can serve a folio': {
topic: function (server) {

@@ -81,3 +81,3 @@ request.get('http://localhost:8003/me.js', this.callback);

},
'can serve a minified codex': {
'can serve a minified folio': {
topic: function (server) {

@@ -98,3 +98,3 @@ request.get('http://localhost:8003/me.min.js', this.callback);

},
'can serve a nested codex': {
'can serve a nested folio': {
topic: function (server) {

@@ -115,3 +115,3 @@ request.get('http://localhost:8003/me.you.js', this.callback);

},
'can serve a nested & wrapped codex': {
'can serve a nested & wrapped folio': {
topic: function (server) {

@@ -118,0 +118,0 @@ request.get('http://localhost:8003/me.wrapped.js', this.callback);

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