forked from misskey-dev/summaly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add oEmbed support (misskey-dev#6)
* feat: add oEmbed support * more safelisted features * fix the syntax * Update README.md * permissions * names * playerを使うように * fix type error * support width (for size ratio) * test for type: video * nullable width * restore max height test * ignored permissions * restore autoplay * Use WHATWG URL --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
- Loading branch information
Showing
46 changed files
with
3,936 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
Unreleased | ||
------------------ | ||
* oEmbed type=richの制限的なサポート | ||
|
||
3.0.4 / 2023-02-12 | ||
------------------ | ||
* 不要な依存関係を除去 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import * as URL from 'node:url'; | ||
import Summary from './summary.js'; | ||
declare const _default: (url: URL.Url, lang?: string | null) => Promise<Summary | null>; | ||
import { URL } from 'node:url'; | ||
import type { default as Summary } from './summary.js'; | ||
declare const _default: (_url: URL | string, lang?: string | null) => Promise<Summary | null>; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/// <reference types="node" /> | ||
import * as URL from 'node:url'; | ||
import type { URL } from 'node:url'; | ||
import Summary from './summary.js'; | ||
export interface IPlugin { | ||
test: (url: URL.Url) => boolean; | ||
summarize: (url: URL.Url, lang?: string) => Promise<Summary>; | ||
test: (url: URL) => boolean; | ||
summarize: (url: URL, lang?: string) => Promise<Summary>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/// <reference types="node" /> | ||
import * as URL from 'node:url'; | ||
import { URL } from 'node:url'; | ||
import summary from '../summary.js'; | ||
export declare function test(url: URL.Url): boolean; | ||
export declare function summarize(url: URL.Url): Promise<summary>; | ||
export declare function test(url: URL): boolean; | ||
export declare function summarize(url: URL): Promise<summary>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/// <reference types="node" /> | ||
import * as URL from 'node:url'; | ||
import { URL } from 'node:url'; | ||
import summary from '../summary.js'; | ||
export declare function test(url: URL.Url): boolean; | ||
export declare function summarize(url: URL.Url): Promise<summary>; | ||
export declare function test(url: URL): boolean; | ||
export declare function summarize(url: URL): Promise<summary>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.