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

ember-promise

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-promise - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

8

addon/mixins/promise.js

@@ -5,2 +5,3 @@ import Ember from 'ember';

xhr: function(url, method, hash) {
var self = this;
hash = hash || {};

@@ -16,10 +17,13 @@ hash.url = url;

};
hash.error = function(json) {
hash.error = function(json, textStatus, errorThrown) {
if (json && json.then) {
json.then = null;
}
Ember.run(self, "onError", json, textStatus, errorThrown);
return Ember.run(null, reject, json);
};
$.ajax(hash);
Ember.$.ajax(hash);
});
},
onError: function() {
}

@@ -26,0 +30,0 @@ });

{
"name": "ember-promise",
"version": "1.0.0",
"version": "1.1.0",
"description": "A simple promise object that will wrap xhr resolve/reject with an ember.run",

@@ -21,14 +21,15 @@ "directories": {

"devDependencies": {
"broccoli-asset-rev": "^2.0.0",
"ember-cli": "0.2.0",
"ember-cli-app-version": "0.3.2",
"ember-cli-babel": "^4.0.0",
"ember-cli-content-security-policy": "0.3.0",
"broccoli-asset-rev": "^2.0.2",
"ember-cli": "0.2.3",
"ember-cli-app-version": "0.3.3",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "0.0.8",
"ember-cli-htmlbars": "0.7.4",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.9",
"ember-cli-qunit": "0.3.10",
"ember-cli-uglify": "1.0.1",
"ember-export-application-global": "^1.0.2",
"bower": "~1.3.12",
"ember-disable-prototype-extensions": "^1.0.0",
"ember-try": "0.0.4",
"bower": "1.4.1",
"phantomjs": "~1.9.13"

@@ -39,2 +40,5 @@ },

],
"dependencies": {
"ember-cli-babel": "^5.0.0"
},
"ember-addon": {

@@ -41,0 +45,0 @@ "configPath": "tests/dummy/config"

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