@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.
- package/dist/index.mjs +1 -1
- 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
|
}
|