elemental-live-client
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -10,2 +10,3 @@ { | ||
"globals": { | ||
"module": true, | ||
"require": true | ||
@@ -12,0 +13,0 @@ }, |
const resource = require('./resource'); | ||
export class LiveEvent extends resource.Resource { | ||
class LiveEvent extends resource.Resource { | ||
constructor(elementalClient) { | ||
@@ -44,1 +44,3 @@ super(elementalClient, 'live_events'); | ||
} | ||
module.exports = {LiveEvent}; |
@@ -8,3 +8,3 @@ const dateFormat = require('dateformat'); | ||
export default class ElementalClient { | ||
class ElementalClient { | ||
constructor(serverUrl) { | ||
@@ -95,1 +95,3 @@ this.req = request.defaults({ | ||
} | ||
module.exports = {ElementalClient}; |
@@ -1,2 +0,2 @@ | ||
export class Resource { | ||
class Resource { | ||
constructor(elementalClient, name) { | ||
@@ -27,1 +27,3 @@ this.elementalClient = elementalClient; | ||
} | ||
module.exports = {Resource}; |
{ | ||
"name": "elemental-live-client", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "JS library to communicate with Elemental live API", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -1,2 +0,2 @@ | ||
export const xmlEventList = `<?xml version="1.0" encoding="UTF-8"?> | ||
const xmlEventList = `<?xml version="1.0" encoding="UTF-8"?> | ||
<live_event_list> | ||
@@ -16,1 +16,3 @@ <live_event href="/live_events/1"> | ||
</live_event_list>` | ||
module.exports = xmlEventList; |
@@ -1,7 +0,8 @@ | ||
import ElementalClient from '../lib/main'; | ||
import {LiveEvent} from '../lib/live-event'; | ||
import {Resource} from '../lib/resource'; | ||
import {assert} from 'chai'; | ||
import {xmlEventList} from './data-test'; | ||
const assert = require('chai').assert; | ||
const xmlEventList = require('./data-test'); | ||
const ElementalClient = require('../lib/main').ElementalClient; | ||
const LiveEvent = require('../lib/live-event').LiveEvent; | ||
const Resource = require('../lib/resource').Resource; | ||
describe('ElementalClient', () => { | ||
@@ -8,0 +9,0 @@ it('sendRequest should support "data-less" requests and resolve promise on response', () => { |
@@ -1,2 +0,2 @@ | ||
import ElementalClient from '../lib/main'; | ||
import {ElementalClient} from '../lib/main'; | ||
@@ -3,0 +3,0 @@ describe('integration tests', () => { |
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
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
122800
813