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

pintura

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pintura - npm Package Compare versions

Comparing version 0.2.6 to 0.3.1

util/base64.js

2

jsgi/auth.js

@@ -10,3 +10,3 @@ /**

print = require("promised-io/process").print,
base64 = require("commonjs-utils/base64");
base64 = require("../util/base64");

@@ -13,0 +13,0 @@ exports.Authentication = function(security, nextApp){

@@ -5,3 +5,3 @@ var CacheStore = require("perstore/store/cache").Cache,

exports.FetchCache= function(cache, nextApp) {
var config = require("commonjs-utils/settings").cache || {};
var config = require("perstore/util/settings").cache || {};
config.alwaysVaryOn = config.alwaysVaryOn || [];

@@ -71,3 +71,3 @@

exports.UpdateCache = function(cache, nextApp){
var config = require("commonjs-utils/settings").cache || {};
var config = require("perstore/util/settings").cache || {};
config.alwaysVaryOn = config.alwaysVaryOn || [];

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

@@ -10,3 +10,2 @@ /**

print = require("promised-io/process").print,
ErrorConstructor = require("commonjs-utils/extend-error").ErrorConstructor,
when = require("promised-io/promise").when;

@@ -13,0 +12,0 @@

@@ -84,3 +84,2 @@ /**

throw unsupportedError;
// return {status: 415, headers:{}, body: ["Unsupported Media Type"]};
}

@@ -92,3 +91,2 @@ try{

throw e;
// return {status: 400, headers: {}, body: [e.message]};
}

@@ -101,7 +99,4 @@ if(typeof body.callNextApp === "function"){

}
//function dir(){var sys=require('sys');for(var i=0,l=arguments.length;i<l;i++)sys.debug(sys.inspect(arguments[i]));}
//dir('DES?:', body);
return when(body, function(body){
//dir('DES!:', body);
request.body = body
request.body = body;
return nextApp(request);

@@ -108,0 +103,0 @@ });

@@ -11,3 +11,3 @@ /**

Response = require("./response").Response,
settings = require("commonjs-utils/settings");
settings = require("perstore/util/settings");

@@ -14,0 +14,0 @@ function dir(){var sys=require('sys');for(var i=0,l=arguments.length;i<l;i++)sys.debug(sys.inspect(arguments[i]));}

@@ -10,5 +10,5 @@ /**

when = promiseModule.when,
settings = require("commonjs-utils/settings"),
settings = require("perstore/util/settings"),
sessionModel,
sha1 = require("commonjs-utils/sha1").hex_sha1;
sha1 = require("../util/sha1").hex_sha1;

@@ -15,0 +15,0 @@ exports.Session = function(options, nextApp){

@@ -24,3 +24,3 @@ /**

if(typeof object.forEach === "function") {
var range = require("commonjs-utils/jsgi/parse-header")["content-range"](response.headers["content-range"], 25);
var range = require("../util/parse-header")["content-range"](response.headers["content-range"], 25);
// TODO escape entities, especially in qs

@@ -27,0 +27,0 @@ if (range.prev) {

@@ -31,3 +31,3 @@ var Media = require("../media").Media,

var headers = object.getMetadata && object.getMetadata() || {},
range = require("commonjs-utils/jsgi/parse-header")["content-range"](headers["content-range"], 25);
range = require("../util/parse-header")["content-range"](headers["content-range"], 25);
if (range && range.prev) {

@@ -34,0 +34,0 @@ var prevRange = [range.prev.start, range.prev.end].join("-");

@@ -10,5 +10,5 @@ /**

resolver = require("templify/lib/templify").Resolver,
toJSON = require("commonjs-utils/json-ext").stringify,
toJSON = require("perstore/util/json-ext").stringify,
when = require("promised-io/promise").when,
copy = require("commonjs-utils/copy").copy;
copy = require("perstore/util/copy").copy;
var templateEngine = require('templify/lib/templify').TemplateEngine({resolver: resolver, store: filesystem});

@@ -15,0 +15,0 @@

/**
* Registers JavaScript media type handling
*/
var JSONExt = require("commonjs-utils/json-ext"),
var JSONExt = require("perstore/util/json-ext"),
StreamingSerializer = require("./json").StreamingSerializer,

@@ -6,0 +6,0 @@ when = require("promised-io/promise").when,

/**
* Registers JSON media type handling
*/
var JSONExt = require("commonjs-utils/json-ext"),
var JSONExt = require("perstore/util/json-ext"),
Media = require("../media").Media,

@@ -6,0 +6,0 @@ when = require("promised-io/promise").when,

@@ -5,3 +5,3 @@ /**

*/
var JSONExt = require("commonjs-utils/json-ext"),
var JSONExt = require("perstore/util/json-ext"),
Media = require("../../media").Media,

@@ -8,0 +8,0 @@ all = require("promised-io/promise").all,

@@ -40,3 +40,3 @@ /**

})(
require("node-formidable/lib/formidable/incoming_form").IncomingForm,
require("formidable/lib/incoming_form").IncomingForm,
require("jsgi-node/jsgi/node").Node);

@@ -43,0 +43,0 @@

@@ -9,3 +9,3 @@ /**

print = require("promised-io/process").print,
JSONExt = require("commonjs-utils/json-ext");
JSONExt = require("perstore/util/json-ext");

@@ -12,0 +12,0 @@ Media({

/**
* Registers URLEncoded media type handling
*/
var JSONExt = require("commonjs-utils/json-ext"),
var JSONExt = require("perstore/util/json-ext"),
stringToValue = require("./auto-type").stringToValue,

@@ -6,0 +6,0 @@ print = require("promised-io/process").print,

{
"name": "pintura",
"version": "0.2.6",
"version": "0.3.1",
"author": "Kris Zyp",

@@ -18,3 +18,2 @@ "email": "kriszyp@gmail.com",

"templify": "http://github.com/dmachi/templify/zipball/master",
"commonjs-utils": "http://github.com/kriszyp/commonjs-utils/zipball/v0.2.2",
"promised-io": "jar:http://github.com/kriszyp/promised-io/zipball/v0.2.3!/",

@@ -63,14 +62,14 @@ "patr": "jar:http://github.com/kriszyp/patr/zipball/v0.2.6!/",

"dependencies":{
"tunguska": ">0.2.4",
"rql": ">0.2.2",
"tunguska": ">=0.3.0",
"rql": ">=0.3.1",
"websocket-server": ">=1.4.01",
"perstore": ">0.2.4",
"promised-io": ">0.2.3",
"commonjs-utils": ">0.2.2",
"multi-node": ">0.2.3",
"jsgi-node": ">0.2.5"
"perstore": ">=0.3.0",
"promised-io": ">=0.3.0",
"formidable": ">=1.0.0",
"templify": ">=0.9.0",
"jsgi-node": ">=0.2.5"
},
"devDependencies": {
"patr": ">0.2.6"
"patr": ">=0.2.6"
}
}

@@ -10,4 +10,4 @@ /**

Restrictive = require("perstore/facet").Restrictive,
sha1 = require("commonjs-utils/sha1").b64_sha1,
settings = require("commonjs-utils/settings");
sha1 = require("./util/sha1").b64_sha1,
settings = require("perstore/util/settings");

@@ -14,0 +14,0 @@ try{

// helpful for debugging
var settings = require("commonjs-utils/settings"),
ws = require("node-websocket-server"),
var settings = require("perstore/util/settings"),
ws = require("websocket-server"),
messageJson = require("./media/message/json");

@@ -25,5 +25,5 @@

// having a REPL is really helpful
// if(nodes.isMaster){
if (require.main === module) {
require("./util/repl").start();
//}
}
};

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

require("commonjs-utils/settings").admins = ["user"];// must do this first
require("perstore/util/settings").admins = ["user"];// must do this first
var MockRequest = require("jack/mock").MockRequest,

@@ -6,3 +6,3 @@ mock = new MockRequest(require("pintura").app),

TestStore = require("perstore/stores").DefaultStore();
parse = require("commonjs-utils/json-ext").parse;
parse = require("perstore/util/json-ext").parse;
TestStore.setPath("TestStore");

@@ -9,0 +9,0 @@ require("pintura").config.getDataModel = function(){

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

require("commonjs-utils/settings").admins = ["user"];// must do this first
require("perstore/util/settings").admins = ["user"];// must do this first
var MockRequest = require("jack/mock").MockRequest,

@@ -7,3 +7,3 @@ mock = new MockRequest(require("pintura").app),

var config = require("pintura").config;
var parse = require("commonjs-utils/json-ext").parse;
var parse = require("perstore/util/json-ext").parse;
TestStore.setPath("TestStore");

@@ -10,0 +10,0 @@

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

var settings = require("commonjs-utils/settings");
var settings = require("perstore/util/settings");

@@ -3,0 +3,0 @@ exports.start = function(context){

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