Skip to content

Commit 3220139

Browse files
committed
2.0.4
1 parent a662d83 commit 3220139

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
99

10-
## [v2.0.3](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.2...v2.0.3)
10+
## [v2.0.4](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.3...v2.0.4)
11+
12+
### Merged
13+
14+
- chore(deps-dev): bump top-bun from 9.1.1 to 10.0.0 [`#202`](https://github.com/bcomnes/deploy-to-neocities/pull/202)
15+
- chore(deps): bump @actions/core from 1.11.0 to 1.11.1 [`#203`](https://github.com/bcomnes/deploy-to-neocities/pull/203)
16+
17+
## [v2.0.3](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.2...v2.0.3) - 2024-10-03
1118

1219
### Merged
1320

dist/index.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ var require_file_command = __commonJS({
154154
};
155155
Object.defineProperty(exports2, "__esModule", { value: true });
156156
exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0;
157+
var crypto = __importStar(require("crypto"));
157158
var fs = __importStar(require("fs"));
158159
var os = __importStar(require("os"));
159160
var utils_1 = require_utils();
@@ -3607,11 +3608,11 @@ var require_util2 = __commonJS({
36073608
var assert2 = require("assert");
36083609
var { isUint8Array } = require("util/types");
36093610
var supportedHashes = [];
3610-
var crypto2;
3611+
var crypto;
36113612
try {
3612-
crypto2 = require("crypto");
3613+
crypto = require("crypto");
36133614
const possibleRelevantHashes = ["sha256", "sha384", "sha512"];
3614-
supportedHashes = crypto2.getHashes().filter((hash) => possibleRelevantHashes.includes(hash));
3615+
supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash));
36153616
} catch {
36163617
}
36173618
function responseURL(response) {
@@ -3889,7 +3890,7 @@ var require_util2 = __commonJS({
38893890
}
38903891
}
38913892
function bytesMatch(bytes, metadataList) {
3892-
if (crypto2 === void 0) {
3893+
if (crypto === void 0) {
38933894
return true;
38943895
}
38953896
const parsedMetadata = parseMetadata(metadataList);
@@ -3904,7 +3905,7 @@ var require_util2 = __commonJS({
39043905
for (const item of metadata) {
39053906
const algorithm = item.algo;
39063907
const expectedValue = item.hash;
3907-
let actualValue = crypto2.createHash(algorithm).update(bytes).digest("base64");
3908+
let actualValue = crypto.createHash(algorithm).update(bytes).digest("base64");
39083909
if (actualValue[actualValue.length - 1] === "=") {
39093910
if (actualValue[actualValue.length - 2] === "=") {
39103911
actualValue = actualValue.slice(0, -2);
@@ -16310,9 +16311,9 @@ var require_connection = __commonJS({
1631016311
channels.open = diagnosticsChannel.channel("undici:websocket:open");
1631116312
channels.close = diagnosticsChannel.channel("undici:websocket:close");
1631216313
channels.socketError = diagnosticsChannel.channel("undici:websocket:socket_error");
16313-
var crypto2;
16314+
var crypto;
1631416315
try {
16315-
crypto2 = require("crypto");
16316+
crypto = require("crypto");
1631616317
} catch {
1631716318
}
1631816319
function establishWebSocketConnection(url, protocols, ws, onEstablish, options) {
@@ -16331,7 +16332,7 @@ var require_connection = __commonJS({
1633116332
const headersList = new Headers(options.headers)[kHeadersList];
1633216333
request.headersList = headersList;
1633316334
}
16334-
const keyValue = crypto2.randomBytes(16).toString("base64");
16335+
const keyValue = crypto.randomBytes(16).toString("base64");
1633516336
request.headersList.append("sec-websocket-key", keyValue);
1633616337
request.headersList.append("sec-websocket-version", "13");
1633716338
for (const protocol of protocols) {
@@ -16361,7 +16362,7 @@ var require_connection = __commonJS({
1636116362
return;
1636216363
}
1636316364
const secWSAccept = response.headersList.get("Sec-WebSocket-Accept");
16364-
const digest = crypto2.createHash("sha1").update(keyValue + uid).digest("base64");
16365+
const digest = crypto.createHash("sha1").update(keyValue + uid).digest("base64");
1636516366
if (secWSAccept !== digest) {
1636616367
failWebsocketConnection(ws, "Incorrect hash received in Sec-WebSocket-Accept header.");
1636716368
return;
@@ -16441,9 +16442,9 @@ var require_frame = __commonJS({
1644116442
"node_modules/undici/lib/websocket/frame.js"(exports2, module2) {
1644216443
"use strict";
1644316444
var { maxUnsigned16Bit } = require_constants5();
16444-
var crypto2;
16445+
var crypto;
1644516446
try {
16446-
crypto2 = require("crypto");
16447+
crypto = require("crypto");
1644716448
} catch {
1644816449
}
1644916450
var WebsocketFrameSend = class {
@@ -16452,7 +16453,7 @@ var require_frame = __commonJS({
1645216453
*/
1645316454
constructor(data) {
1645416455
this.frameData = data;
16455-
this.maskKey = crypto2.randomBytes(4);
16456+
this.maskKey = crypto.randomBytes(4);
1645616457
}
1645716458
createFrame(opcode) {
1645816459
var _a;
@@ -23706,7 +23707,7 @@ var require_pump = __commonJS({
2370623707
// node_modules/async-neocities/lib/folder-diff.js
2370723708
var require_folder_diff = __commonJS({
2370823709
"node_modules/async-neocities/lib/folder-diff.js"(exports2, module2) {
23709-
var crypto2 = require("crypto");
23710+
var crypto = require("crypto");
2371023711
var util = require("util");
2371123712
var fs = require("fs");
2371223713
var ppump = util.promisify(require_pump());
@@ -23764,7 +23765,7 @@ var require_folder_diff = __commonJS({
2376423765
};
2376523766
async function sha1FromPath(p) {
2376623767
const rs = fs.createReadStream(p);
23767-
const hash = crypto2.createHash("sha1");
23768+
const hash = crypto.createHash("sha1");
2376823769
await ppump(rs, hash);
2376923770
return hash.digest("hex");
2377023771
}

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "deploy-to-neocities",
33
"description": "Github Action to deplpoy a folder to Neocities.org",
4-
"version": "2.0.3",
4+
"version": "2.0.4",
55
"author": "Bret Comnes <[email protected]> (https://bret.io/)",
66
"bugs": {
77
"url": "https://github.com/bcomnes/deploy-to-neocities/issues"

0 commit comments

Comments
 (0)