feat(ui): finalize E-TIB modernization with footer redesign, video optimization, and TS fixes
Former-commit-id: 67ac02c8404cc66893fdf97308574701cca6000c
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
../../bail@2.0.2/node_modules/bail
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../devlop@1.1.0/node_modules/devlop
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../extend@3.0.2/node_modules/extend
|
||||
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../is-plain-obj@4.1.0/node_modules/is-plain-obj
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../trough@2.2.0/node_modules/trough
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// Note: types exposed from `index.d.ts`.
|
||||
export {unified} from './lib/index.js'
|
||||
Generated
Vendored
+44
@@ -0,0 +1,44 @@
|
||||
export const CallableInstance =
|
||||
/**
|
||||
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
||||
*/
|
||||
(
|
||||
/** @type {unknown} */
|
||||
(
|
||||
/**
|
||||
* @this {Function}
|
||||
* @param {string | symbol} property
|
||||
* @returns {(...parameters: Array<unknown>) => unknown}
|
||||
*/
|
||||
function (property) {
|
||||
const self = this
|
||||
const constr = self.constructor
|
||||
const proto = /** @type {Record<string | symbol, Function>} */ (
|
||||
// Prototypes do exist.
|
||||
// type-coverage:ignore-next-line
|
||||
constr.prototype
|
||||
)
|
||||
const value = proto[property]
|
||||
/** @type {(...parameters: Array<unknown>) => unknown} */
|
||||
const apply = function () {
|
||||
return value.apply(apply, arguments)
|
||||
}
|
||||
|
||||
Object.setPrototypeOf(apply, proto)
|
||||
|
||||
// Not needed for us in `unified`: we only call this on the `copy`
|
||||
// function,
|
||||
// and we don't need to add its fields (`length`, `name`)
|
||||
// over.
|
||||
// See also: GH-246.
|
||||
// const names = Object.getOwnPropertyNames(value)
|
||||
//
|
||||
// for (const p of names) {
|
||||
// const descriptor = Object.getOwnPropertyDescriptor(value, p)
|
||||
// if (descriptor) Object.defineProperty(apply, p, descriptor)
|
||||
// }
|
||||
|
||||
return apply
|
||||
}
|
||||
)
|
||||
)
|
||||
Generated
Vendored
+1323
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+120
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"name": "unified",
|
||||
"version": "11.0.5",
|
||||
"description": "parse, inspect, transform, and serialize content through syntax trees",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"ast",
|
||||
"compile",
|
||||
"content",
|
||||
"cst",
|
||||
"parse",
|
||||
"process",
|
||||
"rehype",
|
||||
"remark",
|
||||
"retext",
|
||||
"serialize",
|
||||
"stringify",
|
||||
"syntax",
|
||||
"transform",
|
||||
"tree",
|
||||
"unified"
|
||||
],
|
||||
"homepage": "https://unifiedjs.com",
|
||||
"repository": "unifiedjs/unified",
|
||||
"bugs": "https://github.com/unifiedjs/unified/issues",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
},
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"Junyoung Choi <fluke8259@gmail.com>",
|
||||
"Hernan Rajchert <hrajchert@gmail.com>",
|
||||
"Christian Murphy <christian.murphy.42@gmail.com>",
|
||||
"Vse Mozhet Byt <vsemozhetbyt@gmail.com>",
|
||||
"Richard Littauer <richard.littauer@gmail.com>"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"files": [
|
||||
"lib/",
|
||||
"index.d.ts",
|
||||
"index.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"bail": "^2.0.0",
|
||||
"devlop": "^1.0.0",
|
||||
"extend": "^3.0.0",
|
||||
"is-plain-obj": "^4.0.0",
|
||||
"trough": "^2.0.0",
|
||||
"vfile": "^6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/extend": "^3.0.0",
|
||||
"@types/hast": "^3.0.0",
|
||||
"@types/mdast": "^4.0.0",
|
||||
"@types/node": "^20.0.0",
|
||||
"c8": "^10.0.0",
|
||||
"prettier": "^3.0.0",
|
||||
"remark-cli": "^12.0.0",
|
||||
"remark-preset-wooorm": "^10.0.0",
|
||||
"tsd": "^0.31.0",
|
||||
"type-coverage": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"xo": "^0.58.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc --build --clean && tsc --build && node script/fix-types.js && type-coverage && tsd",
|
||||
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
|
||||
"prepack": "npm run build && npm run format",
|
||||
"test": "npm run build && npm run format && npm run test-coverage",
|
||||
"test-api": "node --conditions development test/index.js",
|
||||
"test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api"
|
||||
},
|
||||
"prettier": {
|
||||
"bracketSpacing": false,
|
||||
"singleQuote": true,
|
||||
"semi": false,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "none",
|
||||
"useTabs": false
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"remark-preset-wooorm",
|
||||
[
|
||||
"remark-lint-no-html",
|
||||
false
|
||||
]
|
||||
]
|
||||
},
|
||||
"typeCoverage": {
|
||||
"atLeast": 100,
|
||||
"detail": true,
|
||||
"ignoreCatch": true,
|
||||
"strict": true
|
||||
},
|
||||
"xo": {
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"**/*.ts"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/ban-types": "off",
|
||||
"@typescript-eslint/consistent-type-definitions": "off",
|
||||
"@typescript-eslint/naming-convention": "off",
|
||||
"import/no-duplicates": "off"
|
||||
}
|
||||
}
|
||||
],
|
||||
"prettier": true,
|
||||
"rules": {
|
||||
"unicorn/no-this-assignment": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../vfile@6.0.3/node_modules/vfile
|
||||
Reference in New Issue
Block a user