Skip to content

Commit 023f02c

Browse files
committed
Updated dependencies
1 parent 2d375da commit 023f02c

File tree

5 files changed

+56
-4
lines changed

5 files changed

+56
-4
lines changed

.gitignore

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
13+
# Directory for instrumented libs generated by jscoverage/JSCover
14+
lib-cov
15+
16+
# Coverage directory used by tools like istanbul
17+
coverage
18+
19+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
20+
.grunt
21+
22+
# node-waf configuration
23+
.lock-wscript
24+
25+
# Compiled binary addons (http://nodejs.org/api/addons.html)
26+
build/Release
27+
28+
# Dependency directory
29+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
30+
node_modules
31+
32+
.DS_Store
33+
.idea

.npmrc

-1
This file was deleted.

lib/provider.js

+12
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ const ApiRequestError = require('./errors').ApiRequestError;
99

1010
/**
1111
* Constructor
12+
*
1213
* @param {String} name
1314
* @param {String} apiUrl
1415
* @param {Array} regExp
1516
* @param {Function} transform
1617
* @param {Object} [apiParameters]
18+
* @constructor
1719
*/
1820

1921
function provider(name, apiUrl, regExp, transform, apiParameters) {
@@ -33,6 +35,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
3335

3436
/**
3537
* Matches url with provider regExp
38+
*
3639
* @param {String} matchUrl
3740
* @returns {Promise}
3841
*/
@@ -76,6 +79,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
7679

7780
/**
7881
* Requests oEmbed information from provider
82+
*
7983
* @param {String} embedUrl
8084
* @returns {Promise}
8185
*/
@@ -125,6 +129,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
125129

126130
/**
127131
* Adds a test
132+
*
128133
* @param {String} matchUrl
129134
* @param {String} embedUrl
130135
*/
@@ -144,6 +149,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
144149

145150
/**
146151
* Validates the provider name
152+
*
147153
* @param {String} providerName
148154
*/
149155

@@ -156,6 +162,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
156162

157163
/**
158164
* Validates the API Url
165+
*
159166
* @param {String} apiUrl
160167
*/
161168

@@ -168,6 +175,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
168175

169176
/**
170177
* Validates the regular expressions
178+
*
171179
* @param {Array} regExp
172180
*/
173181

@@ -180,6 +188,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
180188

181189
/**
182190
* Validates the transform function
191+
*
183192
* @param {Function} transform
184193
*/
185194

@@ -192,6 +201,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
192201

193202
/**
194203
* Validates the API parameters
204+
*
195205
* @param {Object} apiParameters
196206
*/
197207

@@ -205,6 +215,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
205215

206216
/**
207217
* Getter for provider name
218+
*
208219
* @returns {String}
209220
*/
210221

@@ -214,6 +225,7 @@ function provider(name, apiUrl, regExp, transform, apiParameters) {
214225

215226
/**
216227
* Getter for provider tests
228+
*
217229
* @returns {Array}
218230
*/
219231

main.js

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const providers = requireProviders();
1212

1313
/**
1414
* Gets the oEmbed information for a URL
15+
*
1516
* @param {String|Array} matchUrls
1617
* @param {Function} [callback]
1718
* @returns {Promise}
@@ -59,6 +60,7 @@ function get(matchUrls, callback) {
5960

6061
/**
6162
* Return matching providers and transformed embed URLs
63+
*
6264
* @param {String|Array} matchUrls
6365
* @param {Function} [callback]
6466
* @returns {Promise}
@@ -82,6 +84,7 @@ function match(matchUrls, callback) {
8284

8385
/**
8486
* Return matching provider and transformed embed URL
87+
*
8588
* @param {String} matchUrl
8689
* @returns {Promise}
8790
*/
@@ -100,6 +103,7 @@ function matchOne(matchUrl) {
100103

101104
/**
102105
* Merges match results from different URLs
106+
*
103107
* @param {Array} matchResults
104108
* @returns {Array}
105109
*/
@@ -120,6 +124,7 @@ function mergeMatchResults(matchResults) {
120124

121125
/**
122126
* Ensures that match results are unique and valid
127+
*
123128
* @param {Array} matchResults
124129
* @returns {Array}
125130
*/
@@ -142,6 +147,7 @@ function sanitizeMatchResults(matchResults) {
142147

143148
/**
144149
* Requires all providers
150+
*
145151
* @returns {Object}
146152
*/
147153

@@ -162,6 +168,7 @@ function requireProviders() {
162168

163169
/**
164170
* Ensures that matchUrls is array of URLs
171+
*
165172
* @param {String|Array} matchUrls
166173
* @returns {Array}
167174
*/
@@ -188,6 +195,7 @@ function sanitizeMatchUrls(matchUrls) {
188195

189196
/**
190197
* Getter for providers
198+
*
191199
* @returns {Object}
192200
*/
193201

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "embedify",
3-
"version": "0.10.32",
3+
"version": "0.10.33",
44
"description": "oEmbed provider",
55
"main": "main.js",
66
"scripts": {
@@ -25,10 +25,10 @@
2525
"url": "https://github.com/moooji/embedify/issues"
2626
},
2727
"dependencies": {
28-
"bluebird": "^2.10.0",
28+
"bluebird": "^2.10.2",
2929
"custom-error-generator": "^7.0.0",
3030
"lodash": "^3.10.1",
31-
"request": "^2.61.0"
31+
"request": "^2.67.0"
3232
},
3333
"devDependencies": {
3434
"chai": "^3.0.0",

0 commit comments

Comments
 (0)