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

embeds

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embeds - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

7

dist/parse-input.js

@@ -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];

2

package.json
{
"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);
});
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