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

cog

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cog - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

loader.js

2

package.json

@@ -6,3 +6,3 @@ {

"tags": [],
"version": "0.3.0",
"version": "0.3.1",
"dependencies": {},

@@ -9,0 +9,0 @@ "devDependencies": {

@@ -10,9 +10,15 @@ /* jshint node: true */

/**
## qsa(selector, element)
## cog/qsa
This function is used to get the results of the querySelectorAll output
in the fastest possible way. This code is very much based on the
implementation in
[zepto](https://github.com/madrobby/zepto/blob/master/src/zepto.js#L104),
but perhaps not quite as terse.
```js
var qsa = require('cog/qsa');
```
### qsa(selector, scope?)
This function is used to get the results of the querySelectorAll output
in the fastest possible way. This code is very much based on the
implementation in
[zepto](https://github.com/madrobby/zepto/blob/master/src/zepto.js#L104),
but perhaps not quite as terse.
**/

@@ -19,0 +25,0 @@ module.exports = function(selector, scope) {

@@ -10,2 +10,8 @@ /* jshint node: true */

```js
var raf = require('cog/raf');
```
### raf(callback)
Request animation frame helper:

@@ -12,0 +18,0 @@

@@ -108,2 +108,14 @@ # cog

## cog/loader
```js
var loader = require('cog/loader');
```
### loader(urls, opts?, callback)
This is a simple script loader that will load the urls specified
and trigger the callback once all those scripts have been loaded (or
loading has failed in one instance).
## cog/logger

@@ -172,4 +184,10 @@

## qsa(selector, element)
## cog/qsa
```js
var qsa = require('cog/qsa');
```
### qsa(selector, scope?)
This function is used to get the results of the querySelectorAll output

@@ -183,2 +201,8 @@ in the fastest possible way. This code is very much based on the

```js
var raf = require('cog/raf');
```
### raf(callback)
Request animation frame helper:

@@ -185,0 +209,0 @@

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