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

viki-web-utils

Package Overview
Dependencies
Maintainers
2
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.16 to 0.0.17

dist/blocked_checker/BlockedResourceChecker.js

4

dist/index.js

@@ -11,2 +11,3 @@ 'use strict';

var ResizeCounter = require('./resize_counter/ResizeCounter');
var BlockedResourceChecker = require('./blocked_checker/BlockedResourceChecker');

@@ -17,3 +18,4 @@ module.exports = {

LocalStorageTabCounter: LocalStorageTabCounter,
ResizeCounter: ResizeCounter
ResizeCounter: ResizeCounter,
BlockedResourceChecker: BlockedResourceChecker
};
{
"name": "viki-web-utils",
"version": "0.0.16",
"version": "0.0.17",
"description": "Utils used by the Viki web app",

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

@@ -60,2 +60,20 @@ # viki-web-utils

### BlockedResourceChecker
Tests if a resource is blocked on client side. Returns a Promise on test that is passed in `blocked` and `resource` values.
#### Usage
```js
// create checker
const checker = new BlockedResourceChecker('https://badresource.blah');
// test resource returns a Promise
checker
.test()
.then((res) => {
console.log(res.resource, res.blocked) // https://badresource.blah true
});
```
---

@@ -75,7 +93,9 @@

Karma wil prompt you to open browser on Google Chrome. To trigger tests, modify and save any src file.
Build and publishing
```
npm build
npm run build
npm run build-docs // generates JSDoc documentation to /docs dir
npm publish //script automatically builds before publish
```

@@ -22,2 +22,6 @@ /* eslint-env jasmine */

});
it('should have BlockedResourceChecker', function () {
expect(Viki.BlockedResourceChecker).toEqual(jasmine.any(Function));
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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