@newskit-render/api 1.4.0 → 1.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,6 +1,6 @@
1
1
  import { ApolloClient, NormalizedCacheObject, ApolloLink, RequestHandler } from '@apollo/client';
2
- export declare type ApolloHttpClient = ApolloClient<NormalizedCacheObject>;
3
- export declare type Config = {
2
+ export type ApolloHttpClient = ApolloClient<NormalizedCacheObject>;
3
+ export type Config = {
4
4
  newskitApiEnvUrl: string;
5
5
  newskitApiXApiKey: string;
6
6
  };
@@ -28,4 +28,4 @@ export interface ClientObject {
28
28
  links?: (ApolloLink | RequestHandler)[];
29
29
  name?: string;
30
30
  }
31
- export declare type Client = ClientTypes | ClientObject;
31
+ export type Client = ClientTypes | ClientObject;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,5 +1,5 @@
1
1
  import { OAuthToken } from './types';
2
- export declare type GetAccessTokenParams = {
2
+ export type GetAccessTokenParams = {
3
3
  url: string;
4
4
  client_id: string;
5
5
  client_secret: string;
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
29
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
@@ -1,4 +1,4 @@
1
- export declare type OAuthToken = {
1
+ export type OAuthToken = {
2
2
  access_token: string;
3
3
  expires_in: number;
4
4
  jti?: string;
@@ -1,5 +1,5 @@
1
1
  import { ClientTypes } from './../../apolloClient/types';
2
- export declare type MainAcsCookie = {
2
+ export type MainAcsCookie = {
3
3
  Cookie: string;
4
4
  } | string;
5
5
  export declare const getAcsCookie: (client: ClientTypes, cookieSession?: string) => MainAcsCookie;
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13
13
  function verb(n) { return function (v) { return step([n, v]); }; }
14
14
  function step(op) {
15
15
  if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
17
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
18
  if (y = 0, t) op = [op[0] & 2, t.value];
19
19
  switch (op[0]) {
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13
13
  function verb(n) { return function (v) { return step([n, v]); }; }
14
14
  function step(op) {
15
15
  if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
17
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
18
  if (y = 0, t) op = [op[0] & 2, t.value];
19
19
  switch (op[0]) {
@@ -1,6 +1,6 @@
1
1
  import { ApolloClient, NormalizedCacheObject, ApolloLink, RequestHandler } from '@apollo/client';
2
- export declare type ApolloHttpClient = ApolloClient<NormalizedCacheObject>;
3
- export declare type Config = {
2
+ export type ApolloHttpClient = ApolloClient<NormalizedCacheObject>;
3
+ export type Config = {
4
4
  newskitApiEnvUrl: string;
5
5
  newskitApiXApiKey: string;
6
6
  };
@@ -28,4 +28,4 @@ export interface ClientObject {
28
28
  links?: (ApolloLink | RequestHandler)[];
29
29
  name?: string;
30
30
  }
31
- export declare type Client = ClientTypes | ClientObject;
31
+ export type Client = ClientTypes | ClientObject;
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13
13
  function verb(n) { return function (v) { return step([n, v]); }; }
14
14
  function step(op) {
15
15
  if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
17
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
18
  if (y = 0, t) op = [op[0] & 2, t.value];
19
19
  switch (op[0]) {
@@ -1,5 +1,5 @@
1
1
  import { OAuthToken } from './types';
2
- export declare type GetAccessTokenParams = {
2
+ export type GetAccessTokenParams = {
3
3
  url: string;
4
4
  client_id: string;
5
5
  client_secret: string;
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
28
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -1,4 +1,4 @@
1
- export declare type OAuthToken = {
1
+ export type OAuthToken = {
2
2
  access_token: string;
3
3
  expires_in: number;
4
4
  jti?: string;
@@ -1,5 +1,5 @@
1
1
  import { ClientTypes } from './../../apolloClient/types';
2
- export declare type MainAcsCookie = {
2
+ export type MainAcsCookie = {
3
3
  Cookie: string;
4
4
  } | string;
5
5
  export declare const getAcsCookie: (client: ClientTypes, cookieSession?: string) => MainAcsCookie;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/api",
3
- "version": "1.4.0",
3
+ "version": "1.5.0-alpha.0",
4
4
  "description": "helper package for accessing MAIN and NK API data",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -53,7 +53,7 @@
53
53
  "prettier": "2.2.1",
54
54
  "react": "18.2.0",
55
55
  "ts-jest": "27.1.3",
56
- "typescript": "4.8.3"
56
+ "typescript": "4.9.3"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": ">= 17.0.2 <= 18.2.0"