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

@caier/sc

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@caier/sc - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

lib/index.ts

@@ -18,3 +18,3 @@ import ax, { AxiosRequestConfig, AxiosResponse } from 'axios';

if(!clientId) {
let client_id = (<AxiosResponse> await ax.get('https://a-v2.sndcdn.com/assets/1-28868269-3.js', {responseType:'text'}).catch(()=>{}))?.data
let client_id = (<AxiosResponse> await ax.get('https://a-v2.sndcdn.com/assets/2-8c341bf2-3.js', {responseType:'text'}).catch(()=>{}))?.data
.match(/client_id=(\w+)&/)?.[0].replace(/client_id=(\w+)&/, '$1') ?? '';

@@ -21,0 +21,0 @@ if(!client_id)

@@ -27,3 +27,3 @@ "use strict";

if (!clientId) {
let client_id = (_c = (_b = (_a = (await axios_1.default.get('https://a-v2.sndcdn.com/assets/1-28868269-3.js', { responseType: 'text' }).catch(() => { }))) === null || _a === void 0 ? void 0 : _a.data.match(/client_id=(\w+)&/)) === null || _b === void 0 ? void 0 : _b[0].replace(/client_id=(\w+)&/, '$1')) !== null && _c !== void 0 ? _c : '';
let client_id = (_c = (_b = (_a = (await axios_1.default.get('https://a-v2.sndcdn.com/assets/2-8c341bf2-3.js', { responseType: 'text' }).catch(() => { }))) === null || _a === void 0 ? void 0 : _a.data.match(/client_id=(\w+)&/)) === null || _b === void 0 ? void 0 : _b[0].replace(/client_id=(\w+)&/, '$1')) !== null && _c !== void 0 ? _c : '';
if (!client_id)

@@ -127,2 +127,2 @@ throw Error("Could not fetch client id, you can try to set it manually using the .setClientId() method");

module.exports = SC;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvaW5kZXgudHMiXS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XMgcHJvYmFibHkgYnJva2VuIHJpZ2h0IG5vd1wiKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB0aHJvdyBFcnJvcihlcnIpO1xyXG4gICAgICAgIH0pKT8uZGF0YT8uY29sbGVjdGlvbjtcclxuICAgICAgICBib2R5LmZvckVhY2goKHM6IGFueSkgPT4gcy5raW5kID09ICd0cmFjaycgJiYgcmVzdWx0LnRyYWNrcy5wdXNoKHtcclxuICAgICAgICAgICAgbmFtZTogcy50aXRsZSxcclxuICAgICAgICAgICAgaWQ6IHMuaWQsXHJcbiAgICAgICAgICAgIGRlc2NyaXB0aW9uOiBzLmRlc2NyaXB0aW9uLFxyXG4gICAgICAgICAgICB0aHVtYm5haWw6IHMuYXJ0d29ya191cmwsXHJcbiAgICAgICAgICAgIG1pbGlzOiBzLmR1cmF0aW9uLFxyXG4gICAgICAgICAgICBkdXJhdGlvbjogU0MubWlsaXNUb1RpbWVzdGFtcChzLmR1cmF0aW9uKSxcclxuICAgICAgICAgICAgdXJsOiBzLnBlcm1hbGlua191cmwsXHJcbiAgICAgICAgICAgIGF1dGhvcjoge1xyXG4gICAgICAgICAgICAgICAgbmFtZTogcy51c2VyLnVzZXJuYW1lLFxyXG4gICAgICAgICAgICAgICAgdXJsOiBzLnVzZXIucGVybWFsaW5rX3VybFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBmdWxsX3Jlc3BvbnNlOiBzXHJcbiAgICAgICAgfSkpO1xyXG4gICAgICAgIHJldHVybiByZXN1bHQ7XHJcbiAgICB9XHJcbn1cclxuZXhwb3J0ID0gU0M7Il19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQSxrREFBOEQ7QUFDOUQsNkNBQT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BzOi8vYXBpLXYyLnNvdW5kY2xvdWQuY29tL3RyYWNrcy8ke3RyYWNrSWR9P2NsaWVudF9pZD0ke2F3YWl0IFNDLmdldENsaWVudElkKCl9YCwge3Jlc3BvbnNlVHlwZTonanNvbid9KS5jYXRjaChlcnIgPT4ge1xyXG4gICAgICAgICAgICBzd2l0Y2goZXJyLnJlc3BvbnNlLnN0YXR1cykge1xyXG4gICAgICAgICAgICAgICAgY2FzZSA0MDE6IHRocm93IEVycm9yKFwiQXV0aGVudGljYXRpb24gZmFpbGVkLCBtb2R1bGUgaXMgcHJvYmFibHkgYnJva2VuIHJpZ2h0IG5vd1wiKTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNDA0OiB0aHJvdyBFcnJvcignUHJvYmFibHkgaW52YWxpZCB0cmFjayBJRCcpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIHRocm93IEVycm9yKGVycik7XHJcbiAgICAgICAgfSkpIGFzIGFueTtcclxuICAgICAgICBsZXQgaW5mb1VybCA9IHRyYW5zLmRhdGE/Lm1lZGlhPy50cmFuc2NvZGluZ3M/LmZpbmQ/LigodjogYW55KSA9PiB2LmZvcm1hdC5wcm90b2NvbCA9PSAncHJvZ3Jlc3NpdmUnKT8udXJsIGFzIHN0cmluZztcclxuICAgICAgICBpZighaW5mb1VybClcclxuICAgICAgICAgICAgdGhyb3cgRXJyb3IoJ0NvdWxkIG5vdCBsb2FkIGluZm8nKTtcclxuICAgICAgICBsZXQgc3RyVXJsID0gKGF3YWl0IGF4LmdldChgJHtpbmZvVXJsfT9jbGllbnRfaWQ9JHthd2FpdCBTQy5nZXRDbGllbnRJZCgpfWAsIHtyZXNwb25zZVR5cGU6J2pzb24nfSkuY2F0Y2goKCk9Pnt9KSBhcyBBeGlvc1Jlc3BvbnNlKT8uZGF0YT8udXJsIGFzIHN0cmluZztcclxuICAgICAgICBpZighc3RyVXJsKVxyXG4gICAgICAgICAgICB0aHJvdyBFcnJvcignQ291bGQgbm90IG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JvdyBFcnJvcihlcnIpO1xyXG4gICAgICAgIH0pKT8uZGF0YT8uY29sbGVjdGlvbjtcclxuICAgICAgICBib2R5LmZvckVhY2goKHM6IGFueSkgPT4gcy5raW5kID09ICd0cmFjaycgJiYgcmVzdWx0LnRyYWNrcy5wdXNoKHtcclxuICAgICAgICAgICAgbmFtZTogcy50aXRsZSxcclxuICAgICAgICAgICAgaWQ6IHMuaWQsXHJcbiAgICAgICAgICAgIGRlc2NyaXB0aW9uOiBzLmRlc2NyaXB0aW9uLFxyXG4gICAgICAgICAgICB0aHVtYm5haWw6IHMuYXJ0d29ya191cmwsXHJcbiAgICAgICAgICAgIG1pbGlzOiBzLmR1cmF0aW9uLFxyXG4gICAgICAgICAgICBkdXJhdGlvbjogU0MubWlsaXNUb1RpbWVzdGFtcChzLmR1cmF0aW9uKSxcclxuICAgICAgICAgICAgdXJsOiBzLnBlcm1hbGlua191cmwsXHJcbiAgICAgICAgICAgIGF1dGhvcjoge1xyXG4gICAgICAgICAgICAgICAgbmFtZTogcy51c2VyLnVzZXJuYW1lLFxyXG4gICAgICAgICAgICAgICAgdXJsOiBzLnVzZXIucGVybWFsaW5rX3VybFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBmdWxsX3Jlc3BvbnNlOiBzXHJcbiAgICAgICAgfSkpO1xyXG4gICAgICAgIHJldHVybiByZXN1bHQ7XHJcbiAgICB9XHJcbn1cclxuZXhwb3J0ID0gU0M7Il19
{
"name": "@caier/sc",
"version": "1.2.3",
"version": "1.2.4",
"description": "soundcloud additions",

@@ -5,0 +5,0 @@ "main": "out/index.js",

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