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

kanso

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kanso - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

test/testsuite/packages/attachments/build/add.js

6

lib/commands/push.js

@@ -124,3 +124,3 @@ var utils = require('../utils'),

// make the url available to the modules
options._url = utils.noAuthURL(url);
options._url = url;
options._utils = utils;

@@ -169,2 +169,6 @@ packages.load(dir, paths, null, options, function (err, doc, cfg) {

// delete private/build time only properties
delete doc.kanso.config._url;
delete doc.kanso.config._utils;
db.ensureDB(function (err) {

@@ -171,0 +175,0 @@ if (err) {

9

lib/tar.js

@@ -75,3 +75,4 @@ var child_process = require('child_process'),

is_bsd: exports.isBSD,
read_cfg: async.apply(settings.load, dir)
read_cfg: async.apply(settings.load, dir),
ensure_tmp: async.apply(utils.ensureDir, repository.TMP_DIR)
},

@@ -86,4 +87,6 @@ function (err, results) {

var tmpfile = repository.TMP_DIR +
path.basename(outfile) + '-' + new Date().getTime();
var tmpfile = path.join(
repository.TMP_DIR,
path.basename(outfile) + '-' + new Date().getTime()
);

@@ -90,0 +93,0 @@ var ignorefile = path.join(dir, '.kansoignore');

@@ -32,3 +32,3 @@ {

},
"version": "0.4.0",
"version": "0.4.1",
"repository": {

@@ -35,0 +35,0 @@ "type": "git",

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

var exec = require('child_process').exec;
var exec = require('child_process').exec,
fs = require('fs');

@@ -31,12 +32,11 @@ /*

exports.setUp = function (callback) {
exec('rm -rf ' + TMPDIR, function (err) {
if (err) {
return callback(err);
}
exec('mkdir -p ' + TMPDIR, callback);
});
exec('mkdir -p ' + TMPDIR, callback);
};
exports.tearDown = function (callback) {
exec('rm -rf ' + TMPDIR, callback);
if (fs.existsSync(TMPDIR)) {
exec('rm -rf ' + TMPDIR, callback);
} else {
callback();
}
};

@@ -63,2 +63,3 @@

if (err) {
console.error(stderr);
return test.done(err);

@@ -65,0 +66,0 @@ }

@@ -825,3 +825,3 @@ /*global $: false */

}
options.docs = doc;
options.docs = docs;
var req = {

@@ -828,0 +828,0 @@ type: 'POST',

@@ -404,5 +404,4 @@

function (nxt) {
db.use(settings.name).getDoc(
id, {}, { db: 'kanso_testsuite_target1' },
function (err, rv) {
db.use('kanso_testsuite_target1').getDoc(
id, {}, function (err, rv) {
test.notEqual(rv, undefined, 'Test document #1 exists');

@@ -415,5 +414,4 @@ test.notEqual(rv._rev, undefined, 'Test document #1 has rev');

function (nxt) {
db.use(settings.name).getDoc(
id, {}, { db: 'kanso_testsuite_target2' },
function (err, rv) {
db.use('kanso_testsuite_target2').getDoc(
id, {}, function (err, rv) {
test.notEqual(rv, undefined, 'Test document #2 exists');

@@ -588,2 +586,5 @@ test.notEqual(rv._rev, undefined, 'Test document #2 has rev');

/*
* Where do we support useCache?
*
exports['getDoc - cached'] = function (test)

@@ -608,3 +609,3 @@ {

function (id, callback) {
appdb.getDoc(id, {}, get_options, function (err, rv) {
appdb.getDoc(id, get_options, function (err, rv) {
test.equal(err, undefined, 'getDoc has no error');

@@ -625,3 +626,3 @@ test.notEqual(rv, undefined, 'Document is defined');

function (id, callback) {
appdb.getDoc(id, {}, get_options, function (err, rv) {
appdb.getDoc(id, get_options, function (err, rv) {
test.equal(err, undefined, 'getDoc has no error');

@@ -635,3 +636,3 @@ test.notEqual(rv, undefined, 'Document is defined');

get_options.flushCache = true;
appdb.getDoc(id, {}, get_options, function (err, rv) {
appdb.getDoc(id, get_options, function (err, rv) {
test.equal(err, undefined, 'getDoc has no error');

@@ -648,2 +649,3 @@ test.notEqual(rv, undefined, 'Document is defined');

};
*/

@@ -653,3 +655,3 @@ exports['newUUID - simple'] = function (test)

test.expect(9);
db.clear_request_cache();
//db.clear_request_cache();

@@ -686,2 +688,5 @@ async.waterfall([

/*
* Caching stuff is broken, FIX.
*
exports['newUUID - cache miss'] = function (test)

@@ -694,3 +699,3 @@ {

test.expect(2 * uuid_count + 5);
db.clear_request_cache();
//db.clear_request_cache();

@@ -759,3 +764,3 @@ async.waterfall([

test.expect(5);
db.clear_request_cache();
//db.clear_request_cache();

@@ -799,1 +804,2 @@ var ajax_request_count = 0;

};
*/

Sorry, the diff of this file is not supported yet

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