@aws-sdk/cloudfront-signer 3.997.0 → 3.999.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-cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var protocols = require('@smithy/core/protocols');
4
- var crypto = require('crypto');
4
+ var node_crypto = require('node:crypto');
5
5
 
6
6
  function getSignedUrl({ dateLessThan, dateGreaterThan, url, keyPairId, privateKey, ipAddress, policy, passphrase, }) {
7
7
  const cloudfrontSignBuilder = new CloudfrontSignBuilder({
@@ -219,7 +219,7 @@ class CloudfrontSignBuilder {
219
219
  };
220
220
  }
221
221
  signData(data, privateKey, passphrase) {
222
- const sign = crypto.createSign("RSA-SHA1");
222
+ const sign = node_crypto.createSign("RSA-SHA1");
223
223
  sign.update(data);
224
224
  return sign.sign({ key: privateKey, passphrase }, "base64");
225
225
  }
package/dist-es/sign.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { extendedEncodeURIComponent } from "@smithy/core/protocols";
2
- import { createSign } from "crypto";
2
+ import { createSign } from "node:crypto";
3
3
  export function getSignedUrl({ dateLessThan, dateGreaterThan, url, keyPairId, privateKey, ipAddress, policy, passphrase, }) {
4
4
  const cloudfrontSignBuilder = new CloudfrontSignBuilder({
5
5
  keyPairId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/cloudfront-signer",
3
- "version": "3.997.0",
3
+ "version": "3.999.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline cloudfront-signer",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/core": "^3.23.4",
27
- "@smithy/url-parser": "^4.2.9",
26
+ "@smithy/core": "^3.23.6",
27
+ "@smithy/url-parser": "^4.2.10",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "files": [