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.4.0 to 1.4.1

4

package.json
{
"name": "embeds",
"version": "1.4.0",
"version": "1.4.1",
"description": "Parse & render embeds",

@@ -29,3 +29,3 @@ "main": "dist/index.js",

"devDependencies": {
"ava": "^0.13.0",
"ava": "^0.14.0",
"babel-cli": "^6.6.5",

@@ -32,0 +32,0 @@ "babel-core": "^6.7.2",

@@ -7,6 +7,6 @@ import test from 'ava';

test('parse invalid input', t => {
t.same(parseInput(), null);
t.same(parseInput(null), null);
t.same(parseInput(''), null);
t.same(parseInput('https://unknown.com/embed/ABCde'), null);
t.is(parseInput(), null);
t.is(parseInput(null), null);
t.is(parseInput(''), null);
t.is(parseInput('https://unknown.com/embed/ABCde'), null);
});

@@ -22,15 +22,18 @@

t.same(parseInput('https://www.instagram.com/p/tsxp1hhQTG'), expected);
t.same(parseInput('http://www.instagram.com/p/tsxp1hhQTG'), expected);
t.same(parseInput('//www.instagram.com/p/tsxp1hhQTG'), expected);
t.same(parseInput('https://instagram.com/p/tsxp1hhQTG'), expected);
t.same(parseInput('http://instagram.com/p/tsxp1hhQTG'), expected);
t.same(parseInput('//instagram.com/p/tsxp1hhQTG'), expected);
t.same(parseInput('https://instagram.com/p/tsxp1hhQTG/'), expected);
t.same(parseInput('http://instagram.com/p/tsxp1hhQTG/'), expected);
t.same(parseInput('//instagram.com/p/tsxp1hhQTG/'), expected);
t.same(parseInput('https://instagram.com/p/tsxp1hhQTG/embed'), expected);
t.same(parseInput('http://instagram.com/p/tsxp1hhQTG/embed'), expected);
t.same(parseInput('//instagram.com/p/tsxp1hhQTG/embed'), expected);
t.same(parseInput('<iframe src="//instagram.com/p/tsxp1hhQTG"></iframe>'), expected);
t.deepEqual(parseInput('https://www.instagram.com/p/tsxp1hhQTG'), expected);
t.deepEqual(parseInput('http://www.instagram.com/p/tsxp1hhQTG'), expected);
t.deepEqual(parseInput('//www.instagram.com/p/tsxp1hhQTG'), expected);
t.deepEqual(parseInput('https://instagram.com/p/tsxp1hhQTG'), expected);
t.deepEqual(parseInput('http://instagram.com/p/tsxp1hhQTG'), expected);
t.deepEqual(parseInput('//instagram.com/p/tsxp1hhQTG'), expected);
t.deepEqual(parseInput('https://instagram.com/p/tsxp1hhQTG/'), expected);
t.deepEqual(parseInput('http://instagram.com/p/tsxp1hhQTG/'), expected);
t.deepEqual(parseInput('//instagram.com/p/tsxp1hhQTG/'), expected);
t.deepEqual(parseInput('https://instagram.com/p/tsxp1hhQTG/embed'), expected);
t.deepEqual(parseInput('http://instagram.com/p/tsxp1hhQTG/embed'), expected);
t.deepEqual(parseInput('//instagram.com/p/tsxp1hhQTG/embed'), expected);
t.deepEqual(
parseInput('<iframe src="//instagram.com/p/tsxp1hhQTG"></iframe>'),
expected
);
});

@@ -54,6 +57,6 @@

t.same(parseInput('https://giphy.com/embed/3oxRmeLK7bjcq0CCCA'), expected);
t.same(parseInput('http://giphy.com/embed/3oxRmeLK7bjcq0CCCA'), expected);
t.same(parseInput('//giphy.com/embed/3oxRmeLK7bjcq0CCCA'), expected);
t.same(parseInput(code), expected);
t.deepEqual(parseInput('https://giphy.com/embed/3oxRmeLK7bjcq0CCCA'), expected);
t.deepEqual(parseInput('http://giphy.com/embed/3oxRmeLK7bjcq0CCCA'), expected);
t.deepEqual(parseInput('//giphy.com/embed/3oxRmeLK7bjcq0CCCA'), expected);
t.deepEqual(parseInput(code), expected);
});

@@ -124,17 +127,50 @@

t.same(parseInput(videoCode), expectedVideo);
t.same(parseInput('https://www.facebook.com/MicMedia/videos/1095905927098863'), expectedVideo);
t.same(parseInput('http://www.facebook.com/MicMedia/videos/1095905927098863'), expectedVideo);
t.same(parseInput('//www.facebook.com/MicMedia/videos/1095905927098863'), expectedVideo);
t.same(parseInput('https://facebook.com/MicMedia/videos/1095905927098863'), expectedVideo);
t.same(parseInput('http://facebook.com/MicMedia/videos/1095905927098863'), expectedVideo);
t.same(parseInput('//facebook.com/MicMedia/videos/1095905927098863'), expectedVideo);
t.deepEqual(parseInput(videoCode), expectedVideo);
t.deepEqual(
parseInput('https://www.facebook.com/MicMedia/videos/1095905927098863'),
expectedVideo
);
t.deepEqual(
parseInput('http://www.facebook.com/MicMedia/videos/1095905927098863'),
expectedVideo
);
t.deepEqual(
parseInput('//www.facebook.com/MicMedia/videos/1095905927098863'),
expectedVideo
);
t.deepEqual(
parseInput('https://facebook.com/MicMedia/videos/1095905927098863'),
expectedVideo
);
t.deepEqual(
parseInput('http://facebook.com/MicMedia/videos/1095905927098863'),
expectedVideo
);
t.deepEqual(
parseInput('//facebook.com/MicMedia/videos/1095905927098863'),
expectedVideo
);
t.same(parseInput(postCode), expectedPost);
t.same(parseInput('https://www.facebook.com/zuck/posts/10102593740125791'), expectedPost);
t.same(parseInput('http://www.facebook.com/zuck/posts/10102593740125791'), expectedPost);
t.same(parseInput('//www.facebook.com/zuck/posts/10102593740125791'), expectedPost);
t.same(parseInput('https://facebook.com/zuck/posts/10102593740125791'), expectedPost);
t.same(parseInput('http://facebook.com/zuck/posts/10102593740125791'), expectedPost);
t.same(parseInput('//facebook.com/zuck/posts/10102593740125791'), expectedPost);
t.deepEqual(parseInput(postCode), expectedPost);
t.deepEqual(
parseInput('https://www.facebook.com/zuck/posts/10102593740125791'),
expectedPost
);
t.deepEqual(
parseInput('http://www.facebook.com/zuck/posts/10102593740125791'),
expectedPost
);
t.deepEqual(
parseInput('//www.facebook.com/zuck/posts/10102593740125791'),
expectedPost
);
t.deepEqual(
parseInput('https://facebook.com/zuck/posts/10102593740125791'),
expectedPost
);
t.deepEqual(
parseInput('http://facebook.com/zuck/posts/10102593740125791'),
expectedPost
);
t.deepEqual(parseInput('//facebook.com/zuck/posts/10102593740125791'), expectedPost);
});

@@ -155,18 +191,18 @@

t.same(parseInput(youtubeCode), expected);
t.same(parseInput('https://www.youtube.com/embed/I7IdS-PbEgI'), expected);
t.same(parseInput('http://www.youtube.com/embed/I7IdS-PbEgI'), expected);
t.same(parseInput('//www.youtube.com/embed/I7IdS-PbEgI'), expected);
t.same(parseInput('https://youtube.com/embed/I7IdS-PbEgI'), expected);
t.same(parseInput('http://youtube.com/embed/I7IdS-PbEgI'), expected);
t.same(parseInput('//youtube.com/embed/I7IdS-PbEgI'), expected);
t.same(parseInput('https://www.youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.same(parseInput('http://www.youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.same(parseInput('//www.youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.same(parseInput('https://youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.same(parseInput('http://youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.same(parseInput('//youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.same(parseInput('https://youtu.be/I7IdS-PbEgI'), expected);
t.same(parseInput('http://youtu.be/I7IdS-PbEgI'), expected);
t.same(parseInput('//youtu.be/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput(youtubeCode), expected);
t.deepEqual(parseInput('https://www.youtube.com/embed/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('http://www.youtube.com/embed/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('//www.youtube.com/embed/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('https://youtube.com/embed/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('http://youtube.com/embed/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('//youtube.com/embed/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('https://www.youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('http://www.youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('//www.youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('https://youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('http://youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('//youtube.com/watch?v=I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('https://youtu.be/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('http://youtu.be/I7IdS-PbEgI'), expected);
t.deepEqual(parseInput('//youtu.be/I7IdS-PbEgI'), expected);
});

@@ -197,9 +233,27 @@

t.same(parseInput(twitterCode), expected);
t.same(parseInput('https://twitter.com/thomas_kast/status/709353211455541248'), expected);
t.same(parseInput('http://twitter.com/thomas_kast/status/709353211455541248'), expected);
t.same(parseInput('//twitter.com/thomas_kast/status/709353211455541248'), expected);
t.same(parseInput('https://www.twitter.com/thomas_kast/status/709353211455541248'), expected);
t.same(parseInput('http://www.twitter.com/thomas_kast/status/709353211455541248'), expected);
t.same(parseInput('//www.twitter.com/thomas_kast/status/709353211455541248'), expected);
t.deepEqual(parseInput(twitterCode), expected);
t.deepEqual(
parseInput('https://twitter.com/thomas_kast/status/709353211455541248'),
expected
);
t.deepEqual(
parseInput('http://twitter.com/thomas_kast/status/709353211455541248'),
expected
);
t.deepEqual(
parseInput('//twitter.com/thomas_kast/status/709353211455541248'),
expected
);
t.deepEqual(
parseInput('https://www.twitter.com/thomas_kast/status/709353211455541248'),
expected
);
t.deepEqual(
parseInput('http://www.twitter.com/thomas_kast/status/709353211455541248'),
expected
);
t.deepEqual(
parseInput('//www.twitter.com/thomas_kast/status/709353211455541248'),
expected
);
});

@@ -224,6 +278,15 @@

t.same(parseInput(tumblrCode), expected);
t.same(parseInput('https://embed.tumblr.com/embed/post/Hj-X2tKsXur2oF91XMwT5w/105825530041'), expected);
t.same(parseInput('http://embed.tumblr.com/embed/post/Hj-X2tKsXur2oF91XMwT5w/105825530041'), expected);
t.same(parseInput('//embed.tumblr.com/embed/post/Hj-X2tKsXur2oF91XMwT5w/105825530041'), expected);
t.deepEqual(parseInput(tumblrCode), expected);
t.deepEqual(
parseInput('https://embed.tumblr.com/embed/post/Hj-X2tKsXur2oF91XMwT5w/105825530041'),
expected
);
t.deepEqual(
parseInput('http://embed.tumblr.com/embed/post/Hj-X2tKsXur2oF91XMwT5w/105825530041'),
expected
);
t.deepEqual(
parseInput('//embed.tumblr.com/embed/post/Hj-X2tKsXur2oF91XMwT5w/105825530041'),
expected
);
});

@@ -246,12 +309,12 @@

t.same(parseInput(vineCode), expected);
t.same(parseInput('https://vine.co/v/iHTTDHz6Z2v'), expected);
t.same(parseInput('https://vine.co/v/iHTTDHz6Z2v/embed'), expected);
t.same(parseInput('https://vine.co/v/iHTTDHz6Z2v/embed/simple'), expected);
t.same(parseInput('http://vine.co/v/iHTTDHz6Z2v'), expected);
t.same(parseInput('http://vine.co/v/iHTTDHz6Z2v/embed'), expected);
t.same(parseInput('http://vine.co/v/iHTTDHz6Z2v/embed/simple'), expected);
t.same(parseInput('//vine.co/v/iHTTDHz6Z2v'), expected);
t.same(parseInput('//vine.co/v/iHTTDHz6Z2v/embed'), expected);
t.same(parseInput('//vine.co/v/iHTTDHz6Z2v/embed/simple'), expected);
t.deepEqual(parseInput(vineCode), expected);
t.deepEqual(parseInput('https://vine.co/v/iHTTDHz6Z2v'), expected);
t.deepEqual(parseInput('https://vine.co/v/iHTTDHz6Z2v/embed'), expected);
t.deepEqual(parseInput('https://vine.co/v/iHTTDHz6Z2v/embed/simple'), expected);
t.deepEqual(parseInput('http://vine.co/v/iHTTDHz6Z2v'), expected);
t.deepEqual(parseInput('http://vine.co/v/iHTTDHz6Z2v/embed'), expected);
t.deepEqual(parseInput('http://vine.co/v/iHTTDHz6Z2v/embed/simple'), expected);
t.deepEqual(parseInput('//vine.co/v/iHTTDHz6Z2v'), expected);
t.deepEqual(parseInput('//vine.co/v/iHTTDHz6Z2v/embed'), expected);
t.deepEqual(parseInput('//vine.co/v/iHTTDHz6Z2v/embed/simple'), expected);
});

@@ -272,12 +335,12 @@

t.same(parseInput(imgurCode), expected);
t.same(parseInput('https://imgur.com/gallery/2GuAESk'), expected);
t.same(parseInput('http://imgur.com/gallery/2GuAESk'), expected);
t.same(parseInput('//imgur.com/gallery/2GuAESk'), expected);
t.same(parseInput('https://imgur.com/2GuAESk'), expected);
t.same(parseInput('http://imgur.com/2GuAESk'), expected);
t.same(parseInput('//imgur.com/2GuAESk'), expected);
t.same(parseInput('https://imgur.com/2GuAESk/embed'), expected);
t.same(parseInput('http://imgur.com/2GuAESk/embed'), expected);
t.same(parseInput('//imgur.com/2GuAESk/embed'), expected);
t.deepEqual(parseInput(imgurCode), expected);
t.deepEqual(parseInput('https://imgur.com/gallery/2GuAESk'), expected);
t.deepEqual(parseInput('http://imgur.com/gallery/2GuAESk'), expected);
t.deepEqual(parseInput('//imgur.com/gallery/2GuAESk'), expected);
t.deepEqual(parseInput('https://imgur.com/2GuAESk'), expected);
t.deepEqual(parseInput('http://imgur.com/2GuAESk'), expected);
t.deepEqual(parseInput('//imgur.com/2GuAESk'), expected);
t.deepEqual(parseInput('https://imgur.com/2GuAESk/embed'), expected);
t.deepEqual(parseInput('http://imgur.com/2GuAESk/embed'), expected);
t.deepEqual(parseInput('//imgur.com/2GuAESk/embed'), expected);
});

@@ -302,9 +365,9 @@

t.same(parseInput(vimeoCode), expected);
t.same(parseInput('https://player.vimeo.com/video/35630244'), expected);
t.same(parseInput('http://player.vimeo.com/video/35630244'), expected);
t.same(parseInput('//player.vimeo.com/video/35630244'), expected);
t.same(parseInput('https://vimeo.com/35630244'), expected);
t.same(parseInput('http://vimeo.com/35630244'), expected);
t.same(parseInput('//vimeo.com/35630244'), expected);
t.deepEqual(parseInput(vimeoCode), expected);
t.deepEqual(parseInput('https://player.vimeo.com/video/35630244'), expected);
t.deepEqual(parseInput('http://player.vimeo.com/video/35630244'), expected);
t.deepEqual(parseInput('//player.vimeo.com/video/35630244'), expected);
t.deepEqual(parseInput('https://vimeo.com/35630244'), expected);
t.deepEqual(parseInput('http://vimeo.com/35630244'), expected);
t.deepEqual(parseInput('//vimeo.com/35630244'), expected);
});

@@ -319,11 +382,11 @@

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);
t.deepEqual(parseInput('https://graphiq.com/wlp/2iub6zz6ltH'), expected);
t.deepEqual(parseInput('http://graphiq.com/wlp/2iub6zz6ltH'), expected);
t.deepEqual(parseInput('//graphiq.com/wlp/2iub6zz6ltH'), expected);
t.deepEqual(parseInput('https://www.graphiq.com/wlp/2iub6zz6ltH'), expected);
t.deepEqual(parseInput('http://www.graphiq.com/wlp/2iub6zz6ltH'), expected);
t.deepEqual(parseInput('//www.graphiq.com/wlp/2iub6zz6ltH'), expected);
t.deepEqual(parseInput('https://w.graphiq.com/w/2iub6zz6ltH'), expected);
t.deepEqual(parseInput('http://w.graphiq.com/w/2iub6zz6ltH'), expected);
t.deepEqual(parseInput('//w.graphiq.com/w/2iub6zz6ltH'), expected);
});

@@ -13,3 +13,3 @@ import test from 'ava';

const expected = null;
t.same(actual, expected);
t.is(actual, expected);
});

@@ -26,3 +26,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -40,3 +40,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -53,3 +53,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -68,3 +68,3 @@

t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -83,3 +83,3 @@

t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -99,3 +99,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -121,3 +121,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -137,3 +137,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -153,3 +153,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -164,3 +164,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -177,3 +177,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -198,3 +198,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -219,3 +219,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -229,3 +229,3 @@

];
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -247,3 +247,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -255,3 +255,3 @@

const expected = null;
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -268,3 +268,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -281,3 +281,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -302,3 +302,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -323,3 +323,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -331,3 +331,3 @@

const expected = null;
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -349,3 +349,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -367,3 +367,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -391,3 +391,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -415,3 +415,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -427,3 +427,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -439,3 +439,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -447,3 +447,3 @@

const expected = null;
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -461,3 +461,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -475,3 +475,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -489,3 +489,3 @@

};
t.same(actual, expected);
t.deepEqual(actual, expected);
});

@@ -19,3 +19,3 @@ import test from 'ava';

const expected = '<img src="http://example.com/image.jpg"></img>';
t.same(actual, expected);
t.is(actual, expected);
});

@@ -32,3 +32,3 @@

const expected = '<img src="http://example.com/image.jpg" alt="beep boop"></img>';
t.same(actual, expected);
t.is(actual, expected);
});

@@ -45,3 +45,3 @@

const expected = '<img src="http://example.com/image.jpg" width="100" height="200"></img>';
t.same(actual, expected);
t.is(actual, expected);
});

@@ -66,3 +66,3 @@

</video>`;
t.same(actual, expected);
t.is(actual, expected);
});

@@ -76,3 +76,3 @@

const expected = '<iframe src="https://www.youtube.com/embed/pDVmldTurqk" width="640" height="360" frameborder="0" allowfullscreen="true"></iframe>';
t.same(actual, expected);
t.is(actual, expected);
});

@@ -88,3 +88,3 @@

const expected = '<iframe src="https://www.youtube.com/embed/pDVmldTurqk" width="800" height="600" frameborder="0" allowfullscreen="true"></iframe>';
t.same(actual, expected);
t.is(actual, expected);
});

@@ -111,3 +111,3 @@

</blockquote>`;
t.same(actual, expected);
t.is(actual, expected);
});

@@ -132,3 +132,3 @@

const expected = fixtures.instagramCaption;
t.same(actual, expected);
t.is(actual, expected);
});

@@ -153,3 +153,3 @@

const expected = fixtures.instagramWithoutCaption;
t.same(actual, expected);
t.is(actual, expected);
});

@@ -171,3 +171,3 @@

const expected = fixtures.facebookPost;
t.same(actual, expected);
t.is(actual, expected);
});

@@ -193,3 +193,3 @@

const expected = fixtures.facebookVideo;
t.same(actual, expected);
t.is(actual, expected);
});

@@ -207,3 +207,3 @@

const expected = '<iframe src="http://custom.com" width="600" height="600" frameborder="0"></iframe>';
t.same(actual, expected);
t.is(actual, expected);
});

@@ -222,3 +222,3 @@

const expected = '<iframe src="http://custom.com" width="600" height="600" frameborder="0" allowfullscreen="true"></iframe>';
t.same(actual, expected);
t.is(actual, expected);
});

@@ -234,3 +234,3 @@

const expected = '<iframe src="https://vine.co/v/bjHh0zHdgZT/embed/simple" width="600" height="600" frameborder="0"></iframe>';
t.same(actual, expected);
t.is(actual, expected);
});

@@ -247,3 +247,3 @@

const expected = '<iframe src="https://vine.co/v/bjHh0zHdgZT/embed/simple" width="400" height="400" frameborder="0"></iframe>';
t.same(actual, expected);
t.is(actual, 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