Skip to content

Commit

Permalink
Merge pull request #179 from mislav/dependabot/npm_and_yarn/octokit/c…
Browse files Browse the repository at this point in the history
…ore-6.1.2

Bump @octokit/core from 5.0.1 to 6.1.2
  • Loading branch information
mislav authored Nov 26, 2024
2 parents dfc6e09 + ed8d10f commit 722b148
Show file tree
Hide file tree
Showing 12 changed files with 388 additions and 153 deletions.
502 changes: 368 additions & 134 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"private": true,
"type": "module",
"scripts": {
"build": "rm -rf lib && ncc build src/run.ts -o lib --source-map",
"lint": "eslint .",
Expand All @@ -8,7 +9,7 @@
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.0",
"@octokit/core": "^5.0.1",
"@octokit/core": "^6.1.2",
"@octokit/plugin-request-log": "^4.0.0",
"@octokit/plugin-rest-endpoint-methods": "^10.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/calculate-download-checksum-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { URL } from 'url'
import {
parseArchiveUrl,
parseReleaseDownloadUrl,
} from './calculate-download-checksum'
} from './calculate-download-checksum.js'

test('calculate-download-checksum parseArchiveUrl', (t) => {
const tests = [
Expand Down
2 changes: 1 addition & 1 deletion src/calculate-download-checksum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { API } from './api'
import type { API } from './api.js'
import { debug } from '@actions/core'
import { URL } from 'url'
import { createHash } from 'crypto'
Expand Down
4 changes: 2 additions & 2 deletions src/edit-github-blob-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava'
import api from './api'
import editGithubBlob from './edit-github-blob'
import api from './api.js'
import editGithubBlob from './edit-github-blob.js'

type fetchOptions = {
method: string
Expand Down
2 changes: 1 addition & 1 deletion src/edit-github-blob.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { API } from './api'
import type { API } from './api.js'
import { basename } from 'path'

// avoid importing @octokit/request-error to not have to keep it in sync in package.json
Expand Down
4 changes: 2 additions & 2 deletions src/main-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava'
import api from './api'
import { commitForRelease, prepareEdit } from './main'
import api from './api.js'
import { commitForRelease, prepareEdit } from './main.js'

test('commitForRelease()', (t) => {
t.is(
Expand Down
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { getInput, getBooleanInput } from '@actions/core'
import type { API } from './api'
import editGitHubBlob from './edit-github-blob'
import { Options as EditOptions } from './edit-github-blob'
import { removeRevisionLine, replaceFields } from './replace-formula-fields'
import calculateDownloadChecksum from './calculate-download-checksum'
import type { API } from './api.js'
import editGitHubBlob from './edit-github-blob.js'
import { Options as EditOptions } from './edit-github-blob.js'
import { removeRevisionLine, replaceFields } from './replace-formula-fields.js'
import calculateDownloadChecksum from './calculate-download-checksum.js'
import { context } from '@actions/github'

function tarballForRelease(
Expand Down
2 changes: 1 addition & 1 deletion src/replace-formula-fields-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import { replaceFields } from './replace-formula-fields'
import { replaceFields } from './replace-formula-fields.js'

test('replaceFields()', (t) => {
const input = `
Expand Down
2 changes: 1 addition & 1 deletion src/replace-formula-fields.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { compare, fromUrl } from './version'
import { compare, fromUrl } from './version.js'

export class UpgradeError extends Error {}

Expand Down
6 changes: 3 additions & 3 deletions src/run.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { setFailed } from '@actions/core'
import api from './api'
import { UpgradeError } from './replace-formula-fields'
import run from './main'
import api from './api.js'
import { UpgradeError } from './replace-formula-fields.js'
import run from './main.js'

run(api).catch((error) => {
if (error instanceof UpgradeError) {
Expand Down
2 changes: 1 addition & 1 deletion src/version-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import { compare, fromUrl } from './version'
import { compare, fromUrl } from './version.js'

test('fromUrl()', (t) => {
const cases = new Map<string, string>([
Expand Down

0 comments on commit 722b148

Please sign in to comment.