GithubHelp home page GithubHelp logo

dc7290 / microcms-richedit-processer Goto Github PK

View Code? Open in Web Editor NEW
23.0 0.0 1.0 990 KB

microCMSのリッチエディタから取得した値を加工したり、目次リストを作成します。

License: MIT License

JavaScript 23.87% TypeScript 75.51% Shell 0.61%
microcms typescript

microcms-richedit-processer's Introduction

dc7290's GitHub stats

Top Langs

Readme Card

microcms-richedit-processer's People

Contributors

dc7290 avatar dependabot[bot] avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

naoseru

microcms-richedit-processer's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): replace dependency npm-run-all with npm-run-all2 5.0.0
  • chore(deps): update dependency prettier to v2.8.8
  • fix(deps): update dependency cross-fetch to ^3.1.8
  • fix(deps): update dependency node-html-parser to ^6.1.13
  • fix(deps): update dependency ts-imgix to ^0.0.24
  • chore(deps): update dependency @types/react to v18.2.74
  • chore(deps): update dependency eslint-config-prettier to v8.10.0
  • chore(deps): update dependency highlight.js to v11.9.0
  • chore(deps): update dependency lint-staged to v13.3.0
  • chore(deps): update dependency ts-jest to v29.1.2
  • fix(deps): update dependency image-size to ^1.1.1
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update commitlint monorepo to v19 (major) (@commitlint/cli, @commitlint/config-conventional)
  • chore(deps): update dependency conventional-changelog-conventionalcommits to v7
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency lint-staged to v15
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency typescript to v5
  • chore(deps): update node.js to v20
  • chore(deps): update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency cross-fetch to v4
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/node.js.yml
  • actions/checkout v3
  • actions/setup-node v3
.github/workflows/release.yml
  • actions/checkout v3
  • actions/setup-node v3
npm
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

  • Check this box to trigger a request for Renovate to run again on this repository

リッチテキストに画像が含まれているとres.buffer is not a functionが発生する

Describe the bug
Draftページやローカル開発の際に、下記の行で表題のエラーが発生しています。
node-fetchで取得したレスポンスに対してbuffer()が存在しないケースがあるようです。

const size = sizeOf(await fetch(splitSrc[0]).then((res) => res.buffer()))

以下のように修正したら正常に動作しました。

  const size = sizeOf(
      await fetch(splitSrc[0])
          .then((res) => res.arrayBuffer())
          .then(arrayBuffer => Buffer.from(arrayBuffer))
  )

To Reproduce

  • 画像が含まれているフィールドをprocesserで処理しているページにリンク経由で遷移する。

Expected behavior
正常に画面が表示される

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: 108.0.5359.124 (Official Build) (x86_64)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.