@enonic-types/lib-auditlog
Advanced tools
Comparing version 7.11.0-B1 to 7.11.0-B3
@@ -0,1 +1,9 @@ | ||
/** | ||
* Functions to log and find audit logs. | ||
* | ||
* @example | ||
* var auditLib = require('/lib/xp/auditlog'); | ||
* | ||
* @module audit | ||
*/ | ||
declare global { | ||
@@ -6,2 +14,4 @@ interface XpLibraries { | ||
} | ||
import type { UserKey } from '@enonic-types/core'; | ||
export type { UserKey } from '@enonic-types/core'; | ||
export interface AuditLogParams { | ||
@@ -11,3 +21,3 @@ type: string; | ||
source?: string; | ||
user?: string; | ||
user?: UserKey; | ||
objects?: string[]; | ||
@@ -21,3 +31,3 @@ data?: Record<string, unknown>; | ||
source: string; | ||
user: string; | ||
user: UserKey; | ||
objects: string[]; | ||
@@ -24,0 +34,0 @@ data: Record<string, unknown>; |
{ | ||
"name": "@enonic-types/lib-auditlog", | ||
"version": "7.11.0-B1", | ||
"version": "7.11.0-B3", | ||
"description": "Type definitions for lib-auditlog.", | ||
@@ -29,2 +29,5 @@ "types": "auditlog.d.ts", | ||
"homepage": "https://github.com/enonic/xp/tree/master#readme", | ||
"dependencies": { | ||
"@enonic-types/core": "7.11.0-B3" | ||
}, | ||
"publishConfig": { | ||
@@ -31,0 +34,0 @@ "access": "public" |
@@ -8,3 +8,3 @@ # Enonic XP lib-auditlog TS types | ||
```bash | ||
npm i --save-dev @enonic/lib-auditlog | ||
npm i --save-dev @enonic-types/lib-auditlog | ||
``` | ||
@@ -30,4 +30,4 @@ | ||
To make `require` work out of box, you must install and add the `@enonic-types/global` types. Aside from providing definitions for XP global | ||
objects, e.g. `log`, `app`, `__`, etc, requiring library by the default path will return typed object. | ||
To make `require` work out of the box, you must install and add the `@enonic-types/global` types. Aside from providing definitions for XP | ||
global objects, e.g. `log`, `app`, `__`, etc, requiring a library by the default path will return typed object. | ||
@@ -54,3 +54,3 @@ `tsconfig.json` | ||
More detailed explanation on how it works and how to type custom import function can be | ||
found [here](https://github.com/enonic/xp/tree/master/modules/lib/typescript/README.md). | ||
found [here](https://developer.enonic.com/docs/xp/stable/api). | ||
@@ -57,0 +57,0 @@ ### ES6-style import |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5752
102
0
1
+ Added@enonic-types/core@7.11.0-B3
+ Added@enonic-types/core@7.11.0-B3(transitive)