ember-promise
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4953
1
14
7
37
1
+ Addedember-cli-babel@^5.0.0
+ Addedacorn@5.7.4(transitive)
+ Addedalign-text@0.1.4(transitive)
+ Addedalter@0.2.0(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedarray-equal@1.0.2(transitive)
+ Addedast-traverse@0.1.1(transitive)
+ Addedast-types@0.8.120.9.6(transitive)
+ Addedasync@2.6.4(transitive)
+ Addedasync-disk-cache@1.3.5(transitive)
+ Addedasync-promise-queue@1.0.5(transitive)
+ Addedbabel-core@5.8.38(transitive)
+ Addedbabel-plugin-constant-folding@1.0.1(transitive)
+ Addedbabel-plugin-dead-code-elimination@1.0.2(transitive)
+ Addedbabel-plugin-eval@1.0.1(transitive)
+ Addedbabel-plugin-inline-environment-variables@1.0.1(transitive)
+ Addedbabel-plugin-jscript@1.0.4(transitive)
+ Addedbabel-plugin-member-expression-literals@1.0.1(transitive)
+ Addedbabel-plugin-property-literals@1.0.1(transitive)
+ Addedbabel-plugin-proto-to-assign@1.0.4(transitive)
+ Addedbabel-plugin-react-constant-elements@1.0.3(transitive)
+ Addedbabel-plugin-react-display-name@1.0.3(transitive)
+ Addedbabel-plugin-remove-console@1.0.1(transitive)
+ Addedbabel-plugin-remove-debugger@1.0.1(transitive)
+ Addedbabel-plugin-runtime@1.0.7(transitive)
+ Addedbabel-plugin-undeclared-variables-check@1.0.2(transitive)
+ Addedbabel-plugin-undefined-to-void@1.1.6(transitive)
+ Addedbabylon@5.8.38(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbinaryextensions@2.3.0(transitive)
+ Addedblank-object@1.0.2(transitive)
+ Addedbluebird@2.11.0(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbreakable@1.0.0(transitive)
+ Addedbroccoli-babel-transpiler@5.7.4(transitive)
+ Addedbroccoli-funnel@1.2.0(transitive)
+ Addedbroccoli-kitchen-sink-helpers@0.3.1(transitive)
+ Addedbroccoli-merge-trees@1.2.4(transitive)
+ Addedbroccoli-persistent-filter@1.4.6(transitive)
+ Addedbroccoli-plugin@1.3.1(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addedcamelcase@1.2.1(transitive)
+ Addedcan-symlink@1.0.0(transitive)
+ Addedcenter-align@0.1.3(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcliui@2.1.0(transitive)
+ Addedclone@0.2.02.1.2(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddefs@1.1.1(transitive)
+ Addeddetect-indent@3.0.1(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addededitions@1.3.4(transitive)
+ Addedember-cli-babel@5.2.8(transitive)
+ Addedember-cli-version-checker@1.3.1(transitive)
+ Addedensure-posix-path@1.1.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@2.7.33.1.3(transitive)
+ Addedesprima-fb@15001.1001.0-dev-harmony-fb(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedexists-sync@0.0.4(transitive)
+ Addedfast-ordered-set@1.0.3(transitive)
+ Addedfs-readdir-recursive@0.1.2(transitive)
+ Addedfs-tree-diff@0.5.9(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.6(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedglob@5.0.157.2.3(transitive)
+ Addedglobals@6.4.1(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhash-for-dep@1.5.1(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedheimdalljs@0.2.6(transitive)
+ Addedheimdalljs-logger@0.1.10(transitive)
+ Addedhome-or-tmp@1.0.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinvert-kv@1.0.0(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-core-module@2.16.0(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-integer@1.0.7(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedistextorbinary@2.1.0(transitive)
+ Addedjs-tokens@1.0.1(transitive)
+ Addedjsesc@0.5.0(transitive)
+ Addedjson-stable-stringify@1.2.0(transitive)
+ Addedjson5@0.4.0(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedkind-of@3.2.2(transitive)
+ Addedlazy-cache@1.0.4(transitive)
+ Addedlcid@1.0.0(transitive)
+ Addedleven@1.0.2(transitive)
+ Addedlodash@3.10.14.17.21(transitive)
+ Addedlongest@1.0.1(transitive)
+ Addedmatcher-collection@1.1.2(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedminimatch@2.0.103.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmktemp@0.4.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-locale@1.4.0(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedoutput-file-sync@1.1.2(transitive)
+ Addedpath-exists@1.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-posix@1.0.0(transitive)
+ Addedpath-root@0.1.1(transitive)
+ Addedpath-root-regex@0.1.2(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedpromise-map-series@0.2.3(transitive)
+ Addedq@1.5.1(transitive)
+ Addedquick-temp@0.1.8(transitive)
+ Addedrecast@0.10.330.11.23(transitive)
+ Addedregenerate@1.4.2(transitive)
+ Addedregenerator@0.8.40(transitive)
+ Addedregexpu@1.3.0(transitive)
+ Addedregjsgen@0.2.0(transitive)
+ Addedregjsparser@0.1.5(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedrepeating@1.1.3(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedresolve-package-path@1.2.7(transitive)
+ Addedright-align@0.1.3(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedrsvp@3.2.13.6.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsimple-fmt@0.1.0(transitive)
+ Addedsimple-is@0.2.0(transitive)
+ Addedslash@1.0.0(transitive)
+ Addedsource-map@0.1.320.5.7(transitive)
+ Addedsource-map-support@0.2.10(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedstable@0.1.8(transitive)
+ Addedstringmap@0.2.2(transitive)
+ Addedstringset@0.2.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedsymlink-or-copy@1.3.1(transitive)
+ Addedtextextensions@2.6.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtmp@0.0.28(transitive)
+ Addedto-fast-properties@1.0.3(transitive)
+ Addedtrim-right@1.0.1(transitive)
+ Addedtry-resolve@1.0.1(transitive)
+ Addedtryor@0.1.2(transitive)
+ Addedunderscore.string@3.3.6(transitive)
+ Addeduser-home@1.1.1(transitive)
+ Addedusername-sync@1.0.3(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwalk-sync@0.3.4(transitive)
+ Addedwindow-size@0.1.4(transitive)
+ Addedwordwrap@0.0.2(transitive)
+ Addedworkerpool@2.3.4(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedy18n@3.2.2(transitive)
+ Addedyargs@3.27.0(transitive)