Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/plugin-paginate-rest

Package Overview
Dependencies
Maintainers
3
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/plugin-paginate-rest - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

12

dist-node/index.js

@@ -5,3 +5,3 @@ 'use strict';

const VERSION = "1.0.2";
const VERSION = "1.1.0";

@@ -52,3 +52,4 @@ /**

const namespaceKey = Object.keys(response.data)[0];
response.data = response.data[namespaceKey];
const data = response.data[namespaceKey];
response.data = data;

@@ -64,2 +65,9 @@ if (typeof incompleteResults !== "undefined") {

response.data.total_count = totalCount;
Object.defineProperty(response.data, namespaceKey, {
get() {
octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
return Array.from(data);
}
});
}

@@ -66,0 +74,0 @@

@@ -45,3 +45,4 @@ /**

const namespaceKey = Object.keys(response.data)[0];
response.data = response.data[namespaceKey];
const data = response.data[namespaceKey];
response.data = data;
if (typeof incompleteResults !== "undefined") {

@@ -54,2 +55,8 @@ response.data.incomplete_results = incompleteResults;

response.data.total_count = totalCount;
Object.defineProperty(response.data, namespaceKey, {
get() {
octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
return Array.from(data);
}
});
}

2

dist-src/version.js

@@ -1,1 +0,1 @@

export const VERSION = "1.0.2";
export const VERSION = "1.1.0";

@@ -1,1 +0,1 @@

export declare const VERSION = "1.0.2";
export declare const VERSION = "1.1.0";

@@ -1,2 +0,2 @@

const VERSION = "1.0.2";
const VERSION = "1.1.0";

@@ -47,3 +47,4 @@ /**

const namespaceKey = Object.keys(response.data)[0];
response.data = response.data[namespaceKey];
const data = response.data[namespaceKey];
response.data = data;
if (typeof incompleteResults !== "undefined") {

@@ -56,2 +57,8 @@ response.data.incomplete_results = incompleteResults;

response.data.total_count = totalCount;
Object.defineProperty(response.data, namespaceKey, {
get() {
octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
return Array.from(data);
}
});
}

@@ -58,0 +65,0 @@

{
"name": "@octokit/plugin-paginate-rest",
"description": "Octokit plugin to paginate REST API endpoint responses",
"version": "1.0.2",
"version": "1.1.0",
"license": "MIT",

@@ -25,12 +25,12 @@ "files": [

"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.7.1",
"@pika/plugin-build-web": "^0.7.1",
"@pika/plugin-ts-standard-pkg": "^0.7.1",
"@pika/plugin-build-node": "^0.8.1",
"@pika/plugin-build-web": "^0.8.1",
"@pika/plugin-ts-standard-pkg": "^0.8.1",
"@types/fetch-mock": "^7.3.1",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.12",
"@types/node": "^13.1.0",
"fetch-mock": "^8.0.0",
"jest": "^24.9.0",
"prettier": "^1.18.2",
"semantic-release": "^15.13.24",
"semantic-release": "^16.0.0",
"semantic-release-plugin-update-version-in-files": "^1.0.0",

@@ -37,0 +37,0 @@ "ts-jest": "^24.1.0",

Sorry, the diff of this file is not supported yet

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