retsly-js-sdk
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -5,16 +5,11 @@ { | ||
"description": "Retsly JavaScript SDK", | ||
"version": "0.6.6", | ||
"version": "0.7.1", | ||
"dependencies": { | ||
"retsly/socket.io-client": "1.1.1", | ||
"component/emitter": "1.1.3", | ||
"component/cookie": "1.0.1", | ||
"segmentio/extend": "1.0.0", | ||
"retsly/ajax": "^0.0.4", | ||
"retsly/socket.io-client":"1.1.1", | ||
"segmentio/extend": "1.0.0", | ||
"component/each": "0.2.5", | ||
"retsly/qs": "v2.3.4", | ||
"component/cookie": "1.0.1", | ||
"component/emitter": "1.1.3" | ||
"retsly/qs": "v2.3.4" | ||
}, | ||
"development": { | ||
"timoxley/assert": "*", | ||
"visionmedia/mocha": "1.14.0" | ||
}, | ||
"license": "MIT", | ||
@@ -21,0 +16,0 @@ "main": "index.js", |
@@ -6,3 +6,2 @@ /** | ||
var ajax = require('ajax'); | ||
var each = require('each'); | ||
var qs = require('qs').stringify; | ||
@@ -153,3 +152,3 @@ var store = require('cookie'); | ||
crossDomain : true, | ||
error: function (xhr,err) { | ||
error: function () { | ||
throw new Error('Could not set Retsly session'); | ||
@@ -254,3 +253,3 @@ }.bind(this), | ||
if (cb) this.__init_stack.push(cb); | ||
else each(this.__init_stack, function(c) { if(typeof c === 'function') c(); }); | ||
else this.__init_stack.forEach(function(c) { if(typeof c === 'function') c(); }); | ||
if(!cb) this.__init_stack = []; //clear stack | ||
@@ -257,0 +256,0 @@ return this; |
{ | ||
"name": "retsly-js-sdk", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"author": { | ||
@@ -11,3 +11,2 @@ "name": "Retsly", | ||
"browser": { | ||
"each": "component-each", | ||
"ajax": "component-ajax", | ||
@@ -24,3 +23,2 @@ "emitter": "component-emitter", | ||
"qs": "2.3.3", | ||
"component-each": "0.2.5", | ||
"component-ajax": "^0.0.2", | ||
@@ -31,4 +29,3 @@ "component-emitter": "1.1.3", | ||
"devDependencies": { | ||
"component": "1.0.0-rc5", | ||
"mocha-phantomjs": "*", | ||
"browserify": "^10.2.4", | ||
"mocha": "1.14.0", | ||
@@ -39,6 +36,5 @@ "mochify": "*" | ||
"start": "mochify --watch", | ||
"phantom": "mochify", | ||
"wd": "mochify --wd", | ||
"cover": "mochify --cover", | ||
"test": "npm run phantom && npm run wd && npm run cover" | ||
"test": "mochify", | ||
"dist": "browserify index.js -o retsly.js -s Retsly" | ||
}, | ||
@@ -45,0 +41,0 @@ "keywords": [ |
@@ -1,2 +0,4 @@ | ||
# retsly-js-sdk [![wercker status](https://app.wercker.com/status/0fdacfc21927ee822804af8c7887568d/s/ "wercker status")](https://app.wercker.com/project/bykey/0fdacfc21927ee822804af8c7887568d) | ||
[![wercker status](https://app.wercker.com/status/0fdacfc21927ee822804af8c7887568d/m "wercker status")](https://app.wercker.com/project/bykey/0fdacfc21927ee822804af8c7887568d) | ||
# retsly-js-sdk | ||
Retsly core SDK. Useful for clientside integration with [Retsly](http://rets.ly). | ||
@@ -79,24 +81,2 @@ | ||
## Building Retsly Components | ||
Retsly components should be built using | ||
[component](https://github.com/component/component). Components should | ||
follow the naming convention `retsly`-`lang_prefix`-`name`. Add new | ||
components to the [wiki](https://github.com/Retsly/retsly-js-sdk/wiki/Component-List). | ||
This will allow anyone to install these components and include them into | ||
their source using require: | ||
```js | ||
// Example of how a featured listing component might look | ||
var Featured = require('retsly-js-featured'); | ||
var feature = new Featured('#featured', { vendorID: mls.id, listings: listings, limit: 10 }); | ||
feature.on('click', doSomething); | ||
``` | ||
When at all possible abstract specific component behavior into it's own | ||
component. If you find your feature includes multiple components, try to | ||
separate the logic into individual componets, then require them in your | ||
`component.json` file. This granularity will promote the reuse of generic | ||
functionality within the Retsly community. | ||
## Repo Owner | ||
@@ -103,0 +83,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
5
3
3
64917
10
2041
108
3
- Removedcomponent-each@0.2.5
- Removedamdefine@1.0.1(transitive)
- Removedast-parents@0.0.1(transitive)
- Removedast-transform@0.0.0(transitive)
- Removedast-types@0.3.38(transitive)
- Removedcls@0.1.5(transitive)
- Removedcomponent-each@0.2.5(transitive)
- Removedcomponent-props@1.1.1(transitive)
- Removedcomponent-type@1.0.0(transitive)
- Removedescodegen@1.2.0(transitive)
- Removedesprima@1.0.4(transitive)
- Removedestraverse@1.5.1(transitive)
- Removedesutils@1.0.0(transitive)
- Removedprivate@0.1.8(transitive)
- Removedrecast@0.5.27(transitive)
- Removedremove-try-require@0.0.0(transitive)
- Removedreplace-method@0.0.0(transitive)
- Removedsource-map@0.1.320.1.43(transitive)
- Removedthrough@2.3.8(transitive)
- Removedto-function@2.0.5(transitive)