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

fib-app

Package Overview
Dependencies
Maintainers
3
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fib-app - npm Package Compare versions

Comparing version 1.15.3 to 1.15.4

0

lib/app.js

@@ -0,0 +0,0 @@ const mq = require("mq");

@@ -0,0 +0,0 @@ const orm = require("@fxjs/orm");

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ const util = require("util");

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

const App = require("./app");
module.exports = App;

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/// <reference types="@fibjs/types" />
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ /// <reference types="@fibjs/types" />

Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

39

lib/utils/diagram.js
const NO_GRAPHQL_COLOR = 'lightgray'; // '#ec8888'
module.exports = function () {
var nomnoml = require('nomnoml');
const util = require('util');
const Viz = require('viz.js');
const { Module, render } = require('viz.js/lite.render.js');
const models = [];

@@ -13,24 +15,37 @@ const exts = [];

for (const k in m.properties) {
ks.push(`+ ${k} : ${m.properties[k].type}`);
var ps;
if (m.properties[k].comment)
ps = `+ ${m.properties[k].comment}(${k}) : ${m.properties[k].type}`;
else
ps = `+ ${k} : ${m.properties[k].type}`;
ks.push(ps);
}
const is_nographql = m.no_graphql;
models.push(`[${is_nographql ? "<nographql>" : ""}${m.model_name}|${ks.join(';')}]`);
if (m.comment)
models.push(`${m.model_name} [tooltip="${m.model_name}", ${is_nographql ? `fillcolor="${NO_GRAPHQL_COLOR}",` : ''} label="{${m.comment}(${m.model_name})|${ks.join('\\l')}\\l}"];`);
else
models.push(`${m.model_name} [tooltip="${m.model_name}", ${is_nographql ? `fillcolor="${NO_GRAPHQL_COLOR}",` : ''} label="{${m.model_name}|${ks.join('\\l')}\\l}"];`);
for (const e in m.associations) {
const assoc_info = m.associations[e];
const one = assoc_info.type === "hasOne" && !assoc_info.association.reversed;
exts.push(`[${m.model_name}] ${assoc_info.association.name.replace(/_/g, '%5f')}${one ? "->" : "--:>"} [${assoc_info.association.model.model_name}]`);
const extendsTo = assoc_info.type === "extendsTo";
var es = `${m.model_name} -> ${assoc_info.association.model.model_name} [label=${e}, arrowhead=`;
es += extendsTo ? "diamond" : one ? "empty" : "oinv";
es += "];";
exts.push(es);
}
}
});
const dot = `#lineWidth: 1.5
#font: Helvetica,sans-Serif
#fontSize: 10
#leading: 1.6
#fill: white
#.nographql: fill=${NO_GRAPHQL_COLOR}
const dot = `
digraph
{
node [fontname="Helvetica,sans-Serif", fontsize=10, shape="record", style="filled", fillcolor="white"];
edge [fontname="Helvetica,sans-Serif", fontsize=10, dir=both, arrowsize=0.8, arrowtail=odot];
${models.join('\n')}
${exts.join('\n')}
`;
return nomnoml.renderSvg(dot).replace(/%5f/g, '_');
}`;
let viz = new Viz({ Module, render });
viz.renderStringSync = util.sync(viz.renderString, true);
return viz.renderStringSync(dot);
};

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ /// <reference lib="es2016" />

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ const checkout_acl_1 = require("./checkout_acl");

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ /// <reference lib="es2017" />

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

{
"name": "fib-app",
"version": "1.15.3",
"version": "1.15.4",
"description": "",

@@ -43,3 +43,3 @@ "main": "lib",

"graphql-type-json": "^0.1.4",
"nomnoml": "^1.3.1"
"viz.js": "^2.1.2"
},

@@ -46,0 +46,0 @@ "devDependencies": {

@@ -0,0 +0,0 @@ # fib-app

@@ -0,0 +0,0 @@ import * as mq from 'mq';

import { FibApp } from './Typo/app';
declare const _default: (app: FibApp.FibAppClass, connStr: string, opts: FibApp.FibAppDbSetupOpts) => FibApp.AppORMPool<FibApp.FibAppORM>;
export = _default;

@@ -0,0 +0,0 @@ declare const capabilities: {

import { FibApp } from '../Typo/app';
export declare function setup(app: FibApp.FibAppClass): void;
import type { FibApp } from '../Typo/app';
export declare function setup(app: FibApp.FibAppClass): void;
import { FibApp } from '../Typo/app';
export declare function setup(app: FibApp.FibAppClass): void;
import { FibApp } from '../Typo/app';
declare const _default: (app: FibApp.FibAppClass, ormInstance: FibApp.FibAppORM) => void;
export = _default;
export declare const wait: import("@fxjs/orm/typings/Typo/hook").FxOrmHook.HookWait<import("@fxjs/orm/typings/Typo/instance").FxOrmInstance.Instance, any>;
export declare const trigger: import("@fxjs/orm/typings/Typo/hook").FxOrmHook.HookTrigger<any, any>;
import { FibApp } from '../Typo/app';
export declare function bind(app: FibApp.FibAppClass): void;
import { FibApp } from '../Typo/app';
export declare function setup(app: FibApp.FibAppClass): void;
import { FibApp } from '../Typo/app';
export declare function bind_rpc(app: FibApp.FibAppClass): void;
export declare function bind_websocket_and_rpc(app: FibApp.FibAppClass): void;
import App = require('./app');
export = App;

@@ -0,0 +0,0 @@ import type { FxOrmNS } from '@fxjs/orm/typings/Typo/ORM';

import { FxOrmNS } from "@fxjs/orm/typings/Typo/ORM";
export default function (orm: FxOrmNS.ORM, plugin_opts: {}): FxOrmNS.Plugin;

@@ -0,0 +0,0 @@ export { default as timestamp } from './timestamp';

@@ -0,0 +0,0 @@ import { FxOrmModel } from '@fxjs/orm/typings/Typo/model';

@@ -0,0 +0,0 @@ import { FxOrmNS } from '@fxjs/orm/typings/Typo/ORM';

@@ -0,0 +0,0 @@ import { FibAppTest } from '../Typo/test';

@@ -0,0 +0,0 @@ /// <reference types="@fibjs/types" />

import { FibApp } from '../Typo/app';
export declare function bind(app: FibApp.FibAppClass): void;
/// <reference types="@fibjs/types" />
export declare function graphqlRequest(url: string, body: string): Class_HttpResponse;
export declare function shuffleArray(arr?: any[]): any[];

@@ -0,0 +0,0 @@ import { FibApp } from "./app";

@@ -0,0 +0,0 @@ /// <reference types="fib-rpc" />

@@ -0,0 +0,0 @@ import type { FibApp } from "./app";

import { FibApp } from '../Typo/app';
export declare function run_batch(app: FibApp.FibAppClass, req: FibApp.FibAppHttpRequest): void;

@@ -0,0 +0,0 @@ import { FxOrmNS } from '@fxjs/orm/typings/Typo/ORM';

@@ -0,0 +0,0 @@ import { FxOrmInstance } from '@fxjs/orm/typings/Typo/instance';

@@ -0,0 +0,0 @@ /// <reference types="@fibjs/types" />

declare const _default: () => any;
export = _default;

@@ -0,0 +0,0 @@ /// <reference types="@fibjs/types" />

@@ -0,0 +0,0 @@ /// <reference types="@fibjs/types" />

@@ -0,0 +0,0 @@ import type { FibApp } from '../Typo/app';

@@ -0,0 +0,0 @@ import { FxOrmInstance } from '@fxjs/orm/typings/Typo/instance';

@@ -0,0 +0,0 @@ import { FibApp } from '../Typo/app';

import { FibApp } from "../Typo/app";
export declare function is_graphql_request(request: FibApp.FibAppHttpRequest): boolean;
export declare function run_graphql(app: FibApp.FibAppClass, req: FibApp.FibAppHttpRequest): void;
import { FibApp } from '../Typo/app';
export declare function bind(app: FibApp.FibAppClass): void;

@@ -0,0 +0,0 @@ export declare const ouputMap: {

/// <reference types="@fibjs/types" />
export declare function addHiddenProperty<T = any>(obj: Fibjs.AnyObject, p: string, v: T): void;
export declare function addReadonlyHiddenProperty<T = any>(obj: Fibjs.AnyObject, p: string, getter: (...args: any) => T): void;

@@ -0,0 +0,0 @@ import { FxOrmAssociation } from '@fxjs/orm/typings/Typo/assoc';

@@ -0,0 +0,0 @@ import { FxOrmNS } from "@fxjs/orm/typings/Typo/ORM";

@@ -0,0 +0,0 @@ /// <reference lib="es2017" />

export declare function lcfirst(str?: string): string;
export declare function ucfirst(str?: string): string;
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