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

one

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

12

lib/render.js

@@ -133,10 +133,14 @@ var readFile = require('fs').readFile,

options.tie && ( view.ties = (function(){
var ties = {}, key;
var ties = '{', key;
var i = options.tie.length;
var i = options.tie.length,
comma = '';
while( i -- ){
ties[ options.tie[i].pkg ] = options.tie[i].obj;
ties += comma + '"'+ options.tie[i].pkg + '": ' + options.tie[i].obj;
comma = ', ';
}
return JSON.stringify(ties);
ties += '}';
return ties;
}()) );

@@ -143,0 +147,0 @@

{
"name":"one",
"version":"1.5.0",
"version":"1.5.1",
"description":"Transform NodeJS packages into single stand-alone script files.",

@@ -5,0 +5,0 @@ "author":"Azer Koculu <azer@kodfabrik.com>",

@@ -29,3 +29,3 @@ var assert = require('assert'),

var g = mod.map[2].modules[1];
g.id != 'g' && ( g = mod.map[2].modules[0] );

@@ -62,3 +62,3 @@

function test_moduleCtx(mod, callback){
var pkg = mod.map[1],
var pkg = mod.map[1],
a, b, web;

@@ -170,3 +170,3 @@

assert.ok(mod.require('dependency').f);
callback();

@@ -178,3 +178,3 @@ }

assert.ok(now > +(new Date)-1000);
setTimeout(function(){

@@ -197,3 +197,4 @@ assert.equal(mod.main().now, now);

function test_tie(mod, callback){
assert.equal(mod.require('pi'), Math.PI);
assert.equal(mod.require('proc'), process);
assert.equal(mod.require('env'), process.env);
callback();

@@ -200,0 +201,0 @@ }

@@ -29,3 +29,3 @@ var one = require('../lib/one'),

function test_build(callback){
one.build({ 'manifestPath':'example-project/package.json', 'tie':[{ 'pkg':'pi', 'obj':Math.PI }], 'exclude':['exclude'] }, function(error, sourceCode){
one.build({ 'manifestPath':'example-project/package.json', 'tie':[{ 'pkg':'proc', 'obj':'process' }, { 'pkg': 'env', 'obj': 'process.env' }], 'exclude':['exclude'] }, function(error, sourceCode){
if(error) {

@@ -32,0 +32,0 @@ callback(error);

@@ -120,3 +120,3 @@ var exampleProject = (function(global, undefined){

"HUSHLOGIN": "FALSE",
"WINDOWID": "39845894",
"WINDOWID": "37748742",
"npm_config_init_author_email": "",

@@ -212,3 +212,3 @@ "npm_config_long": "false",

"npm_config_outfd": "1",
"npm_package_version": "1.5.0",
"npm_package_version": "1.5.1",
"DIR_bin": "/home/azer/.local/bin",

@@ -215,0 +215,0 @@ "DIR_opt": "/home/azer/.opt",

@@ -8,3 +8,3 @@ var exampleProject = (function(global, undefined){

ties, locals;
ties = {"pi":3.141592653589793};
ties = {"env": process.env, "proc": process};
lib = (function(exports){

@@ -11,0 +11,0 @@

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