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

dbay

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbay - npm Package Compare versions

Comparing version 10.119.0 to 10.120.0

lib/random.js

35

lib/main.js
(function() {
'use strict';
var CND, DBay_ctx, DBay_openclose, DBay_query, DBay_random, DBay_sqlgen, DBay_stdlib, DBay_udf, E, FS, H, PATH, SQL, Sql, badge, debug, echo, guy, help, info, new_bsqlt3_connection, rpr, types, urge, warn, whisper;
var CND, DBay_ctx, DBay_openclose, DBay_query, DBay_sqlgen, DBay_stdlib, DBay_udf, E, FS, H, PATH, Random, SQL, Sql, badge, debug, echo, guy, help, info, new_bsqlt3_connection, rpr, types, urge, warn, whisper;

@@ -54,3 +54,3 @@ //###########################################################################################################

({DBay_random} = require('./random-mixin'));
({Random} = require('./random'));

@@ -63,3 +63,3 @@ ({DBay_udf} = require('./udf-mixin'));

this.DBay = (function() {
class DBay extends DBay_query(DBay_ctx(DBay_openclose(DBay_stdlib(DBay_sqlgen(DBay_random(DBay_udf(Function))))))) {
class DBay extends DBay_query(DBay_ctx(DBay_openclose(DBay_stdlib(DBay_sqlgen(DBay_udf(Function)))))) {
//---------------------------------------------------------------------------------------------------------

@@ -90,3 +90,3 @@ static cast_sqlt_cfg(me) {

}
filename = me._get_random_filename();
filename = me.rnd.get_random_filename();
R.path = PATH.resolve(PATH.join(clasz.C.autolocation, filename));

@@ -110,2 +110,3 @@ }

constructor(cfg) {
var ref, ref1;
super('...P', 'return this._me.do(...P)');

@@ -115,2 +116,6 @@ this._me = this.bind(this);

this._me.sql = new Sql();
guy.props.hide(this._me, 'rnd', new Random({
seed: (ref = cfg != null ? cfg.random_seed : void 0) != null ? ref : null,
delta: (ref1 = cfg != null ? cfg.random_delta : void 0) != null ? ref1 : null
}));
if (typeof this._$query_initialize === "function") {

@@ -131,5 +136,2 @@ this._$query_initialize();

}
if (typeof this._$random_initialize === "function") {
this._$random_initialize();
}
if (typeof this._$udf_initialize === "function") {

@@ -140,16 +142,7 @@ this._$udf_initialize();

//.......................................................................................................
guy.props.def(this._me, '_dbs', {
enumerable: false,
value: {}
});
guy.props.hide(this._me, '_dbs', {});
this._me._register_schema('main', this._me.cfg.path, this._me.cfg.temporary);
if (!this.constructor._skip_sqlt) {
guy.props.def(this._me, 'sqlt1', {
enumerable: false,
value: this._me._new_bsqlt3_connection()
});
guy.props.def(this._me, 'sqlt2', {
enumerable: false,
value: this._me._new_bsqlt3_connection()
});
guy.props.hide(this._me, 'sqlt1', this._me._new_bsqlt3_connection());
guy.props.hide(this._me, 'sqlt2', this._me._new_bsqlt3_connection());
}

@@ -239,3 +232,5 @@ if (typeof this._compile_sql === "function") {

overwrite: false,
path: null
path: null,
random_seed: null,
random_delta: null
},

@@ -242,0 +237,0 @@ // create_stdlib: true

@@ -67,2 +67,9 @@ (function() {

return this.isa.boolean(x.temporary);
},
// "@isa.boolean x.create_stdlib": ( x ) -> @isa.boolean x.create_stdlib
"x.random_seed may be set": function(x) {
return true;
},
"x.random_delta may be set": function(x) {
return true;
}

@@ -72,4 +79,2 @@ }

// "@isa.boolean x.create_stdlib": ( x ) -> @isa.boolean x.create_stdlib
//-----------------------------------------------------------------------------------------------------------

@@ -76,0 +81,0 @@ this.declare('dbay_with_transaction_cfg', {

{
"name": "dbay",
"version": "10.119.0",
"version": "10.120.0",
"description": "In-Process, In-Memory & File-Based Relational Data Processing with SQLite, BetterSQLite3",
"main": "lib/main.js",
"scripts": {
"build": "coffee --map -o lib -c src",
"test": "echo see 'https://github.com/loveencounterflow/hengist/tree/master/dev/dbay'",
"preinstall": "./build-sqlite3"
},
"repository": {

@@ -25,10 +30,5 @@ "type": "git",

"exit-hook": "^2.2.1",
"guy": "^2.3.0",
"intertype": "7.6.7"
},
"scripts": {
"build": "coffee --map -o lib -c src",
"test": "echo see 'https://github.com/loveencounterflow/hengist/tree/master/dev/dbay'",
"preinstall": "./build-sqlite3"
"guy": "3.1.0",
"intertype": "7.7.0"
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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