spotify-uri
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -14,2 +14,3 @@ "use strict"; | ||
const track_1 = __importDefault(require("./track")); | ||
const episode_1 = __importDefault(require("./episode")); | ||
const user_1 = __importDefault(require("./user")); | ||
@@ -79,4 +80,7 @@ const spotify_uri_1 = __importDefault(require("./spotify-uri")); | ||
} | ||
if (parts[1] === 'episode') { | ||
return new episode_1.default(uri, parts[2]); | ||
} | ||
throw new TypeError(`Could not determine type for: ${uri}`); | ||
} | ||
//# sourceMappingURL=parse.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encode = exports.decode = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * URL-decode, also replaces `+` (plus) chars with ` ` (space). |
{ | ||
"name": "spotify-uri", | ||
"version": "2.0.0", | ||
"description": "Parse the various Spotify URI formats into Objects and back", | ||
"homepage": "https://github.com/TooTallNate/spotify-uri#readme", | ||
"version": "2.1.0", | ||
"main": "./dist/index.js", | ||
"typings": "./dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
"author": { | ||
"email": "nathan@tootallnate.net", | ||
"name": "Nathan Rajlich", | ||
"url": "http://n8.io/" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Nathan Rajlich", | ||
"email": "nathan@tootallnate.net" | ||
}, | ||
{ | ||
"name": "Stefan Duberg", | ||
"email": "stefanduberg@me.com" | ||
}, | ||
{ | ||
"name": "Karl Sander", | ||
"email": "kall@kall.ws" | ||
}, | ||
{ | ||
"name": "Kiko Beats", | ||
"email": "josefrancisco.verdu@gmail.com" | ||
}, | ||
{ | ||
"name": "Miraculous Owonubi", | ||
"email": "omiraculous@gmail.com" | ||
}, | ||
{ | ||
"name": "Shem Magnezi", | ||
"email": "smagnezi8@gmail.com" | ||
} | ||
], | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"build": "tsc", | ||
"test": "mocha", | ||
"test-lint": "eslint src --ext .js,.ts", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"repository": { | ||
@@ -21,16 +42,14 @@ "type": "git", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/TooTallNate/spotify-uri/issues" | ||
}, | ||
"keywords": [ | ||
"http", | ||
"link", | ||
"object", | ||
"parse", | ||
"spotify", | ||
"uri", | ||
"link", | ||
"http", | ||
"url", | ||
"parse", | ||
"object" | ||
"url" | ||
], | ||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/TooTallNate/spotify-uri/issues" | ||
}, | ||
"devDependencies": { | ||
@@ -53,3 +72,15 @@ "@types/node": "^12.12.11", | ||
"node": ">= 6" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"prebuild": "rimraf dist", | ||
"prepublishOnly": "npm run build", | ||
"test": "mocha", | ||
"test-lint": "eslint src --ext .js,.ts" | ||
}, | ||
"license": "MIT", | ||
"typings": "./dist/index.d.ts" | ||
} |
@@ -92,3 +92,3 @@ spotify-uri | ||
console.log(uri); | ||
// 'https://play.spotify.com/track/4Jgp57InfWE4MxJLfheNVz' | ||
// 'http://open.spotify.com/track/3c1zC1Ma3987kQcHQfcG0Q' | ||
``` | ||
@@ -95,0 +95,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
33862
38
529
0