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

enonic-types

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enonic-types - npm Package Compare versions

Comparing version 0.0.33 to 0.0.34

lib/types.d.ts

10

lib/content.d.ts

@@ -39,5 +39,3 @@ import { Region } from "./portal";

readonly data: A;
readonly x: {
readonly [key: string]: string;
};
readonly x: Record<string, any>;
readonly page: Page<PageConfig>;

@@ -223,3 +221,3 @@ readonly attachments: Attachments;

readonly data: A;
readonly x?: string;
readonly x?: Record<string, any>;
}

@@ -275,5 +273,3 @@ export interface ModifyContentParams<A extends object> {

};
readonly x: {
readonly [key: string]: string;
};
readonly x: Record<string, any>;
readonly page: Page<PageConfig>;

@@ -280,0 +276,0 @@ readonly attachments: object;

@@ -14,2 +14,8 @@ import { ByteSource, Content, Site } from "./content";

}
interface ByPath {
readonly path: string;
}
interface ById {
readonly id: string;
}
export interface PortalLibrary {

@@ -67,5 +73,3 @@ getComponent<A>(): Component<A> | null;

}
export interface AttachmentUrlParams {
readonly id?: string;
readonly path?: string;
export declare type AttachmentUrlParams = XOR<ById, ByPath> & {
readonly name?: string;

@@ -76,13 +80,9 @@ readonly label?: string;

readonly type?: "server" | "absolute";
}
export interface ComponentUrlParams {
readonly id?: string;
readonly path?: string;
};
export declare type ComponentUrlParams = XOR<ById, ByPath> & {
readonly component?: string;
readonly type?: "server" | "absolute";
readonly params?: Params;
}
export interface ImageUrlParams {
readonly id?: string;
readonly path?: string;
};
export declare type ImageUrlParams = XOR<ById, ByPath> & {
readonly scale: string;

@@ -95,9 +95,7 @@ readonly quality?: number;

readonly params?: Params;
}
export interface PageUrlParams {
readonly id?: string;
readonly path?: string;
};
export declare type PageUrlParams = XOR<ById, ByPath> & {
readonly type?: "server" | "absolute";
readonly params?: Params;
}
};
export interface LoginUrlParams {

@@ -137,1 +135,2 @@ readonly idProvider?: string;

}
export {};
{
"name": "enonic-types",
"version": "0.0.33",
"version": "0.0.34",
"description": "TypeScript types for Enonic XP",

@@ -27,8 +27,8 @@ "main": "lib/index.js",

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.19.2",
"@typescript-eslint/parser": "^2.19.2",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"eslint": "^6.8.0",
"rimraf": "^3.0.2",
"typescript": "^3.7.5"
"typescript": "^3.8.2"
}
}
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