@shikijs/core 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4945,7 +4945,7 @@ function isResponse(dataOrOptions) {
4945
4945
  function isArrayBuffer(data) {
4946
4946
  return (typeof ArrayBuffer !== 'undefined' && (data instanceof ArrayBuffer || ArrayBuffer.isView(data)))
4947
4947
  // eslint-disable-next-line node/prefer-global/buffer
4948
- || (typeof Buffer !== 'undefined' && Buffer.isBuffer(data))
4948
+ || (typeof Buffer !== 'undefined' && Buffer.isBuffer?.(data))
4949
4949
  || (typeof SharedArrayBuffer !== 'undefined' && data instanceof SharedArrayBuffer)
4950
4950
  || (typeof Uint32Array !== 'undefined' && data instanceof Uint32Array);
4951
4951
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/core",
3
3
  "type": "module",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "description": "Core of Shiki",
6
6
  "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",