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

@enonic/js-utils

Package Overview
Dependencies
Maintainers
4
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enonic/js-utils - npm Package Compare versions

Comparing version 0.34.1 to 0.34.2

4

dist/cjs/array/includes.d.ts

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

declare type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
export declare function includes<A extends Readonly<Array<unknown>>>(array: A, searchElement: ArrayElement<A>, fromIndex?: number): boolean;
declare type ArrayElement<ArrayType extends unknown[]> = ArrayType extends (infer ElementType)[] ? ElementType : never;
export declare function includes<A extends Array<unknown>>(array: A, searchElement: ArrayElement<A>, fromIndex?: number): boolean;
export {};
interface UniqueIdParams {
readonly repoId: string;
readonly branchId?: string;
readonly nodeId: string;
readonly versionKey?: string;
repoId: string;
branchId?: string;
nodeId: string;
versionKey?: string;
}
export declare function uniqueId({ repoId, branchId, nodeId, versionKey }: UniqueIdParams): string;
export {};
import type { IndexConfigEntry, IndexConfigTemplates } from '../../types/index.d';
interface IndexConfigsItem {
readonly path: string;
readonly config: IndexConfigEntry | IndexConfigTemplates;
path: string;
config: IndexConfigEntry | IndexConfigTemplates;
}
declare type IndexConfigs = ReadonlyArray<IndexConfigsItem>;
interface updateIndexConfigsParams {
readonly configs: IndexConfigs;
readonly updates?: IndexConfigs;
configs: IndexConfigs;
updates?: IndexConfigs;
}
export declare function updateIndexConfigs({ configs, updates }: updateIndexConfigsParams): IndexConfigs;
export {};

@@ -14,4 +14,4 @@ export declare const FILTER_CLAUSE_MUST = "must";

export interface FieldObject {
readonly boost?: number;
readonly field: string;
boost?: number;
field: string;
}

@@ -18,0 +18,0 @@ declare type Field = (string | FieldObject);

@@ -6,5 +6,5 @@ interface AppConfigObject {

export interface App {
readonly config :AppConfigObject
readonly name :string
readonly version :string
config :AppConfigObject
name :string
version :string
}

@@ -6,3 +6,3 @@ export interface IndexConfigEntry {

*/
readonly decideByType: boolean;
decideByType: boolean;

@@ -12,3 +12,3 @@ /**

*/
readonly enabled: boolean;
enabled: boolean;

@@ -18,3 +18,3 @@ /**

*/
readonly nGram: boolean;
nGram: boolean;

@@ -24,3 +24,3 @@ /**

*/
readonly fulltext: boolean;
fulltext: boolean;

@@ -30,3 +30,3 @@ /**

*/
readonly includeInAllText: boolean;
includeInAllText: boolean;

@@ -36,3 +36,3 @@ /**

*/
readonly path: boolean;
path: boolean;

@@ -39,0 +39,0 @@ indexValueProcessors?: ReadonlyArray<unknown>;

@@ -20,4 +20,4 @@ import type { PrincipalKey } from '../auth';

export interface MultiRepoNodeQueryHit extends NodeQueryHit {
readonly repoId: string;
readonly branch: string;
repoId: string;
branch: string;
}

@@ -24,0 +24,0 @@

@@ -151,22 +151,22 @@ export interface TermsAggregationParams {

export interface AggregationsResponseBucket {
readonly docCount: number;
readonly key: string;
readonly from?: number | string;
readonly to?: number | string;
docCount: number;
key: string;
from?: number | string;
to?: number | string;
readonly [key2: string]: any; // sub aggregations
[key2: string]: any; // sub aggregations
}
export interface AggregationsResponseEntry {
readonly buckets: Array<AggregationsResponseBucket>;
buckets: Array<AggregationsResponseBucket>;
// Max, Min, Value Count
readonly value? :number
value? :number
// Stats
readonly avg? :number
readonly count? :number
readonly max? :number
readonly min? :number
readonly sum? :number
avg? :number
count? :number
max? :number
min? :number
sum? :number
}

@@ -173,0 +173,0 @@

@@ -29,4 +29,4 @@ import type { PrincipalKey } from '../auth';

export interface NodeQueryHit {
readonly id: string;
readonly score: number;
id: string;
score: number;
}

@@ -37,6 +37,6 @@

> {
readonly total: number;
readonly count: number;
readonly hits: ReadonlyArray<NodeQueryHit>;
readonly aggregations: AggregationsResponse<AggregationKeys>;
total: number;
count: number;
hits: ReadonlyArray<NodeQueryHit>;
aggregations: AggregationsResponse<AggregationKeys>;
}

@@ -43,0 +43,0 @@

@@ -133,3 +133,3 @@ import type {PermissionsParams} from './Auth'

export interface BranchConfig {
readonly id: string;
id: string;
}

@@ -136,0 +136,0 @@

@@ -65,3 +65,3 @@ {

},
"version": "0.34.1"
"version": "0.34.2"
}

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

type ArrayElement<ArrayType extends readonly unknown[]> =
ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
type ArrayElement<ArrayType extends unknown[]> =
ArrayType extends (infer ElementType)[] ? ElementType : never;

@@ -17,3 +17,3 @@

export function includes<
A extends Readonly<Array<unknown>>
A extends Array<unknown>
>(

@@ -20,0 +20,0 @@ array :A,

@@ -5,6 +5,6 @@ import {DOT_SIGN} from '../../constants';

interface UniqueIdParams {
readonly repoId :string;
readonly branchId? :string;
readonly nodeId :string;
readonly versionKey? :string;
repoId :string;
branchId? :string;
nodeId :string;
versionKey? :string;
}

@@ -11,0 +11,0 @@

@@ -11,4 +11,4 @@ import type {

interface IndexConfigsItem {
readonly path: string;
readonly config: IndexConfigEntry | IndexConfigTemplates;
path: string;
config: IndexConfigEntry | IndexConfigTemplates;
}

@@ -19,4 +19,4 @@

interface updateIndexConfigsParams {
readonly configs :IndexConfigs,
readonly updates? :IndexConfigs
configs :IndexConfigs,
updates? :IndexConfigs
}

@@ -23,0 +23,0 @@

@@ -26,4 +26,4 @@ export const FILTER_CLAUSE_MUST = 'must'; // has the type 'must'

export interface FieldObject {
readonly boost? :number,
readonly field :string,
boost? :number,
field :string,
}

@@ -30,0 +30,0 @@

@@ -6,5 +6,5 @@ interface AppConfigObject {

export interface App {
readonly config :AppConfigObject
readonly name :string
readonly version :string
config :AppConfigObject
name :string
version :string
}

@@ -6,3 +6,3 @@ export interface IndexConfigEntry {

*/
readonly decideByType: boolean;
decideByType: boolean;

@@ -12,3 +12,3 @@ /**

*/
readonly enabled: boolean;
enabled: boolean;

@@ -18,3 +18,3 @@ /**

*/
readonly nGram: boolean;
nGram: boolean;

@@ -24,3 +24,3 @@ /**

*/
readonly fulltext: boolean;
fulltext: boolean;

@@ -30,3 +30,3 @@ /**

*/
readonly includeInAllText: boolean;
includeInAllText: boolean;

@@ -36,3 +36,3 @@ /**

*/
readonly path: boolean;
path: boolean;

@@ -39,0 +39,0 @@ indexValueProcessors?: ReadonlyArray<unknown>;

@@ -20,4 +20,4 @@ import type { PrincipalKey } from '../auth';

export interface MultiRepoNodeQueryHit extends NodeQueryHit {
readonly repoId: string;
readonly branch: string;
repoId: string;
branch: string;
}

@@ -24,0 +24,0 @@

@@ -151,22 +151,22 @@ export interface TermsAggregationParams {

export interface AggregationsResponseBucket {
readonly docCount: number;
readonly key: string;
readonly from?: number | string;
readonly to?: number | string;
docCount: number;
key: string;
from?: number | string;
to?: number | string;
readonly [key2: string]: any; // sub aggregations
[key2: string]: any; // sub aggregations
}
export interface AggregationsResponseEntry {
readonly buckets: Array<AggregationsResponseBucket>;
buckets: Array<AggregationsResponseBucket>;
// Max, Min, Value Count
readonly value? :number
value? :number
// Stats
readonly avg? :number
readonly count? :number
readonly max? :number
readonly min? :number
readonly sum? :number
avg? :number
count? :number
max? :number
min? :number
sum? :number
}

@@ -173,0 +173,0 @@

@@ -29,4 +29,4 @@ import type { PrincipalKey } from '../auth';

export interface NodeQueryHit {
readonly id: string;
readonly score: number;
id: string;
score: number;
}

@@ -37,6 +37,6 @@

> {
readonly total: number;
readonly count: number;
readonly hits: ReadonlyArray<NodeQueryHit>;
readonly aggregations: AggregationsResponse<AggregationKeys>;
total: number;
count: number;
hits: ReadonlyArray<NodeQueryHit>;
aggregations: AggregationsResponse<AggregationKeys>;
}

@@ -43,0 +43,0 @@

@@ -133,3 +133,3 @@ import type {PermissionsParams} from './Auth'

export interface BranchConfig {
readonly id: string;
id: string;
}

@@ -136,0 +136,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

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