Comparing version 1.1.0 to 1.2.0
@@ -123,2 +123,9 @@ 'use strict'; | ||
}; | ||
}], [/(https?:)?\/\/(www\.|w\.)?graphiq\.com\/(wlp|w)\/([A-Za-z0-9_-]+)/, function (match) { | ||
var id = match[4]; | ||
return { | ||
type: 'graphiq', | ||
url: 'https://w.graphiq.com/w/' + id, | ||
id: id | ||
}; | ||
}], [/(https?:)?\/\/(player\.)?vimeo\.com\/(video\/)?([0-9]+)/, function (match) { | ||
@@ -125,0 +132,0 @@ var id = match[4]; |
@@ -84,2 +84,10 @@ const allowed = [ | ||
}], | ||
[/(https?:)?\/\/(www\.|w\.)?graphiq\.com\/(wlp|w)\/([A-Za-z0-9_-]+)/, match => { | ||
const id = match[4]; | ||
return { | ||
type: 'graphiq', | ||
url: `https://w.graphiq.com/w/${id}`, | ||
id: id | ||
}; | ||
}], | ||
[/(https?:)?\/\/(player\.)?vimeo\.com\/(video\/)?([0-9]+)/, match => { | ||
@@ -86,0 +94,0 @@ const id = match[4]; |
{ | ||
"name": "embeds", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Parse & render embeds", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -302,1 +302,19 @@ import 'babel-polyfill'; | ||
}); | ||
test('graphiq', t => { | ||
const expected = { | ||
type: 'graphiq', | ||
url: 'https://w.graphiq.com/w/2iub6zz6ltH', | ||
id: '2iub6zz6ltH' | ||
}; | ||
t.same(parseInput('https://graphiq.com/wlp/2iub6zz6ltH'), expected); | ||
t.same(parseInput('http://graphiq.com/wlp/2iub6zz6ltH'), expected); | ||
t.same(parseInput('//graphiq.com/wlp/2iub6zz6ltH'), expected); | ||
t.same(parseInput('https://www.graphiq.com/wlp/2iub6zz6ltH'), expected); | ||
t.same(parseInput('http://www.graphiq.com/wlp/2iub6zz6ltH'), expected); | ||
t.same(parseInput('//www.graphiq.com/wlp/2iub6zz6ltH'), expected); | ||
t.same(parseInput('https://w.graphiq.com/w/2iub6zz6ltH'), expected); | ||
t.same(parseInput('http://w.graphiq.com/w/2iub6zz6ltH'), expected); | ||
t.same(parseInput('//w.graphiq.com/w/2iub6zz6ltH'), expected); | ||
}); |
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
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
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
68045
1629
0