feat: add oEmbed support (#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>
This commit is contained in:
Kagami Sascha Rosylight
2023-03-13 18:46:41 +01:00
committed by GitHub
parent 51f3870e1f
commit eab3766db9
46 changed files with 3936 additions and 112 deletions

6
built/general.d.ts vendored
View File

@ -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;