rc-angular-spotify
Advanced tools
Comparing version 1.0.0 to 1.0.1
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/platform-browser'), require('@angular/core'), require('@angular/common/http'), require('@angular/router')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@angular/platform-browser', '@angular/core', '@angular/common/http', '@angular/router'], factory) : | ||
(factory((global['rc-angular-spotify'] = {}),global.ng.platformBrowser,global.ng.core,global.ng.common.http,global.ng.router)); | ||
}(this, (function (exports,platformBrowser,core,http,router) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@angular/router'), require('@angular/common')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common/http', '@angular/router', '@angular/common'], factory) : | ||
(factory((global['rc-angular-spotify'] = {}),global.ng.core,global.ng.common.http,global.ng.router,global.ng.common)); | ||
}(this, (function (exports,core,http,router,common) { 'use strict'; | ||
@@ -159,2 +159,3 @@ var AppComponent = /** @class */ (function () { | ||
]; }; | ||
// import { BrowserModule } from '@angular/platform-browser'; | ||
var appRoutes = [ | ||
@@ -178,3 +179,3 @@ { path: '', component: AngularSpotifyComponent }, | ||
router.RouterModule.forRoot(appRoutes), | ||
platformBrowser.BrowserModule, | ||
common.CommonModule, | ||
http.HttpClientModule | ||
@@ -181,0 +182,0 @@ ], |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/platform-browser"),require("@angular/core"),require("@angular/common/http"),require("@angular/router")):"function"==typeof define&&define.amd?define(["exports","@angular/platform-browser","@angular/core","@angular/common/http","@angular/router"],e):e(t["rc-angular-spotify"]={},t.ng.platformBrowser,t.ng.core,t.ng.common.http,t.ng.router)}(this,function(t,e,n,o,r){"use strict";var i=function(){return function(){this.title="app"}}();i.decorators=[{type:n.Component,args:[{selector:"app-root",template:"\n \x3c!--The content below is only a placeholder and can be replaced.--\x3e\n <router-outlet></router-outlet>\n ",styles:["\n\n "]}]}],i.ctorParameters=function(){return[]};var s=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return window},enumerable:!0,configurable:!0}),t}();s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[]};var a=function(){function t(t){this.windowRef=t,this.clientId="14d0e6301dea4e29ba4ba48195d3a255",this.responseType="token",this.redirectUri="http://localhost:4200/auth/token"}return t.prototype.getToken=function(t,e){this.windowRef.nativeWindow.open("https://accounts.spotify.com/authorize?"+this.toQueryString(),t,e)},t.prototype.toQueryString=function(){return"client_id="+this.clientId+"&response_type="+this.responseType+"&redirect_uri="+this.redirectUri},t}();a.decorators=[{type:n.Injectable}],a.ctorParameters=function(){return[{type:s}]};var u=function(){function t(t){this.spotify=t,this.witdh=400,this.heigh=500,this.left=screen.width/2-this.witdh/2,this.top=screen.height/2-this.heigh/2,this.name="Spotify Auth"}return t.prototype.ngOnInit=function(){},t.prototype.auth=function(){this.spotify.getToken(this.name,this.getOptions())},t.prototype.getOptions=function(){return"menubar=no,\n location=no,\n resizable=yes,\n scrollbars=yes,\n status=no,\n width="+this.witdh+",\n height="+this.heigh+",\n top="+this.top+",\n left="+this.left},t}();u.decorators=[{type:n.Component,args:[{selector:"app-angular-spotify",template:'\n <button type="button" (click)="auth()" class="btn btn-success">Test me</button>\n ',styles:["\n\n "]}]}],u.ctorParameters=function(){return[{type:a}]};var c=function(){return function(t,e){this.route=t,this.windowRef=e,this.route.fragment.subscribe(function(t){localStorage.setItem("token",t.slice(t.indexOf("=")+1,t.indexOf("&")))}),this.windowRef.nativeWindow.close()}}();c.decorators=[{type:n.Component,args:[{selector:"app-root",template:"<!–– get token from Spotify ––>"}]}],c.ctorParameters=function(){return[{type:r.ActivatedRoute},{type:s}]};var p=[{path:"",component:u},{path:"auth/token",component:c}],h=function(){return function(){}}();h.decorators=[{type:n.NgModule,args:[{declarations:[i,u,c],imports:[r.RouterModule.forRoot(p),e.BrowserModule,o.HttpClientModule],providers:[s,a],bootstrap:[i]}]}],h.ctorParameters=function(){return[]},t.AppModule=h,t.ɵe=c,t.ɵd=s,t.ɵb=u,t.ɵc=a,t.ɵa=i,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("@angular/router"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common/http","@angular/router","@angular/common"],e):e(t["rc-angular-spotify"]={},t.ng.core,t.ng.common.http,t.ng.router,t.ng.common)}(this,function(t,e,n,o,r){"use strict";var i=function(){return function(){this.title="app"}}();i.decorators=[{type:e.Component,args:[{selector:"app-root",template:"\n \x3c!--The content below is only a placeholder and can be replaced.--\x3e\n <router-outlet></router-outlet>\n ",styles:["\n\n "]}]}],i.ctorParameters=function(){return[]};var s=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return window},enumerable:!0,configurable:!0}),t}();s.decorators=[{type:e.Injectable}],s.ctorParameters=function(){return[]};var a=function(){function t(t){this.windowRef=t,this.clientId="14d0e6301dea4e29ba4ba48195d3a255",this.responseType="token",this.redirectUri="http://localhost:4200/auth/token"}return t.prototype.getToken=function(t,e){this.windowRef.nativeWindow.open("https://accounts.spotify.com/authorize?"+this.toQueryString(),t,e)},t.prototype.toQueryString=function(){return"client_id="+this.clientId+"&response_type="+this.responseType+"&redirect_uri="+this.redirectUri},t}();a.decorators=[{type:e.Injectable}],a.ctorParameters=function(){return[{type:s}]};var u=function(){function t(t){this.spotify=t,this.witdh=400,this.heigh=500,this.left=screen.width/2-this.witdh/2,this.top=screen.height/2-this.heigh/2,this.name="Spotify Auth"}return t.prototype.ngOnInit=function(){},t.prototype.auth=function(){this.spotify.getToken(this.name,this.getOptions())},t.prototype.getOptions=function(){return"menubar=no,\n location=no,\n resizable=yes,\n scrollbars=yes,\n status=no,\n width="+this.witdh+",\n height="+this.heigh+",\n top="+this.top+",\n left="+this.left},t}();u.decorators=[{type:e.Component,args:[{selector:"app-angular-spotify",template:'\n <button type="button" (click)="auth()" class="btn btn-success">Test me</button>\n ',styles:["\n\n "]}]}],u.ctorParameters=function(){return[{type:a}]};var c=function(){return function(t,e){this.route=t,this.windowRef=e,this.route.fragment.subscribe(function(t){localStorage.setItem("token",t.slice(t.indexOf("=")+1,t.indexOf("&")))}),this.windowRef.nativeWindow.close()}}();c.decorators=[{type:e.Component,args:[{selector:"app-root",template:"<!–– get token from Spotify ––>"}]}],c.ctorParameters=function(){return[{type:o.ActivatedRoute},{type:s}]};var p=[{path:"",component:u},{path:"auth/token",component:c}],h=function(){return function(){}}();h.decorators=[{type:e.NgModule,args:[{declarations:[i,u,c],imports:[o.RouterModule.forRoot(p),r.CommonModule,n.HttpClientModule],providers:[s,a],bootstrap:[i]}]}],h.ctorParameters=function(){return[]},t.AppModule=h,t.ɵe=c,t.ɵd=s,t.ɵb=u,t.ɵc=a,t.ɵa=i,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=rc-angular-spotify.umd.min.js.map |
@@ -1,1 +0,1 @@ | ||
{"name":"rc-angular-spotify","version":"1.0.0","description":"Angular Service to connect to Spotify Web API","main":"bundles/rc-angular-spotify.umd.js","dependencies":{"@angular/common":"^5.2.1","@angular/compiler":"^5.2.1","@angular/core":"^5.2.1","@angular/http":"^5.2.1","@angular/platform-browser":"^5.2.1","@angular/platform-browser-dynamic":"^5.2.1","@angular/router":"^5.2.1","bootstrap":"4.0.0-beta.2","core-js":"^2.5.3","rxjs":"^5.5.6","zone.js":"^0.8.20"},"devDependencies":{"@angular/cli":"1.6.5","@angular/compiler-cli":"^5.2.1","@angular/language-service":"^5.2.1","@types/jasmine":"~2.8.5","@types/jasminewd2":"~2.0.2","@types/node":"~9.3.0","chai":"^4.1.2","codelyzer":"~4.1.0","jasmine-core":"~2.9.1","jasmine-spec-reporter":"~4.2.1","karma":"~2.0.0","karma-chrome-launcher":"~2.2.0","karma-cli":"~1.0.1","karma-coverage-istanbul-reporter":"^1.2.1","karma-jasmine":"~1.1.0","karma-jasmine-html-reporter":"^0.2.2","ng-packagr":"^1.6.0","protractor":"~5.2.2","ts-node":"~4.1.0","tslint":"~5.9.1","typescript":"~2.6.2"},"scripts":{"ng":"ng","start":"ng serve","build":"ng build","test":"ng test","lint":"ng lint","e2e":"ng e2e","packagr":"ng-packagr -p ng-package.json"},"private":false,"repository":{"type":"git","url":"https://github.com/eddiemoore/angular-spotify.git"},"keywords":["spotify","angular","angularjs"],"author":"Ed Moore","contributors":[{"name":"Fermin Blanco","email":"luillyfe89@gmail.com","url":"https://stackoverflow.com/users/2640467/luillyfe"}],"license":"MIT","bugs":{"url":"https://github.com/eddiemoore/angular-spotify/issues"},"homepage":"https://github.com/eddiemoore/angular-spotify","module":"rc-angular-spotify.es5.js","es2015":"rc-angular-spotify.js","typings":"rc-angular-spotify.d.ts","metadata":"rc-angular-spotify.metadata.json"} | ||
{"name":"rc-angular-spotify","version":"1.0.1","description":"Angular Service to connect to Spotify Web API","main":"bundles/rc-angular-spotify.umd.js","dependencies":{"@angular/common":"^5.2.1","@angular/compiler":"^5.2.1","@angular/core":"^5.2.1","@angular/http":"^5.2.1","@angular/platform-browser":"^5.2.1","@angular/platform-browser-dynamic":"^5.2.1","@angular/router":"^5.2.1","bootstrap":"4.0.0-beta.2","core-js":"^2.5.3","rxjs":"^5.5.6","zone.js":"^0.8.20"},"devDependencies":{"@angular/cli":"1.6.5","@angular/compiler-cli":"^5.2.1","@angular/language-service":"^5.2.1","@types/jasmine":"~2.8.5","@types/jasminewd2":"~2.0.2","@types/node":"~9.3.0","chai":"^4.1.2","codelyzer":"~4.1.0","jasmine-core":"~2.9.1","jasmine-spec-reporter":"~4.2.1","karma":"~2.0.0","karma-chrome-launcher":"~2.2.0","karma-cli":"~1.0.1","karma-coverage-istanbul-reporter":"^1.2.1","karma-jasmine":"~1.1.0","karma-jasmine-html-reporter":"^0.2.2","ng-packagr":"^1.6.0","protractor":"~5.2.2","ts-node":"~4.1.0","tslint":"~5.9.1","typescript":"~2.6.2"},"scripts":{"ng":"ng","start":"ng serve","build":"ng build","test":"ng test","lint":"ng lint","e2e":"ng e2e","packagr":"ng-packagr -p ng-package.json"},"private":false,"repository":{"type":"git","url":"https://github.com/eddiemoore/angular-spotify.git"},"keywords":["spotify","angular","angularjs"],"author":"Ed Moore","contributors":[{"name":"Fermin Blanco","email":"luillyfe89@gmail.com","url":"https://stackoverflow.com/users/2640467/luillyfe"}],"license":"MIT","bugs":{"url":"https://github.com/eddiemoore/angular-spotify/issues"},"homepage":"https://github.com/eddiemoore/angular-spotify","module":"rc-angular-spotify.es5.js","es2015":"rc-angular-spotify.js","typings":"rc-angular-spotify.d.ts","metadata":"rc-angular-spotify.metadata.json"} |
@@ -1,5 +0,5 @@ | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { Component, Injectable, NgModule } from '@angular/core'; | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { ActivatedRoute, RouterModule } from '@angular/router'; | ||
import { CommonModule } from '@angular/common'; | ||
var AppComponent = /** @class */ (function () { | ||
@@ -157,2 +157,3 @@ function AppComponent() { | ||
]; }; | ||
// import { BrowserModule } from '@angular/platform-browser'; | ||
var appRoutes = [ | ||
@@ -176,3 +177,3 @@ { path: '', component: AngularSpotifyComponent }, | ||
RouterModule.forRoot(appRoutes), | ||
BrowserModule, | ||
CommonModule, | ||
HttpClientModule | ||
@@ -179,0 +180,0 @@ ], |
@@ -1,5 +0,5 @@ | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { Component, Injectable, NgModule } from '@angular/core'; | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { ActivatedRoute, RouterModule } from '@angular/router'; | ||
import { CommonModule } from '@angular/common'; | ||
@@ -169,2 +169,3 @@ class AppComponent { | ||
// import { BrowserModule } from '@angular/platform-browser'; | ||
const appRoutes = [ | ||
@@ -185,3 +186,3 @@ { path: '', component: AngularSpotifyComponent }, | ||
RouterModule.forRoot(appRoutes), | ||
BrowserModule, | ||
CommonModule, | ||
HttpClientModule | ||
@@ -188,0 +189,0 @@ ], |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":3,"metadata":{"AppModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule"},"member":"forRoot"},"arguments":[[{"path":"","component":{"__symbolic":"reference","name":"ɵb"}},{"path":"auth/token","component":{"__symbolic":"reference","name":"ɵe"}}]]},{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule"}],"providers":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵc"}],"bootstrap":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-root","template":"\n <!--The content below is only a placeholder and can be replaced.-->\n <router-outlet></router-outlet>\n ","styles":["\n\n "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-angular-spotify","template":"\n <button type=\"button\" (click)=\"auth()\" class=\"btn btn-success\">Test me</button>\n ","styles":["\n\n "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"}]}],"ngOnInit":[{"__symbolic":"method"}],"auth":[{"__symbolic":"method"}],"getOptions":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵd"}]}],"getToken":[{"__symbolic":"method"}],"toQueryString":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-root","template":"<!–– get token from Spotify ––>"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute"},{"__symbolic":"reference","name":"ɵd"}]}]}}},"origins":{"AppModule":"./src/app/app.module","ɵa":"./src/app/app.component","ɵb":"./src/app/angular-spotify/angular-spotify.component","ɵc":"./src/app/angular-spotify/angular-spotify.service","ɵd":"./src/app/_helpers/window.service","ɵe":"./src/app/_helpers/token.component"},"importAs":"rc-angular-spotify"} | ||
{"__symbolic":"module","version":3,"metadata":{"AppModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule"},"member":"forRoot"},"arguments":[[{"path":"","component":{"__symbolic":"reference","name":"ɵb"}},{"path":"auth/token","component":{"__symbolic":"reference","name":"ɵe"}}]]},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule"}],"providers":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵc"}],"bootstrap":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-root","template":"\n <!--The content below is only a placeholder and can be replaced.-->\n <router-outlet></router-outlet>\n ","styles":["\n\n "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-angular-spotify","template":"\n <button type=\"button\" (click)=\"auth()\" class=\"btn btn-success\">Test me</button>\n ","styles":["\n\n "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"}]}],"ngOnInit":[{"__symbolic":"method"}],"auth":[{"__symbolic":"method"}],"getOptions":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵd"}]}],"getToken":[{"__symbolic":"method"}],"toQueryString":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-root","template":"<!–– get token from Spotify ––>"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute"},{"__symbolic":"reference","name":"ɵd"}]}]}}},"origins":{"AppModule":"./src/app/app.module","ɵa":"./src/app/app.component","ɵb":"./src/app/angular-spotify/angular-spotify.component","ɵc":"./src/app/angular-spotify/angular-spotify.service","ɵd":"./src/app/_helpers/window.service","ɵe":"./src/app/_helpers/token.component"},"importAs":"rc-angular-spotify"} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
108244
647