From f89e90818d911c35297393eada0db0c8acb16934 Mon Sep 17 00:00:00 2001 From: Kyle Welch Date: Wed, 31 Oct 2018 08:41:22 -0500 Subject: [PATCH] fix(constants): Added pagination key constants Adding constants for our pagination methods. ## Description Used internally for a determining how to fetch the next page. fixes: EB-94542 ## How Has This Been Tested? Just constants so I didn't really test anything besides making sure `validate` passed. ## Screenshots (if appropriate): ## Checklist: * [x] I have read the [**CONTRIBUTING** document](https://github.com/eventbrite/eventbrite-sdk-javascript/blob/master/CONTRIBUTING.md). * [x] I have updated the documentation accordingly. * [x] I have added tests to cover my changes. * [x] I have run `yarn validate` to ensure that tests, typescript and linting are all in order. --- .travis.yml | 3 ++- src/constants.ts | 2 ++ src/index.ts | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/constants.ts diff --git a/.travis.yml b/.travis.yml index c4a3864..405a494 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: node_js node_js: - - "node" +# Removed until v11 bug is resolve see #43 +# - "node" - "10" - "8" - "6" diff --git a/src/constants.ts b/src/constants.ts new file mode 100644 index 0000000..8f6a034 --- /dev/null +++ b/src/constants.ts @@ -0,0 +1,2 @@ +export const PAGE_KEY = 'page'; +export const CONTINUATION_KEY = 'continuation'; diff --git a/src/index.ts b/src/index.ts index 678b796..0a5a4f4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,8 @@ import {Sdk, SdkConfig} from './types'; import request from './request'; +export * from './constants'; + const DEFAULT_API_URL = 'https://www.eventbriteapi.com/v3'; const eventbrite = ({