vite-plugin-sri4 1.2.0 → 1.3.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.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var fetch = require('node-fetch');
4
+ var fetch = require('cross-fetch');
5
5
 
6
6
  const DEFAULT_OPTIONS = {
7
7
  algorithm: 'sha384',
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createHash } from 'node:crypto';
2
- import fetch from 'node-fetch';
2
+ import fetch from 'cross-fetch';
3
3
 
4
4
  const DEFAULT_OPTIONS = {
5
5
  algorithm: 'sha384',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-sri4",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "A Vite plugin to generate Subresource Integrity (SRI) hashes for output files.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -23,7 +23,7 @@
23
23
  "prepublishOnly": "npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "node-fetch": "^3.3.2"
26
+ "cross-fetch": "^4.1.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "vite": "^4.0.0 || ^5.0.0 || ^6.0.0"