Comparing version 1.1.0 to 1.1.1
@@ -1,2 +0,1 @@ | ||
import Octokit from "@octokit/rest"; | ||
import { KoreFileAdaptor } from "./KoreFileAdaptor"; | ||
@@ -15,3 +14,9 @@ export interface GitCommitPushOptions { | ||
} | ||
export declare const getContent: (github: Octokit, { owner, repo, path, ref }: { | ||
export declare const getContent: (github: { | ||
[x: string]: any; | ||
} & { | ||
[x: string]: any; | ||
} & import("@octokit/core").Octokit & void & { | ||
paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; | ||
} & import("@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types").RestEndpointMethods, { owner, repo, path, ref }: { | ||
owner: string; | ||
@@ -22,3 +27,9 @@ repo: string; | ||
}) => Promise<string>; | ||
export declare const deleteFile: (octokit: Octokit, { owner, repo, path, ref, commitMessage }: { | ||
export declare const deleteFile: (octokit: { | ||
[x: string]: any; | ||
} & { | ||
[x: string]: any; | ||
} & import("@octokit/core").Octokit & void & { | ||
paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; | ||
} & import("@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types").RestEndpointMethods, { owner, repo, path, ref, commitMessage }: { | ||
owner: string; | ||
@@ -25,0 +36,0 @@ repo: string; |
@@ -48,8 +48,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var rest_1 = __importDefault(require("@octokit/rest")); | ||
var rest_1 = require("@octokit/rest"); | ||
var base64_arraybuffer_1 = require("base64-arraybuffer"); | ||
@@ -147,3 +144,3 @@ var debug = require("debug")("korefile"); | ||
var owner = _a.owner, repo = _a.repo, path = _a.path, ref = _a.ref; | ||
return github.repos.getContents({ | ||
return github.repos.getContent({ | ||
owner: owner, | ||
@@ -171,3 +168,3 @@ repo: repo, | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, octokit.repos.getContents({ | ||
case 0: return [4 /*yield*/, octokit.repos.getContent({ | ||
owner: owner, | ||
@@ -200,3 +197,3 @@ repo: repo, | ||
} | ||
var octKit = new rest_1.default({ | ||
var octKit = new rest_1.Octokit({ | ||
auth: token, | ||
@@ -203,0 +200,0 @@ type: "oauth", |
{ | ||
"name": "korefile", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "File System API for Local/GitHub.", | ||
@@ -74,8 +74,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@octokit/rest": "^16.27.3", | ||
"@octokit/rest": "^18.0.3", | ||
"base-64": "^0.1.0", | ||
"base64-arraybuffer": "^0.2.0", | ||
"base64-js": "^1.3.0", | ||
"base64-js": "^1.3.1", | ||
"debug": "^4.1.1" | ||
} | ||
} |
@@ -71,2 +71,7 @@ # korefile [![Build Status](https://travis-ci.org/azu/korefile.svg?branch=master)](https://travis-ci.org/azu/korefile) | ||
## UseCase | ||
- [asocial-bookmark](https://github.com/azu/asocial-bookmark) | ||
- [github-funding-yml-updater](https://github.com/azu/github-funding-yml-updater) | ||
## Changelog | ||
@@ -73,0 +78,0 @@ |
@@ -1,2 +0,2 @@ | ||
import Octokit from "@octokit/rest"; | ||
import { Octokit } from "@octokit/rest"; | ||
import { KoreFileAdaptor } from "./KoreFileAdaptor"; | ||
@@ -122,3 +122,3 @@ import { encode as arrayBufferToBase64 } from "base64-arraybuffer"; | ||
}) => { | ||
return github.repos.getContents({ | ||
return github.repos.getContent({ | ||
owner, | ||
@@ -148,3 +148,3 @@ repo, | ||
}) => { | ||
const { data } = await octokit.repos.getContents({ | ||
const { data } = await octokit.repos.getContent({ | ||
owner, | ||
@@ -151,0 +151,0 @@ repo, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42798
718
106
+ Added@octokit/core@3.6.0(transitive)
+ Added@octokit/graphql@4.8.0(transitive)
+ Added@octokit/plugin-paginate-rest@2.21.3(transitive)
+ Added@octokit/plugin-rest-endpoint-methods@5.16.2(transitive)
+ Added@octokit/rest@18.12.0(transitive)
- Removed@octokit/auth-token@5.1.1(transitive)
- Removed@octokit/core@6.1.2(transitive)
- Removed@octokit/endpoint@10.1.1(transitive)
- Removed@octokit/graphql@8.1.1(transitive)
- Removed@octokit/openapi-types@22.2.0(transitive)
- Removed@octokit/plugin-paginate-rest@1.1.2(transitive)
- Removed@octokit/plugin-rest-endpoint-methods@2.4.0(transitive)
- Removed@octokit/request@9.1.3(transitive)
- Removed@octokit/request-error@1.2.16.1.5(transitive)
- Removed@octokit/rest@16.43.2(transitive)
- Removed@octokit/types@13.5.12.16.2(transitive)
- Removed@types/node@22.7.0(transitive)
- Removedatob-lite@2.0.0(transitive)
- Removedbefore-after-hook@3.0.2(transitive)
- Removedbtoa-lite@1.0.0(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexeca@1.0.0(transitive)
- Removedget-stream@4.1.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedlodash.get@4.4.2(transitive)
- Removedlodash.set@4.3.2(transitive)
- Removedlodash.uniq@4.5.0(transitive)
- Removedmacos-release@2.5.1(transitive)
- Removednice-try@1.0.5(transitive)
- Removednpm-run-path@2.0.2(transitive)
- Removedoctokit-pagination-methods@1.1.0(transitive)
- Removedos-name@3.1.0(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstrip-eof@1.0.0(transitive)
- Removedundici-types@6.19.8(transitive)
- Removeduniversal-user-agent@4.0.17.0.2(transitive)
- Removedwhich@1.3.1(transitive)
- Removedwindows-release@3.3.3(transitive)
Updated@octokit/rest@^18.0.3
Updatedbase64-js@^1.3.1