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

rc-angular-spotify

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-angular-spotify - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

3

bundles/rc-angular-spotify.umd.js

@@ -146,5 +146,6 @@ (function (global, factory) {

common.CommonModule,
router.RouterModule.forRoot(appRoutes, { enableTracing: true })
router.RouterModule.forRoot(appRoutes)
],
providers: [WindowService, AngularSpotifyService],
exports: [router.RouterModule],
bootstrap: [AppComponent]

@@ -151,0 +152,0 @@ },] },

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/router","@angular/common"],e):e(t["rc-angular-spotify"]={},t.ng.core,t.ng.router,t.ng.common)}(this,function(t,e,o,n){"use strict";var r=function(){return function(){this.title="app"}}();r.decorators=[{type:e.Component,args:[{selector:"app-root",template:"<router-outlet></router-outlet>",styles:[""]}]}],r.ctorParameters=function(){return[]};var i=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return window},enumerable:!0,configurable:!0}),t}();i.decorators=[{type:e.Injectable}],i.ctorParameters=function(){return[]};var s=function(){function t(t){this.windowRef=t,this.clientId="14d0e6301dea4e29ba4ba48195d3a255",this.responseType="token",this.redirectUri="http://localhost:4200/auth/token",this.name="Spotify Auth",this.witdh=400,this.heigh=500,this.left=screen.width/2-this.witdh/2,this.top=screen.height/2-this.heigh/2}return t.prototype.getToken=function(t,e){void 0===t&&(t=this.name),void 0===e&&(e=this.getOptions()),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.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}();s.decorators=[{type:e.Injectable}],s.ctorParameters=function(){return[{type:i}]};var u=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()}}();u.decorators=[{type:e.Component,args:[{selector:"app-root",template:""}]}],u.ctorParameters=function(){return[{type:o.ActivatedRoute},{type:i}]};var a=[{path:"auth/token",component:u}],c=function(){return function(){}}();c.decorators=[{type:e.NgModule,args:[{declarations:[r,u],imports:[n.CommonModule,o.RouterModule.forRoot(a,{enableTracing:!0})],providers:[i,s],bootstrap:[r]}]}],c.ctorParameters=function(){return[]},t.AppModule=c,t.AngularSpotifyService=s,t.ɵb=u,t.ɵc=i,t.ɵa=r,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/router","@angular/common"],e):e(t["rc-angular-spotify"]={},t.ng.core,t.ng.router,t.ng.common)}(this,function(t,e,o,r){"use strict";var n=function(){return function(){this.title="app"}}();n.decorators=[{type:e.Component,args:[{selector:"app-root",template:"<router-outlet></router-outlet>",styles:[""]}]}],n.ctorParameters=function(){return[]};var i=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return window},enumerable:!0,configurable:!0}),t}();i.decorators=[{type:e.Injectable}],i.ctorParameters=function(){return[]};var s=function(){function t(t){this.windowRef=t,this.clientId="14d0e6301dea4e29ba4ba48195d3a255",this.responseType="token",this.redirectUri="http://localhost:4200/auth/token",this.name="Spotify Auth",this.witdh=400,this.heigh=500,this.left=screen.width/2-this.witdh/2,this.top=screen.height/2-this.heigh/2}return t.prototype.getToken=function(t,e){void 0===t&&(t=this.name),void 0===e&&(e=this.getOptions()),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.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}();s.decorators=[{type:e.Injectable}],s.ctorParameters=function(){return[{type:i}]};var u=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()}}();u.decorators=[{type:e.Component,args:[{selector:"app-root",template:""}]}],u.ctorParameters=function(){return[{type:o.ActivatedRoute},{type:i}]};var a=[{path:"auth/token",component:u}],c=function(){return function(){}}();c.decorators=[{type:e.NgModule,args:[{declarations:[n,u],imports:[r.CommonModule,o.RouterModule.forRoot(a)],providers:[i,s],exports:[o.RouterModule],bootstrap:[n]}]}],c.ctorParameters=function(){return[]},t.AppModule=c,t.AngularSpotifyService=s,t.ɵb=u,t.ɵc=i,t.ɵa=n,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.7","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/platform-browser":"^5.2.1","@angular/platform-browser-dynamic":"^5.2.1","@angular/router":"^5.2.2","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.8","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/platform-browser":"^5.2.1","@angular/platform-browser-dynamic":"^5.2.1","@angular/router":"^5.2.2","bootstrap":"4.0.0-beta.2","core-js":"^2.5.3","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"}

@@ -143,5 +143,6 @@ import { Component, Injectable, NgModule } from '@angular/core';

CommonModule,
RouterModule.forRoot(appRoutes, { enableTracing: true })
RouterModule.forRoot(appRoutes)
],
providers: [WindowService, AngularSpotifyService],
exports: [RouterModule],
bootstrap: [AppComponent]

@@ -148,0 +149,0 @@ },] },

@@ -141,5 +141,6 @@ import { Component, Injectable, NgModule } from '@angular/core';

CommonModule,
RouterModule.forRoot(appRoutes, { enableTracing: true })
RouterModule.forRoot(appRoutes)
],
providers: [WindowService, AngularSpotifyService],
exports: [RouterModule],
bootstrap: [AppComponent]

@@ -146,0 +147,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"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule"},"member":"forRoot"},"arguments":[[{"path":"auth/token","component":{"__symbolic":"reference","name":"ɵb"}}],{"enableTracing":true}]}],"providers":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"AngularSpotifyService"}],"bootstrap":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"AngularSpotifyService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"}]}],"getToken":[{"__symbolic":"method"}],"toQueryString":[{"__symbolic":"method"}],"getOptions":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-root","template":"<router-outlet></router-outlet>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-root","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute"},{"__symbolic":"reference","name":"ɵc"}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{}}},"origins":{"AppModule":"./src/app/app.module","AngularSpotifyService":"./src/app/angular-spotify/angular-spotify.service","ɵa":"./src/app/app.component","ɵb":"./src/app/_helpers/token.component","ɵc":"./src/app/_helpers/window.service"},"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"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule"},"member":"forRoot"},"arguments":[[{"path":"auth/token","component":{"__symbolic":"reference","name":"ɵb"}}]]}],"providers":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"AngularSpotifyService"}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule"}],"bootstrap":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"AngularSpotifyService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"}]}],"getToken":[{"__symbolic":"method"}],"toQueryString":[{"__symbolic":"method"}],"getOptions":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-root","template":"<router-outlet></router-outlet>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"app-root","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute"},{"__symbolic":"reference","name":"ɵc"}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{}}},"origins":{"AppModule":"./src/app/app.module","AngularSpotifyService":"./src/app/angular-spotify/angular-spotify.service","ɵa":"./src/app/app.component","ɵb":"./src/app/_helpers/token.component","ɵc":"./src/app/_helpers/window.service"},"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

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