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.1 to 0.3.2

4

defaults.js
/* jshint node: true */
'use strict';
/**
/**
## cog/defaults

@@ -13,3 +13,3 @@

Shallow copy object properties from the supplied source objects (*) into
Shallow copy object properties from the supplied source objects (*) into
the target object, returning the target object once completed. Do not,

@@ -16,0 +16,0 @@ however, overwrite existing keys with new values:

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

"testling": true
}
},
"license": {}
}
/* jshint node: true */
'use strict';
/**
/**
## cog/extend

@@ -13,3 +13,3 @@

Shallow copy object properties from the supplied source objects (*) into
Shallow copy object properties from the supplied source objects (*) into
the target object, returning the target object once completed:

@@ -16,0 +16,0 @@

@@ -10,11 +10,11 @@ /**

A lot of people don't like/get browserify. Heck, I was one of those people.
I can say now though, with hand on heart that it is in fact, awesome
I can say now though, with hand on heart that it is in fact, awesome
(since V2). Let me explain why and at the same time explain how cog works.
At a very simple level browserify takes module import statements in the
form of CommonJS style `require` calls and resolves dependencies into a
At a very simple level browserify takes module import statements in the
form of CommonJS style `require` calls and resolves dependencies into a
useful self-contained (as self-contained as you like, I might add) script
that can run in your browser.
Not only that, but it only includes the parts of modules that are actually
Not only that, but it only includes the parts of modules that are actually
used in your code into the final output. It does this using a technique

@@ -34,11 +34,11 @@ called static analysis via a library called [esprima](http://esprima.org/).

to talk about reusable code that is making our lives easier. Back when
jQuery was the new hotness, it was really easy to communicate that to
jQuery was the new hotness, it was really easy to communicate that to
another developer. The same can probably be said about things such as
Backbone and Underscore.
So while the bloat that came with those libraries was bad, the ability to
So while the bloat that came with those libraries was bad, the ability to
communicate their usefulness quickly to our friends was not.
I propose a different approach and cog is a demonstration of that. It's the
build a collection of stuff where you only get what you need at runtime
build a collection of stuff where you only get what you need at runtime
approach.

@@ -45,0 +45,0 @@

@@ -18,2 +18,4 @@ /* jshint node: true */

__NOTE:__ Deprecated, moved into [dd](https://github.com/DamonOehlman/dd)
**/

@@ -33,3 +35,3 @@

callback();
}
}
}

@@ -36,0 +38,0 @@

@@ -12,3 +12,3 @@ /* jshint node: true */

Simple browser logging offering similar functionality to the
[debug](https://github.com/visionmedia/debug) module.
[debug](https://github.com/visionmedia/debug) module.

@@ -90,3 +90,3 @@ ### Usage

Reset logging (remove the default console logger, flag all loggers as
Reset logging (remove the default console logger, flag all loggers as
inactive, etc, etc.

@@ -93,0 +93,0 @@ **/

@@ -5,7 +5,6 @@ {

"author": "Damon Oehlman <damon.oehlman@gmail.com>",
"tags": [],
"version": "0.3.1",
"version": "0.3.2",
"dependencies": {},
"devDependencies": {
"tape": "~1.0.4"
"tape": "~2.3.0"
},

@@ -25,13 +24,34 @@ "repository": {

"files": "test/all.js",
"browsers": [
"ie/9",
"ie/10",
"chrome/latest",
"firefox/latest",
"safari/latest",
"opera/latest"
]
"browsers": {
"ie": [
"latest"
],
"ff": [
"latest",
"nightly"
],
"chrome": [
"latest",
"canary"
],
"opera": [
"latest",
"next"
],
"safari": [
"latest"
]
}
},
"contributors": [],
"optionalDependencies": {}
"homepage": "https://github.com/DamonOehlman/cog",
"main": "index.js",
"directories": {
"test": "test"
},
"keywords": [
"browserify",
"utility",
"cherrypick"
],
"license": "MIT"
}

@@ -18,3 +18,3 @@ /* jshint node: true */

This function is used to get the results of the querySelectorAll output
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

@@ -24,2 +24,4 @@ implementation in

but perhaps not quite as terse.
__NOTE:__ Deprecated, moved into [dd](https://github.com/DamonOehlman/dd)
**/

@@ -26,0 +28,0 @@ module.exports = function(selector, scope) {

@@ -28,2 +28,4 @@ /* jshint node: true */

```
__NOTE:__ Deprecated, moved into [dd](https://github.com/DamonOehlman/dd)
**/

@@ -36,4 +38,4 @@

} // for
return animFrame;
})();

@@ -17,11 +17,11 @@ # cog

A lot of people don't like/get browserify. Heck, I was one of those people.
I can say now though, with hand on heart that it is in fact, awesome
I can say now though, with hand on heart that it is in fact, awesome
(since V2). Let me explain why and at the same time explain how cog works.
At a very simple level browserify takes module import statements in the
form of CommonJS style `require` calls and resolves dependencies into a
At a very simple level browserify takes module import statements in the
form of CommonJS style `require` calls and resolves dependencies into a
useful self-contained (as self-contained as you like, I might add) script
that can run in your browser.
Not only that, but it only includes the parts of modules that are actually
Not only that, but it only includes the parts of modules that are actually
used in your code into the final output. It does this using a technique

@@ -41,11 +41,11 @@ called static analysis via a library called [esprima](http://esprima.org/).

to talk about reusable code that is making our lives easier. Back when
jQuery was the new hotness, it was really easy to communicate that to
jQuery was the new hotness, it was really easy to communicate that to
another developer. The same can probably be said about things such as
Backbone and Underscore.
So while the bloat that came with those libraries was bad, the ability to
So while the bloat that came with those libraries was bad, the ability to
communicate their usefulness quickly to our friends was not.
I propose a different approach and cog is a demonstration of that. It's the
build a collection of stuff where you only get what you need at runtime
build a collection of stuff where you only get what you need at runtime
approach.

@@ -56,3 +56,2 @@

## cog/defaults

@@ -66,3 +65,3 @@

Shallow copy object properties from the supplied source objects (*) into
Shallow copy object properties from the supplied source objects (*) into
the target object, returning the target object once completed. Do not,

@@ -77,3 +76,2 @@ however, overwrite existing keys with new values:

## cog/extend

@@ -87,3 +85,3 @@

Shallow copy object properties from the supplied source objects (*) into
Shallow copy object properties from the supplied source objects (*) into
the target object, returning the target object once completed:

@@ -126,2 +124,4 @@

__NOTE:__ Deprecated, moved into [dd](https://github.com/DamonOehlman/dd)
## cog/logger

@@ -134,3 +134,3 @@

Simple browser logging offering similar functionality to the
[debug](https://github.com/visionmedia/debug) module.
[debug](https://github.com/visionmedia/debug) module.

@@ -173,3 +173,3 @@ ### Usage

Reset logging (remove the default console logger, flag all loggers as
Reset logging (remove the default console logger, flag all loggers as
inactive, etc, etc.

@@ -200,3 +200,3 @@

This function is used to get the results of the querySelectorAll output
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

@@ -207,2 +207,4 @@ implementation in

__NOTE:__ Deprecated, moved into [dd](https://github.com/DamonOehlman/dd)
## cog/raf

@@ -228,1 +230,28 @@

```
__NOTE:__ Deprecated, moved into [dd](https://github.com/DamonOehlman/dd)
## License(s)
### MIT
Copyright (c) 2013 Damon Oehlman <damon.oehlman@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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