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

viki-web-utils

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viki-web-utils - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

5

dist/blocked_checker/BlockedResourceChecker.js

@@ -29,3 +29,6 @@ 'use strict';

return fetch(this.resource).then(function (resolve, reject) {
var request = new Request(this.resource, {
mode: 'no-cors'
});
return fetch(request).then(function (resolve, reject) {
return Promise.resolve({

@@ -32,0 +35,0 @@ blocked: false,

2

package.json
{
"name": "viki-web-utils",
"version": "0.0.13",
"version": "0.0.14",
"description": "Utils used by the Viki web app",

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

@@ -65,2 +65,15 @@ /* eslint-env jasmine */

});
it('promise returned should resolve with blocked: false if resource is available', (done) => {
const url = 'https://secure.quantserve.com/quant.js'
this.checker = new BlockedResourceChecker(url);
const promise = this.checker.test();
promise.then(function (res) {
expect(res).toEqual({
blocked: false,
resource: url,
});
done();
});
});
});

@@ -67,0 +80,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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