Socket
Socket
Sign inDemoInstall

ozone-api-request

Package Overview
Dependencies
Maintainers
3
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ozone-api-request - npm Package Compare versions

Comparing version 1.0.4 to 3.0.0

dist/index.d.ts

10

dist/ozone-api-request.js

@@ -149,3 +149,5 @@ /// <amd-module name="ozone-api-request"/>

constructor() {
this._url = '';
this._method = 'GET';
this._body = '';
this._responseType = 'json';

@@ -203,3 +205,3 @@ /**

this.eventTarget.dispatchEvent(new CustomEvent('ozone-api-request-success', {
bubbles: true, composed: true, detail: xmlhttp
bubbles: true, detail: xmlhttp
}));

@@ -210,3 +212,3 @@ resolve(xmlhttp);

this.eventTarget.dispatchEvent(new CustomEvent('ozone-api-request-unauthorized', {
bubbles: true, composed: true, detail: xmlhttp
bubbles: true, detail: xmlhttp
}));

@@ -217,3 +219,3 @@ reject(xmlhttp);

this.eventTarget.dispatchEvent(new CustomEvent('ozone-api-request-error', {
bubbles: true, composed: true, detail: xmlhttp
bubbles: true, detail: xmlhttp
}));

@@ -226,3 +228,3 @@ reject(xmlhttp);

this.eventTarget.dispatchEvent(new CustomEvent('ozone-api-request-timeout', {
bubbles: true, composed: true, detail: xmlhttp
bubbles: true, detail: xmlhttp
}));

@@ -229,0 +231,0 @@ reject(xmlhttp);

17

package.json
{
"name": "ozone-api-request",
"version": "1.0.4",
"version": "3.0.0",
"publishConfig": {
"access": "public"
},
"description": "light api for ozone ajax call",
"repository": {
"type": "git",
"url": "https://github.com/taktik/ozone-api-request"
"url": "https://github.com/taktik/ozone-components/packages/ozone-helper/ozone-api-request"
},

@@ -14,3 +17,4 @@ "main": "dist/ozone-api-request.js",

"build": "tsc",
"test": "tsc && git diff --exit-code"
"test": "tsc",
"doc": "typedoc --excludeExternals --out doc/ src/"
},

@@ -20,7 +24,10 @@ "author": "hj@taktik",

"devDependencies": {
"typescript": "^2.4.1"
"ozone-type": "^3.0.0",
"typescript": "^2.7.2"
},
"dependencies": {
"taktik-polymer-typescript": "^2.2.0"
"@types/lodash": "^4.14.104",
"taktik-polymer-typescript": "^3.0.0",
"typedoc": "^0.11.1"
}
}

@@ -77,5 +77,5 @@ /// <amd-module name="ozone-api-request"/>

export class OzoneAPIRequest{
private _url: string;
private _url: string ='';
private _method: string = 'GET';
private _body: string;
private _body: string = '';
private _responseType: XMLHttpRequestResponseType = 'json';

@@ -143,4 +143,4 @@

case 200:
this.eventTarget.dispatchEvent(new CustomEvent('ozone-api-request-success', {
bubbles: true, composed: true, detail: xmlhttp
this.eventTarget.dispatchEvent(new CustomEvent<XMLHttpRequest>('ozone-api-request-success', {
bubbles: true, detail: xmlhttp
}));

@@ -150,4 +150,4 @@ resolve(xmlhttp);

case 403:
this.eventTarget.dispatchEvent(new CustomEvent('ozone-api-request-unauthorized', {
bubbles: true, composed: true, detail: xmlhttp
this.eventTarget.dispatchEvent(new CustomEvent<XMLHttpRequest>('ozone-api-request-unauthorized', {
bubbles: true, detail: xmlhttp
}));

@@ -157,4 +157,4 @@ reject(xmlhttp);

default:
this.eventTarget.dispatchEvent(new CustomEvent('ozone-api-request-error', {
bubbles: true, composed: true, detail: xmlhttp
this.eventTarget.dispatchEvent(new CustomEvent<XMLHttpRequest>('ozone-api-request-error', {
bubbles: true, detail: xmlhttp
}));

@@ -168,4 +168,4 @@ reject(xmlhttp);

xmlhttp.ontimeout = () =>{
this.eventTarget.dispatchEvent(new CustomEvent('ozone-api-request-timeout', {
bubbles: true, composed: true, detail: xmlhttp
this.eventTarget.dispatchEvent(new CustomEvent<XMLHttpRequest>('ozone-api-request-timeout', {
bubbles: true, detail: xmlhttp
}));

@@ -172,0 +172,0 @@ reject(xmlhttp);

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