cody-music
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -1,2 +0,1 @@ | ||
declare const expect: any; | ||
declare const CodyMusic: any; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const util_1 = require("../util"); | ||
const expect = require("chai").expect; | ||
const CodyMusic = require("../../dist/index.js"); | ||
const testUtil = new util_1.TestUtil(); | ||
describe("feature api tests", () => { | ||
before(done => { | ||
const accessToken = "123abc"; | ||
let configFile = __dirname + "/../config.json"; | ||
let data = testUtil.getJsonFromFile(configFile); | ||
console.log("data: ", data); | ||
CodyMusic.setCredentials({ | ||
refreshToken: "AQCSjp8_taBNv46KFtHsRpU9IcppjCDyGBWN4pATLLXqBPa4Wjk38CY703-WnG4xk7zVbU7niLKQrsYi_zkGnFIy2HuZv-RyiU9fwkE-uw3HUI-vqWBxZoEbdZEIcM1zIqPs3w", | ||
clientSecret: "2b40b4975b2743189c87f4712c0cd59e", | ||
clientId: "eb67e22ba1c6474aad8ec8067480d9dc", | ||
accessToken: accessToken | ||
refreshToken: data.refreshToken, | ||
clientSecret: data.clientSecret, | ||
clientId: data.clientId, | ||
accessToken: data.accessToken | ||
}); | ||
@@ -13,0 +18,0 @@ done(); |
@@ -9,4 +9,3 @@ "use strict"; | ||
SpotifyAudioFeature, | ||
PlayerType, | ||
TrackStatus | ||
PlayerType | ||
} from "./models"; | ||
@@ -13,0 +12,0 @@ import { MusicPlayerState } from "./playerstate"; |
{ | ||
"name": "cody-music", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "mac osx spotify and itunes music player controller, spotify audio features, itunes and spotify genre, and playlist control", | ||
@@ -13,3 +13,4 @@ "main": "dist/index.js", | ||
"controls-test": "npm run build && mocha -r ts-node/register test/controls/test.ts --reporter spec --timeout 20000 --exit", | ||
"itunes-test": "npm run build && mocha -r ts-node/register test/itunes/test.ts --reporter spec --timeout 20000 --exit" | ||
"itunes-test": "npm run build && mocha -r ts-node/register test/itunes/test.ts --reporter spec --timeout 20000 --exit", | ||
"features-test": "npm run build && mocha -r ts-node/register test/features/test.ts --reporter spec --timeout 20000 --exit" | ||
}, | ||
@@ -16,0 +17,0 @@ "repository": { |
@@ -0,13 +1,17 @@ | ||
import { TestUtil } from "../util"; | ||
const expect = require("chai").expect; | ||
const CodyMusic = require("../../dist/index.js"); | ||
const testUtil = new TestUtil(); | ||
describe("feature api tests", () => { | ||
before(done => { | ||
const accessToken = "123abc"; | ||
let configFile = __dirname + "/../config.json"; | ||
let data = testUtil.getJsonFromFile(configFile); | ||
console.log("data: ", data); | ||
CodyMusic.setCredentials({ | ||
refreshToken: | ||
"AQCSjp8_taBNv46KFtHsRpU9IcppjCDyGBWN4pATLLXqBPa4Wjk38CY703-WnG4xk7zVbU7niLKQrsYi_zkGnFIy2HuZv-RyiU9fwkE-uw3HUI-vqWBxZoEbdZEIcM1zIqPs3w", | ||
clientSecret: "2b40b4975b2743189c87f4712c0cd59e", | ||
clientId: "eb67e22ba1c6474aad8ec8067480d9dc", | ||
accessToken: accessToken | ||
refreshToken: data.refreshToken, | ||
clientSecret: data.clientSecret, | ||
clientId: data.clientId, | ||
accessToken: data.accessToken | ||
}); | ||
@@ -14,0 +18,0 @@ |
import { MusicUtil } from "../../lib/util"; | ||
const expect = require("chai").expect; | ||
import * as CodyMusic from "../../index"; | ||
import { TrackStatus, Track } from "../../lib/models"; | ||
import { Track } from "../../lib/models"; | ||
import { MusicController } from "../../lib/controller"; | ||
@@ -6,0 +6,0 @@ |
@@ -1,10 +0,6 @@ | ||
import { MusicUtil } from "../../lib/util"; | ||
const expect = require("chai").expect; | ||
import * as CodyMusic from "../../index"; | ||
import { MusicController } from "../../lib/controller"; | ||
import { UserProfile, SpotifyUser } from "../../lib/profile"; | ||
import { TestUtil } from "../util"; | ||
const musicUtil = new MusicUtil(); | ||
const userProfile = UserProfile.getInstance(); | ||
const musicCtr = MusicController.getInstance(); | ||
const testUtil = new TestUtil(); | ||
@@ -21,9 +17,10 @@ /** | ||
before(done => { | ||
const accessToken = "123abc"; | ||
let configFile = __dirname + "/../config.json"; | ||
let data = testUtil.getJsonFromFile(configFile); | ||
console.log("data: ", data); | ||
CodyMusic.setCredentials({ | ||
refreshToken: | ||
"AQCSjp8_taBNv46KFtHsRpU9IcppjCDyGBWN4pATLLXqBPa4Wjk38CY703-WnG4xk7zVbU7niLKQrsYi_zkGnFIy2HuZv-RyiU9fwkE-uw3HUI-vqWBxZoEbdZEIcM1zIqPs3w", | ||
clientSecret: "2b40b4975b2743189c87f4712c0cd59e", | ||
clientId: "eb67e22ba1c6474aad8ec8067480d9dc", | ||
accessToken: accessToken | ||
refreshToken: data.refreshToken, | ||
clientSecret: data.clientSecret, | ||
clientId: data.clientId, | ||
accessToken: data.accessToken | ||
}); | ||
@@ -30,0 +27,0 @@ |
@@ -1,10 +0,8 @@ | ||
import { MusicUtil } from "../../lib/util"; | ||
const expect = require("chai").expect; | ||
import * as CodyMusic from "../../index"; | ||
import { MusicController } from "../../lib/controller"; | ||
import { UserProfile, SpotifyUser } from "../../lib/profile"; | ||
import { TestUtil } from "../util"; | ||
const musicUtil = new MusicUtil(); | ||
const userProfile = UserProfile.getInstance(); | ||
const musicCtr = MusicController.getInstance(); | ||
const testUtil = new TestUtil(); | ||
@@ -21,9 +19,10 @@ /** | ||
before(done => { | ||
const accessToken = "123abc"; | ||
let configFile = __dirname + "/../config.json"; | ||
let data = testUtil.getJsonFromFile(configFile); | ||
console.log("data: ", data); | ||
CodyMusic.setCredentials({ | ||
refreshToken: | ||
"AQCSjp8_taBNv46KFtHsRpU9IcppjCDyGBWN4pATLLXqBPa4Wjk38CY703-WnG4xk7zVbU7niLKQrsYi_zkGnFIy2HuZv-RyiU9fwkE-uw3HUI-vqWBxZoEbdZEIcM1zIqPs3w", | ||
clientSecret: "2b40b4975b2743189c87f4712c0cd59e", | ||
clientId: "eb67e22ba1c6474aad8ec8067480d9dc", | ||
accessToken: accessToken | ||
refreshToken: data.refreshToken, | ||
clientSecret: data.clientSecret, | ||
clientId: data.clientId, | ||
accessToken: data.accessToken | ||
}); | ||
@@ -30,0 +29,0 @@ |
@@ -6,5 +6,7 @@ import { MusicUtil } from "../../lib/util"; | ||
import { PlayerName } from "../../lib/models"; | ||
import { TestUtil } from "../util"; | ||
const musicUtil = new MusicUtil(); | ||
const musicCtr = MusicController.getInstance(); | ||
const testUtil = new TestUtil(); | ||
@@ -21,9 +23,10 @@ /** | ||
before(done => { | ||
const accessToken = "123abc"; | ||
let configFile = __dirname + "/../config.json"; | ||
let data = testUtil.getJsonFromFile(configFile); | ||
console.log("data: ", data); | ||
CodyMusic.setCredentials({ | ||
refreshToken: | ||
"AQCSjp8_taBNv46KFtHsRpU9IcppjCDyGBWN4pATLLXqBPa4Wjk38CY703-WnG4xk7zVbU7niLKQrsYi_zkGnFIy2HuZv-RyiU9fwkE-uw3HUI-vqWBxZoEbdZEIcM1zIqPs3w", | ||
clientSecret: "2b40b4975b2743189c87f4712c0cd59e", | ||
clientId: "eb67e22ba1c6474aad8ec8067480d9dc", | ||
accessToken: accessToken | ||
refreshToken: data.refreshToken, | ||
clientSecret: data.clientSecret, | ||
clientId: data.clientId, | ||
accessToken: data.accessToken | ||
}); | ||
@@ -30,0 +33,0 @@ |
@@ -6,5 +6,7 @@ import { MusicUtil } from "../../lib/util"; | ||
import { MusicController } from "../../lib/controller"; | ||
import { TestUtil } from "../util"; | ||
const musicUtil = new MusicUtil(); | ||
const musicCtr = MusicController.getInstance(); | ||
const testUtil = new TestUtil(); | ||
@@ -24,9 +26,10 @@ /** | ||
.then((result: any) => { | ||
const accessToken = "123abc"; | ||
let configFile = __dirname + "/../config.json"; | ||
let data = testUtil.getJsonFromFile(configFile); | ||
console.log("data: ", data); | ||
CodyMusic.setCredentials({ | ||
refreshToken: | ||
"AQCSjp8_taBNv46KFtHsRpU9IcppjCDyGBWN4pATLLXqBPa4Wjk38CY703-WnG4xk7zVbU7niLKQrsYi_zkGnFIy2HuZv-RyiU9fwkE-uw3HUI-vqWBxZoEbdZEIcM1zIqPs3w", | ||
clientSecret: "2b40b4975b2743189c87f4712c0cd59e", | ||
clientId: "eb67e22ba1c6474aad8ec8067480d9dc", | ||
accessToken: accessToken | ||
refreshToken: data.refreshToken, | ||
clientSecret: data.clientSecret, | ||
clientId: data.clientId, | ||
accessToken: data.accessToken | ||
}); | ||
@@ -33,0 +36,0 @@ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
283178
88
6886
1