dc7290 / microcms-richedit-processer Goto Github PK
View Code? Open in Web Editor NEWmicroCMSのリッチエディタから取得した値を加工したり、目次リストを作成します。
License: MIT License
microCMSのリッチエディタから取得した値を加工したり、目次リストを作成します。
License: MIT License
Describe the bug
Draftページやローカル開発の際に、下記の行で表題のエラーが発生しています。
node-fetchで取得したレスポンスに対してbuffer()が存在しないケースがあるようです。
以下のように修正したら正常に動作しました。
const size = sizeOf(
await fetch(splitSrc[0])
.then((res) => res.arrayBuffer())
.then(arrayBuffer => Buffer.from(arrayBuffer))
)
To Reproduce
Expected behavior
正常に画面が表示される
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | @types/deepmerge |
|
npm | npm-run-all |
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@commitlint/cli
, @commitlint/config-conventional
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@commitlint/cli
, @commitlint/config-conventional
)@types/jest
, jest
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
).github/workflows/node.js.yml
actions/checkout v3
actions/setup-node v3
.github/workflows/release.yml
actions/checkout v3
actions/setup-node v3
package.json
cross-fetch ^3.1.5
deepmerge ^4.2.2
image-size ^1.0.2
node-html-parser ^6.1.4
ts-imgix ^0.0.18
@commitlint/cli 17.4.2
@commitlint/config-conventional 17.4.2
@semantic-release/changelog 6.0.2
@semantic-release/git 10.0.1
@types/deepmerge 2.2.0
@types/jest 29.2.5
@types/node-fetch 2.6.1
@types/react 18.0.26
@typescript-eslint/eslint-plugin 5.48.1
@typescript-eslint/parser 5.48.1
conventional-changelog-conventionalcommits 5.0.0
eslint 8.32.0
eslint-config-prettier 8.6.0
git-cz 4.9.0
highlight.js 11.7.0
husky 8.0.3
jest 29.3.1
lint-staged 13.1.0
npm-run-all 4.1.5
prettier 2.8.3
semantic-release 19.0.5
ts-jest 29.0.5
typescript 4.9.4
highlight.js ^11.7.0
node >=v16.0.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.