Skip to content

Commit 65a6b0c

Browse files
committed
renamed 'aglFetch' to 'agility'
1 parent 0684aef commit 65a6b0c

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Install it using **npm** (recommended):
2525
npm install @agility/content-fetch
2626
```
2727

28-
If necessary, you can also reference a standalone package that can be used in a browser using a traditional **script** tag. In this case, the sdk can be accessed using a global variable by name of `aglFetch`:
28+
If necessary, you can also reference a standalone package that can be used in a browser using a traditional **script** tag. In this case, the sdk can be accessed using a global variable by name of `agility`:
2929
```html
3030
<!-- Use a specific version (i.e. 0.1.4) -->
3131
<script type="text/javascript" src="https://unpkg.com/@agility/content-fetch@0.1.4/dist/agility-content-fetch.browser.js"></script>
@@ -35,10 +35,10 @@ If necessary, you can also reference a standalone package that can be used in a
3535
```
3636
### Making a Request
3737
```javascript
38-
import aglFetch from '@agility/content-fetch'
38+
import agility from '@agility/content-fetch'
3939

4040
//initialize the api client
41-
const api = aglFetch.getApi({
41+
const api = agility.getApi({
4242
instanceID: '1234-1234',
4343
accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
4444
languageCode: 'en-us'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@agility/content-fetch",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "JavaScript library for the Agility Fetch API (node and browser)",
55
"main": "dist/agility-content-fetch.node.js",
66
"scripts": {

src/content-fetch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ import createClient from './api-client'
3030
* @return {AgilityFetch.Client}
3131
* @example
3232
*
33-
* import aglFetch from '@agility/content-fetch'
33+
* import agility from '@agility/content-fetch'
3434
*
35-
* const api = aglFetch.getApi({
35+
* const api = agility.getApi({
3636
* instanceID: '1234-1234',
3737
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
3838
* languageCode: 'en-us'

src/methods/getContentItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import utils from '../utils'
88
* @returns {Promise<AgilityFetch.Types.ContentItem>} - Returns a content item object.
99
* @example
1010
*
11-
* import aglFetch from '@agility/content-fetch'
11+
* import agility from '@agility/content-fetch'
1212
*
13-
* const api = aglFetch.getApi({
13+
* const api = agility.getApi({
1414
* instanceID: '1234-1234',
1515
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
1616
* languageCode: 'en-us'

src/methods/getContentList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import utils from '../utils'
88
* @returns {Promise<AgilityFetch.Types.ContentList>} - Returns a list of content items.
99
* @example
1010
*
11-
* import aglFetch from '@agility/content-fetch'
11+
* import agility from '@agility/content-fetch'
1212
*
13-
* const api = aglFetch.getApi({
13+
* const api = agility.getApi({
1414
* instanceID: '1234-1234',
1515
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
1616
* languageCode: 'en-us'

src/methods/getPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import utils from '../utils'
88
* @returns {Promise<AgilityFetch.Types.Page>} - Returns a page item object.
99
* @example
1010
*
11-
* import aglFetch from '@agility/content-fetch'
11+
* import agility from '@agility/content-fetch'
1212
*
13-
* var api = aglFetch.getApi({
13+
* var api = agility.getApi({
1414
* instanceID: '1234-1234',
1515
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
1616
* languageCode: 'en-us'

src/methods/getSitemapFlat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import utils from '../utils'
88
* @returns {Promise<AgilityFetch.Types.SitemapFlat>} - The sitemap response in a flat format.
99
* @example
1010
*
11-
* import aglFetch from '@agility/content-fetch'
11+
* import agility from '@agility/content-fetch'
1212
*
13-
* var api = aglFetch.getApi({
13+
* var api = agility.getApi({
1414
* instanceID: '1234-1234',
1515
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
1616
* languageCode: 'en-us'

src/methods/getSitemapNested.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import utils from '../utils'
88
* @returns {Promise<AgilityFetch.Types.SitemapNested>} - The array of sitemap items returned.
99
* @example
1010
*
11-
* import aglFetch from '@agility/content-fetch'
11+
* import agility from '@agility/content-fetch'
1212
*
13-
* var api = aglFetch.getApi({
13+
* var api = agility.getApi({
1414
* instanceID: '1234-1234',
1515
* accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
1616
* languageCode: 'en-us'

test/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import chai from 'chai'
22
const assert = chai.assert;
3-
import aglFetch from '../dist/agility-content-fetch.node.js'
3+
import agility from '../dist/agility-content-fetch.node.js'
44

55
describe('Api', function() {
66
it('should be able to retrieve a content item', function(done) {
77

8-
var api = aglFetch.getApi({
8+
var api = agility.getApi({
99
instanceID: '1234-1234',
1010
accessToken: 'fEpTcRnWO3EahHbojDCeY3PwGwAzpw2gveDuPn2l0nuqFbQYVcWrQ+a3/DHcWgCgn7UL2tgbSOS0AqrEOiXkTg==',
1111
languageCode: 'en-us'

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const browserConfig = {
66
output: {
77
filename: 'agility-content-fetch.browser.js',
88
path: path.resolve(__dirname, 'dist'),
9-
library: 'aglFetch',
9+
library: 'agility',
1010
libraryTarget: 'umd',
1111
libraryExport: 'default',
1212
umdNamedDefine: true,
@@ -32,7 +32,7 @@ const nodeConfig = {
3232
output: {
3333
filename: 'agility-content-fetch.node.js',
3434
path: path.resolve(__dirname, 'dist'),
35-
library: 'aglFetch',
35+
library: 'agility',
3636
libraryTarget: 'umd',
3737
libraryExport: 'default',
3838
umdNamedDefine: true,

0 commit comments

Comments
 (0)