Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elemental-live-client

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elemental-live-client - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

1

.eslintrc.json

@@ -10,2 +10,3 @@ {

"globals": {
"module": true,
"require": true

@@ -12,0 +13,0 @@ },

4

lib/live-event.js
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', () => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc