Socket
Socket
Sign inDemoInstall

dabs

Package Overview
Dependencies
14
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.30 to 0.0.31

32

clause/Order.js
"use strict";
const Base = require("./Base");
const
Base = require("./Base"),
Literal = require("../entity/Literal");

@@ -9,3 +11,3 @@ let Clause_Order_Frag = class {

Object.defineProperty(this, "_sort_order", { value: null, writable: true });
Object.defineProperty(this, "_values", { value: null, writable: true });
Object.defineProperty(this, "_values", { value: [], writable: true });

@@ -27,5 +29,19 @@ this.order = sort_order;

}
set values(v) {
this._values = v;
set values(values) {
this._values.splice(0);
for (let v of values) {
if (!Array.isArray(v)) v = [ v ];
for (let _v of v) {
this._values.push(new Literal(Symbol(), _v));
}
}
}
get placeholders() {
let t = {};
for (let v of this._values) {
t[v.id] = v.value;
}
return t;
}
toString() {

@@ -77,2 +93,10 @@ return this._values.length ?

get placeholders() {
let t = {};
for (let [_field, _frag] of this._frags) {
Object.assign(t, _frag.placeholders);
}
return t;
}
toString() {

@@ -79,0 +103,0 @@ let a = [];

2

package.json

@@ -25,3 +25,3 @@ {

"name": "dabs",
"version": "0.0.30"
"version": "0.0.31"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc