Skip to content

Commit 57cb8bf

Browse files
authored
Merge branch 'main' into remove-sha1
2 parents 0d94828 + d9e2174 commit 57cb8bf

File tree

11 files changed

+498
-469
lines changed

11 files changed

+498
-469
lines changed

.github/workflows/immediate-response.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- opened
1212
jobs:
1313
respond-to-issue:
14-
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' }}
14+
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }}
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Determine issue or PR number

package-lock.json

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

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@
6060
"testPathIgnorePatterns": [
6161
"<rootDir>/node_modules/",
6262
"<rootDir>/test/deno/"
63-
]
63+
],
64+
"testEnvironment": "node",
65+
"moduleNameMapper": {
66+
"^(.+)\\.jsx?$": "$1"
67+
}
6468
},
6569
"release": {
6670
"branches": [

scripts/build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import esbuild from "esbuild";
2-
import { copyFile, readFile, writeFile, rm } from "fs/promises";
2+
import { copyFile, readFile, writeFile, rm } from "node:fs/promises";
33
import { glob } from "glob";
44

55
const sharedOptions = {

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { sign } from "./node/sign";
2-
import { verify } from "./node/verify";
1+
export { sign } from "./node/sign.js";
2+
import { verify } from "./node/verify.js";
33
export { verify };
44

55
export function verifyWithFallback(

src/node/sign.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createHmac } from "crypto";
2-
import { VERSION } from "../version";
2+
import { VERSION } from "../version.js";
33

44
export function sign(secret: string | Buffer, payload: string): string {
55
if (!secret || !payload) {

src/node/verify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createHmac, timingSafeEqual } from "crypto";
22
import { Buffer } from "buffer";
33

4-
import { VERSION } from "../version";
4+
import { VERSION } from "../version.js";
55
import { isValidSignaturePrefix } from "../utils";
66

77
export function verify(

test/browser-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { strictEqual } = require("assert");
1+
const { strictEqual } = require("node:assert");
22

3-
const { readFile } = require("fs").promises;
3+
const { readFile } = require("node:fs/promises");
44
const puppeteer = require("puppeteer");
55

66
runTests();

test/sign.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sign } from "../src";
1+
import { sign } from "../src/index.ts";
22

33
const eventPayload = {
44
foo: "bar",

test/tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"emitDeclarationOnly": false,
55
"noEmit": true,
6-
"verbatimModuleSyntax": false
6+
"verbatimModuleSyntax": false,
7+
"allowImportingTsExtensions": true
78
},
89
"include": ["src/**/*"]
910
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy