Socket
Socket
Sign inDemoInstall

korefile

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

korefile - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

17

lib/GitHubAdaptor.d.ts

@@ -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;

11

lib/GitHubAdaptor.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc