@notable/dumper
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -1,3 +0,3 @@ | ||
declare type AttachmentRaw = string; | ||
declare type NoteRaw = any; | ||
type AttachmentRaw = string; | ||
type NoteRaw = any; | ||
export type { AttachmentRaw, NoteRaw }; |
@@ -1,4 +0,4 @@ | ||
declare type AttachmentRaw = XML; | ||
declare type NoteRaw = XML; | ||
declare type XML = any; | ||
type AttachmentRaw = XML; | ||
type NoteRaw = XML; | ||
type XML = any; | ||
export type { AttachmentRaw, NoteRaw }; |
@@ -1,3 +0,3 @@ | ||
declare type AttachmentRaw = undefined; | ||
declare type NoteRaw = Uint8Array; | ||
type AttachmentRaw = undefined; | ||
type NoteRaw = Uint8Array; | ||
export type { AttachmentRaw, NoteRaw }; |
@@ -1,3 +0,3 @@ | ||
declare type AttachmentRaw = undefined; | ||
declare type NoteRaw = Uint8Array; | ||
type AttachmentRaw = undefined; | ||
type NoteRaw = Uint8Array; | ||
export type { AttachmentRaw, NoteRaw }; |
/// <reference types="node" /> | ||
import type { Stats } from 'node:fs'; | ||
declare type Constructor<T> = { | ||
type Constructor<T> = { | ||
new (): T; | ||
}; | ||
declare type ConstructorWith<T, Arguments extends unknown[]> = { | ||
type ConstructorWith<T, Arguments extends unknown[]> = { | ||
new (...args: Arguments): T; | ||
}; | ||
declare type Promisable<T> = Promise<T> | T; | ||
declare type DOMParser = Constructor<{ | ||
type Promisable<T> = Promise<T> | T; | ||
type DOMParser = Constructor<{ | ||
parseFromString(str: string, mimeType: string): Document; | ||
}>; | ||
declare type Attachment = { | ||
type Attachment = { | ||
metadata: AttachmentMetadata; | ||
content: Content; | ||
}; | ||
declare type AttachmentMetadata = { | ||
type AttachmentMetadata = { | ||
name: string; | ||
@@ -23,7 +23,7 @@ created: Date; | ||
}; | ||
declare type Note = { | ||
type Note = { | ||
metadata: NoteMetadata; | ||
content: Content; | ||
}; | ||
declare type NoteMetadata = { | ||
type NoteMetadata = { | ||
title: string; | ||
@@ -39,10 +39,10 @@ tags: string[]; | ||
}; | ||
declare type Dump = (note: Note) => Promisable<void>; | ||
declare type Source = string | Uint8Array; | ||
declare type SourceDetails = { | ||
type Dump = (note: Note) => Promisable<void>; | ||
type Source = string | Uint8Array; | ||
type SourceDetails = { | ||
stats?: Stats; | ||
filePath?: string; | ||
}; | ||
declare type Content = Uint8Array; | ||
declare type Options = { | ||
type Content = Uint8Array; | ||
type Options = { | ||
DOMParser?: DOMParser; | ||
@@ -49,0 +49,0 @@ source: Source | Source[]; |
{ | ||
"name": "@notable/dumper", | ||
"repository": "github:fabiospampinato/@notable/dumper", | ||
"repository": "github:fabiospampinato/dumper", | ||
"description": "Library for extracting attachments, notes and metadata out of formats used by popular note-taking apps.", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"type": "module", | ||
@@ -40,9 +40,9 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/node": "^18.11.9", | ||
"@types/node": "^20.5.0", | ||
"domino": "^2.1.6", | ||
"test-diff": "^2.0.2", | ||
"tiny-parse-argv": "^1.0.2", | ||
"tsex": "^1.1.2", | ||
"typescript": "^4.8.4" | ||
"test-diff": "^2.0.3", | ||
"tiny-parse-argv": "^2.2.0", | ||
"tsex": "^3.0.1", | ||
"typescript": "^5.1.6" | ||
} | ||
} |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
56132