social-links
Advanced tools
Comparing version 1.1.2 to 1.1.3
"use strict"; | ||
var __read = (this && this.__read) || function (o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PREDEFINED_PROFILES = void 0; | ||
var fs = require('fs'); | ||
var files = fs.readdirSync(__dirname) | ||
.filter(function (name) { return !name.endsWith('.spec.ts'); }) | ||
.filter(function (name) { return name !== 'index.ts'; }); | ||
exports.PREDEFINED_PROFILES = []; | ||
files.map(function (file) { | ||
var _a = __read(Object.values(require([__dirname, file].join('/'))), 1), profile = _a[0]; | ||
exports.PREDEFINED_PROFILES.push(profile); | ||
}); | ||
var behance_1 = require("./behance"); | ||
var dribble_1 = require("./dribble"); | ||
var facebook_1 = require("./facebook"); | ||
var github_1 = require("./github"); | ||
var instagram_1 = require("./instagram"); | ||
var linkedin_1 = require("./linkedin"); | ||
var medium_1 = require("./medium"); | ||
var patreon_1 = require("./patreon"); | ||
var twitch_1 = require("./twitch"); | ||
var twitter_1 = require("./twitter"); | ||
var youtube_1 = require("./youtube"); | ||
exports.PREDEFINED_PROFILES = [ | ||
behance_1.behance, | ||
dribble_1.dribble, | ||
facebook_1.facebook, | ||
github_1.github, | ||
instagram_1.instagram, | ||
linkedin_1.linkedin, | ||
medium_1.medium, | ||
patreon_1.patreon, | ||
twitch_1.twitch, | ||
twitter_1.twitter, | ||
youtube_1.youtube, | ||
]; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "social-links", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Validate & sanitize social links", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
0
102283
1162