New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reactivedb

Package Overview
Dependencies
Maintainers
5
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactivedb - npm Package Compare versions

Comparing version 0.9.14-alpha.1-lfoptimize to 0.9.14-alpha.2-lfoptimize

addons/aggresive-optimizer.d.ts

1

index.d.ts

@@ -7,1 +7,2 @@ import './operators';

export * from './storage';
export * from './addons';

@@ -10,2 +10,3 @@ "use strict";

tslib_1.__exportStar(require("./storage"), exports);
tslib_1.__exportStar(require("./addons"), exports);
//# sourceMappingURL=index.js.map

8

interface/index.d.ts

@@ -47,4 +47,4 @@ /// <reference types="lovefield" />

}
export declare type Fields = string | {
[index: string]: Fields[];
export declare type Field = string | {
[index: string]: Field[];
};

@@ -59,3 +59,3 @@ export interface Clause<T> {

export interface Query<T> extends Clause<T> {
fields?: Fields[];
fields?: Field[];
limit?: number;

@@ -104,3 +104,3 @@ skip?: number;

export interface NavigatorLeaf {
fields: Array<Fields> | Set<Fields>;
fields: Array<Field> | Set<Field>;
containKey: boolean;

@@ -107,0 +107,0 @@ assocaiation: Association;

{
"name": "reactivedb",
"version": "0.9.14-alpha.1-lfoptimize",
"version": "0.9.14-alpha.2-lfoptimize",
"description": "Reactive ORM for Lovefield",

@@ -5,0 +5,0 @@ "main": "./index.js",

// forkQueryToken
// replaceQueryToken
export * from './aggresive-optimizer'

@@ -8,1 +8,2 @@ import './operators'

export * from './storage'
export * from './addons'

@@ -54,3 +54,3 @@ import { Observable } from 'rxjs/Observable'

export type Fields = string | { [index: string]: Fields[] }
export type Field = string | { [index: string]: Field[] }

@@ -67,3 +67,3 @@ export interface Clause<T> {

export interface Query<T> extends Clause<T> {
fields?: Fields[]
fields?: Field[]
limit?: number

@@ -120,3 +120,3 @@ skip?: number

export interface NavigatorLeaf {
fields: Array<Fields> | Set<Fields>
fields: Array<Field> | Set<Field>
containKey: boolean

@@ -123,0 +123,0 @@ assocaiation: Association

@@ -15,3 +15,3 @@ import { Observable } from 'rxjs/Observable'

import { Relationship, RDBType, DataStoreType, LeafType, StatementType, JoinMode } from '../interface/enum'
import { Record, Fields, JoinInfo, Query, Clause, Predicate } from '../interface'
import { Record, Field, JoinInfo, Query, Clause, Predicate } from '../interface'
import { SchemaDef, ColumnDef, ParsedSchema, Association, ScopedHandler } from '../interface'

@@ -302,8 +302,3 @@ import { ColumnLeaf, NavigatorLeaf, ExecutorResult, UpsertContext, SelectContext } from '../interface'

dispose(): ErrorObservable | Observable<{
insert: number
update: number
delete: number
result: boolean
}> {
dispose(): ErrorObservable | Observable<ExecutorResult> {
if (!this.connected) {

@@ -425,3 +420,3 @@ return Observable.throw(Exception.NotConnected())

const containKey = containFields ? contains(pk, clause.fields!) : true
const fields: Set<Fields> = containFields ? new Set(clause.fields) : new Set(schema.columns.keys())
const fields: Set<Field> = containFields ? new Set(clause.fields) : new Set(schema.columns.keys())
const { table, columns, joinInfo, definition } =

@@ -501,3 +496,3 @@ this.traverseQueryFields(db, tableName, fields, containKey, !containFields, [], {}, mode)

tableName: string,
fieldsValue: Set<Fields>,
fieldsValue: Set<Field>,
hasKey: boolean,

@@ -516,3 +511,3 @@ glob: boolean,

if (mode === JoinMode.imlicit && contains(tableName, path)) { // thinking mode: implicit & explicit
if (mode === JoinMode.imlicit && contains(tableName, path)) {
return { columns, joinInfo, advanced: false, table: null, definition: null }

@@ -535,3 +530,6 @@ } else {

if (!hasKey) {
fieldsValue.add(schema.pk)
// 保证主键一定比关联字段更早的被遍历到
const fields = Array.from(fieldsValue)
fields.unshift(schema.pk)
fieldsValue = new Set(fields)
}

@@ -538,0 +536,0 @@

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

export default '0.9.11'
export default '0.9.14-alpha.2-lfoptimize-alpha0.9.14-alpha.2-lfoptimize-lfoptimize'

@@ -49,8 +49,3 @@ /// <reference types="lovefield" />

remove<T>(tableName: string, clause?: Clause<T>): Observable<ExecutorResult>;
dispose(): ErrorObservable | Observable<{
insert: number;
update: number;
delete: number;
result: boolean;
}>;
dispose(): ErrorObservable | Observable<ExecutorResult>;
private buildTables();

@@ -57,0 +52,0 @@ /**

@@ -440,3 +440,6 @@ "use strict";

if (!hasKey) {
fieldsValue.add(schema.pk);
// 保证主键一定比关联字段更早的被遍历到
var fields = Array.from(fieldsValue);
fields.unshift(schema.pk);
fieldsValue = new Set(fields);
}

@@ -443,0 +446,0 @@ var suffix = (context[tableName] || 0) + 1;

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

declare const _default: "0.9.11";
declare const _default: "0.9.14-alpha.2-lfoptimize-alpha0.9.14-alpha.2-lfoptimize-lfoptimize";
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = '0.9.11';
exports.default = '0.9.14-alpha.2-lfoptimize-alpha0.9.14-alpha.2-lfoptimize-lfoptimize';
//# sourceMappingURL=version.js.map

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