@trycourier/client-graphql
Advanced tools
Comparing version 1.15.0 to 1.15.1-internal.6481ab9.0
@@ -12,2 +12,4 @@ "use strict"; | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
@@ -25,3 +27,4 @@ | ||
var results, banners, startCursor; | ||
var _ref2, limit, restParams, results, banners, startCursor; | ||
return _regenerator["default"].wrap(function _callee$(_context) { | ||
@@ -39,9 +42,11 @@ while (1) { | ||
case 2: | ||
_context.next = 4; | ||
_ref2 = params !== null && params !== void 0 ? params : {}, limit = _ref2.limit, restParams = (0, _objectWithoutProperties2["default"])(_ref2, ["limit"]); | ||
_context.next = 5; | ||
return client.query(QUERY_BANNER, { | ||
after: after, | ||
params: params | ||
limit: limit, | ||
params: restParams | ||
}).toPromise(); | ||
case 4: | ||
case 5: | ||
results = _context.sent; | ||
@@ -55,3 +60,3 @@ banners = results === null || results === void 0 ? void 0 : (_results$data = results.data) === null || _results$data === void 0 ? void 0 : (_results$data$banners = _results$data.banners) === null || _results$data$banners === void 0 ? void 0 : _results$data$banners.nodes; | ||
case 8: | ||
case 9: | ||
case "end": | ||
@@ -58,0 +63,0 @@ return _context.stop(); |
@@ -12,2 +12,4 @@ "use strict"; | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
@@ -70,3 +72,4 @@ | ||
var results, messages, startCursor; | ||
var _ref3, limit, restParams, results, messages, startCursor; | ||
return _regenerator["default"].wrap(function _callee2$(_context2) { | ||
@@ -84,9 +87,11 @@ while (1) { | ||
case 2: | ||
_context2.next = 4; | ||
_ref3 = params !== null && params !== void 0 ? params : {}, limit = _ref3.limit, restParams = (0, _objectWithoutProperties2["default"])(_ref3, ["limit"]); | ||
_context2.next = 5; | ||
return client.query(QUERY_MESSAGES, { | ||
after: after, | ||
params: params | ||
limit: limit, | ||
params: restParams | ||
}).toPromise(); | ||
case 4: | ||
case 5: | ||
results = _context2.sent; | ||
@@ -101,3 +106,3 @@ messages = results === null || results === void 0 ? void 0 : (_results$data2 = results.data) === null || _results$data2 === void 0 ? void 0 : (_results$data2$messag = _results$data2.messages) === null || _results$data2$messag === void 0 ? void 0 : _results$data2$messag.nodes; | ||
case 8: | ||
case 9: | ||
case "end": | ||
@@ -104,0 +109,0 @@ return _context2.stop(); |
{ | ||
"name": "@trycourier/client-graphql", | ||
"version": "1.15.0", | ||
"version": "1.15.1-internal.6481ab9.0+6481ab9", | ||
"description": "", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
], | ||
"gitHead": "8f45c99f7b74d24afa6df3895e12f4bdc1bbfe90" | ||
"gitHead": "6481ab9fccd9f2e2925e71c224ea21659685cf35" | ||
} |
@@ -5,2 +5,3 @@ import { Client } from "urql"; | ||
from?: number; | ||
limit?: number; | ||
locale?: string; | ||
@@ -7,0 +8,0 @@ tags?: string[]; |
@@ -12,4 +12,5 @@ import { Client } from "urql"; | ||
export interface IGetMessagesParams { | ||
from?: number; | ||
isRead?: boolean; | ||
from?: number; | ||
limit?: number; | ||
tags?: string[]; | ||
@@ -16,0 +17,0 @@ } |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
38062
619
2
1