Comparing version 0.1.2 to 0.1.3
import { Client } from '@notionhq/client'; | ||
import { RichTextItemResponse } from '@notionhq/client/build/src/api-endpoints'; | ||
import { DOMJSON, RichTextDOMJSON } from './DOMJSON'; | ||
export declare class NotionEXClinet { | ||
export declare class NotionEXClient { | ||
private readonly client; | ||
@@ -6,0 +6,0 @@ constructor(client: Client); |
@@ -15,5 +15,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NotionEXClinet = void 0; | ||
exports.NotionEXClient = void 0; | ||
const open_graph_scraper_1 = __importDefault(require("open-graph-scraper")); | ||
class NotionEXClinet { | ||
class NotionEXClient { | ||
constructor(client) { | ||
@@ -640,2 +640,2 @@ this.client = client; | ||
} | ||
exports.NotionEXClinet = NotionEXClinet; | ||
exports.NotionEXClient = NotionEXClient; |
@@ -1,2 +0,2 @@ | ||
export { NotionEXClinet } from './client'; | ||
export { NotionEXClient } from './client'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NotionEXClinet = void 0; | ||
exports.NotionEXClient = void 0; | ||
var client_1 = require("./client"); | ||
Object.defineProperty(exports, "NotionEXClinet", { enumerable: true, get: function () { return client_1.NotionEXClinet; } }); | ||
Object.defineProperty(exports, "NotionEXClient", { enumerable: true, get: function () { return client_1.NotionEXClient; } }); |
{ | ||
"name": "notion-ex", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -46,3 +46,3 @@ import { Client } from '@notionhq/client' | ||
export class NotionEXClinet { | ||
export class NotionEXClient { | ||
private readonly client: Client | ||
@@ -49,0 +49,0 @@ |
@@ -1,1 +0,1 @@ | ||
export { NotionEXClinet } from './client' | ||
export { NotionEXClient } from './client' |
import { test, describe } from 'vitest' | ||
import { Client } from '@notionhq/client' | ||
import { NotionEXClinet } from '../../src' | ||
import { NotionEXClient } from '../../src' | ||
@@ -13,3 +13,3 @@ import 'dotenv/config' | ||
const notionExClient = new NotionEXClinet(notion) | ||
const notionExClient = new NotionEXClient(notion) | ||
@@ -16,0 +16,0 @@ const data = await notionExClient.getDOMJSONFromBlockId( |
import { describe, expect, test } from 'vitest' | ||
import { NotionEXClinet } from '../../src' | ||
import { NotionEXClient } from '../../src' | ||
import { Client } from '@notionhq/client' | ||
@@ -8,5 +8,5 @@ | ||
const notion = new Client() | ||
const client = new NotionEXClinet(notion) | ||
expect(client).instanceOf(NotionEXClinet) | ||
const client = new NotionEXClient(notion) | ||
expect(client).instanceOf(NotionEXClient) | ||
}) | ||
}) |