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

@chisel/typescript

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chisel/typescript - npm Package Compare versions

Comparing version 0.0.32 to 0.0.33

analyzer/index.js

2

index.js

@@ -14,1 +14,3 @@ "use strict";

exports.Processor = Processor;
const Analyzer = __importStar(require("./analyzer"));
exports.Analyzer = Analyzer;

3

index.ts
import * as Scraper from './scraper';
import * as Processor from './processor';
import * as Analyzer from './analyzer';
export { Scraper, Processor };
export { Scraper, Processor, Analyzer };
{
"name": "@chisel/typescript",
"version": "0.0.32",
"version": "0.0.33",
"description": "Chisel Data Integration Platform TypeScript Essentials.",

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

@@ -1,4 +0,23 @@

export { Logger, Colors, MicrosetRef } from '../shared';
export {
Logger,
Colors,
MicrosetRef,
QueryPredicates,
Utility,
EnrichedNameData,
QueryPredicateFactory,
QueryPredicateFunction,
QueryResult,
DoneFunction
} from '../shared';
import { Logger, BaseAPI } from '../shared';
import {
Logger,
BaseAPI,
QueryPredicates,
QueryPredicateFunction,
QueryResult,
Utility,
DoneFunction
} from '../shared';

@@ -93,31 +112,2 @@ export interface Main {

export interface QueryResult {
path: string;
value: any;
}
export type QueryPredicateFunction = (data: any, path: string) => boolean;
export type QueryPredicateFactory = (...args: any[]) => QueryPredicateFunction;
export interface Utility {
traverseUp: (path: string) => string;
current: (path: string) => string;
parent: (path: string) => string;
ancestors: (path: string) => string[];
enrichedNameData: (enrichedName: string) => EnrichedNameData;
}
export interface EnrichedNameData {
name: string;
session: string;
time: Date;
}
export interface DataMutators {

@@ -130,56 +120,1 @@

}
export interface QueryPredicates {
lookAhead: (relativePath: string, predicate: QueryPredicateFunction|QueryPredicateFunction[]) => QueryPredicateFunction;
isEvenNumber: (safe?: boolean) => QueryPredicateFunction;
isOddNumber: (safe?: boolean) => QueryPredicateFunction;
hasLengthOf: (value: number, safe?: boolean) => QueryPredicateFunction;
greaterThan: (value: number, safe?: boolean) => QueryPredicateFunction;
greaterThanOrEqual: (value: number, safe?: boolean) => QueryPredicateFunction;
lessThan: (value: number, safe?: boolean) => QueryPredicateFunction;
lessThanOrEqual: (value: number, safe?: boolean) => QueryPredicateFunction;
match: (value: RegExp, safe?: boolean) => QueryPredicateFunction;
matchAny: (value: RegExp, safe?: boolean) => QueryPredicateFunction;
equals: (value: any) => QueryPredicateFunction;
equalsStrict: (value: any) => QueryPredicateFunction;
notEquals: (value: any) => QueryPredicateFunction;
notEqualsStrict: (value: any) => QueryPredicateFunction;
includes: (value: any, safe?: boolean) => QueryPredicateFunction;
notIncludes: (value: any, safe?: boolean) => QueryPredicateFunction;
includesAll: (value: any[], safe?: boolean) => QueryPredicateFunction;
includesNone: (value: any[], safe?: boolean) => QueryPredicateFunction;
hasChild: (value: string, safe?: boolean) => QueryPredicateFunction;
hasNoChild: (value: string, safe?: boolean) => QueryPredicateFunction;
ofType: (value: string) => QueryPredicateFunction;
notOfType: (value: string) => QueryPredicateFunction;
instanceOf: (value: any) => QueryPredicateFunction;
notInstanceOf: (value: any) => QueryPredicateFunction;
la: (relativePath: string, predicate: QueryPredicateFunction|QueryPredicateFunction[]) => QueryPredicateFunction;
ien: (safe?: boolean) => QueryPredicateFunction;
ion: (safe?: boolean) => QueryPredicateFunction;
hlo: (value: number, safe?: boolean) => QueryPredicateFunction;
gt: (value: number, safe?: boolean) => QueryPredicateFunction;
gte: (value: number, safe?: boolean) => QueryPredicateFunction;
lt: (value: number, safe?: boolean) => QueryPredicateFunction;
lte: (value: number, safe?: boolean) => QueryPredicateFunction;
m: (value: RegExp, safe?: boolean) => QueryPredicateFunction;
ma: (value: RegExp, safe?: boolean) => QueryPredicateFunction;
e: (value: any) => QueryPredicateFunction;
es: (value: any) => QueryPredicateFunction;
ne: (value: any) => QueryPredicateFunction;
nes: (value: any) => QueryPredicateFunction;
i: (value: any, safe?: boolean) => QueryPredicateFunction;
ni: (value: any, safe?: boolean) => QueryPredicateFunction;
ia: (value: any[], safe?: boolean) => QueryPredicateFunction;
in: (value: any[], safe?: boolean) => QueryPredicateFunction;
hc: (value: string, safe?: boolean) => QueryPredicateFunction;
hnc: (value: string, safe?: boolean) => QueryPredicateFunction;
ot: (value: string) => QueryPredicateFunction;
not: (value: string) => QueryPredicateFunction;
io: (value: any) => QueryPredicateFunction;
nio: (value: any) => QueryPredicateFunction;
}
export type DoneFunction = () => void;

@@ -22,2 +22,3 @@ # Chisel Data Integration Framework TypeScript Essentials

Processor, // Namespace for all exports of `@chisel/typescript/processor`
Analyzer // Namespace for all exports of `@chisel/typescript/analyzer`
} from '@chisel/typescript';

@@ -64,2 +65,32 @@

} from '@chisel/typescript/scraper';
// Exports of `@chisel/typescripts/analyzer`
import {
Analyzer,
AnalyzerDefinition,
Main,
MainFunction,
AnalyzerAPI,
DatabaseRef,
TreeRef,
PathRef,
DataRef,
ReportRef,
SectionRef,
ChartRef,
ChartDatasetRef,
LabelRef,
TableRef,
ChartType,
Logger,
Colors,
MicrosetRef,
QueryPredicates,
QueryPredicateFactory,
QueryPredicateFunction,
QueryResult,
Utility,
DoneFunction,
EnrichedNameData
} from '@chisel/typescript/analyzer'
```

@@ -66,0 +97,0 @@

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

export { Logger, Colors, MicrosetRef } from '../shared';
export { Logger, Colors, MicrosetRef, DoneFunction } from '../shared';
import { Logger, BaseAPI } from '../shared';
import { Logger, BaseAPI, DoneFunction } from '../shared';

@@ -31,3 +31,3 @@ export interface Session {

export type MainFunction = (api: ScraperAPI, session: Session, response: Response|Response[], logger: Logger, done: () => void) => void;
export type MainFunction = (api: ScraperAPI, session: Session, response: Response|Response[], logger: Logger, done: DoneFunction) => void;

@@ -34,0 +34,0 @@ export interface Response {

@@ -41,1 +41,85 @@ export interface Logger {

}
export interface QueryPredicates {
lookAhead: (relativePath: string, predicate: QueryPredicateFunction|QueryPredicateFunction[]) => QueryPredicateFunction;
isEvenNumber: (safe?: boolean) => QueryPredicateFunction;
isOddNumber: (safe?: boolean) => QueryPredicateFunction;
hasLengthOf: (value: number, safe?: boolean) => QueryPredicateFunction;
greaterThan: (value: number, safe?: boolean) => QueryPredicateFunction;
greaterThanOrEqual: (value: number, safe?: boolean) => QueryPredicateFunction;
lessThan: (value: number, safe?: boolean) => QueryPredicateFunction;
lessThanOrEqual: (value: number, safe?: boolean) => QueryPredicateFunction;
match: (value: RegExp, safe?: boolean) => QueryPredicateFunction;
matchAny: (value: RegExp, safe?: boolean) => QueryPredicateFunction;
equals: (value: any) => QueryPredicateFunction;
equalsStrict: (value: any) => QueryPredicateFunction;
notEquals: (value: any) => QueryPredicateFunction;
notEqualsStrict: (value: any) => QueryPredicateFunction;
includes: (value: any, safe?: boolean) => QueryPredicateFunction;
notIncludes: (value: any, safe?: boolean) => QueryPredicateFunction;
includesAll: (value: any[], safe?: boolean) => QueryPredicateFunction;
includesNone: (value: any[], safe?: boolean) => QueryPredicateFunction;
hasChild: (value: string, safe?: boolean) => QueryPredicateFunction;
hasNoChild: (value: string, safe?: boolean) => QueryPredicateFunction;
ofType: (value: string) => QueryPredicateFunction;
notOfType: (value: string) => QueryPredicateFunction;
instanceOf: (value: any) => QueryPredicateFunction;
notInstanceOf: (value: any) => QueryPredicateFunction;
la: (relativePath: string, predicate: QueryPredicateFunction|QueryPredicateFunction[]) => QueryPredicateFunction;
ien: (safe?: boolean) => QueryPredicateFunction;
ion: (safe?: boolean) => QueryPredicateFunction;
hlo: (value: number, safe?: boolean) => QueryPredicateFunction;
gt: (value: number, safe?: boolean) => QueryPredicateFunction;
gte: (value: number, safe?: boolean) => QueryPredicateFunction;
lt: (value: number, safe?: boolean) => QueryPredicateFunction;
lte: (value: number, safe?: boolean) => QueryPredicateFunction;
m: (value: RegExp, safe?: boolean) => QueryPredicateFunction;
ma: (value: RegExp, safe?: boolean) => QueryPredicateFunction;
e: (value: any) => QueryPredicateFunction;
es: (value: any) => QueryPredicateFunction;
ne: (value: any) => QueryPredicateFunction;
nes: (value: any) => QueryPredicateFunction;
i: (value: any, safe?: boolean) => QueryPredicateFunction;
ni: (value: any, safe?: boolean) => QueryPredicateFunction;
ia: (value: any[], safe?: boolean) => QueryPredicateFunction;
in: (value: any[], safe?: boolean) => QueryPredicateFunction;
hc: (value: string, safe?: boolean) => QueryPredicateFunction;
hnc: (value: string, safe?: boolean) => QueryPredicateFunction;
ot: (value: string) => QueryPredicateFunction;
not: (value: string) => QueryPredicateFunction;
io: (value: any) => QueryPredicateFunction;
nio: (value: any) => QueryPredicateFunction;
}
export type QueryPredicateFunction = (data: any, path: string) => boolean;
export type QueryPredicateFactory = (...args: any[]) => QueryPredicateFunction;
export interface Utility {
traverseUp: (path: string) => string;
current: (path: string) => string;
parent: (path: string) => string;
ancestors: (path: string) => string[];
enrichedNameData: (enrichedName: string) => EnrichedNameData;
}
export interface EnrichedNameData {
name: string;
session: string;
time: Date;
}
export interface QueryResult {
path: string;
value: any;
}
export type DoneFunction = () => void;
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