Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
///
//build bundle with: jspm bundle src/deps deps.lib.js
import * as React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { connect } from 'react-redux';
import * as ES6 from 'es6-shim';
import 'jquery';
import 'ss-utils';
var a = ES6.Object.assign({});
var store = createStore((state, action) => state, {});
class Deps extends React.Component {
render() {
return <div>Hello, World!</div>;
}
}
var DepsRedux = connect((state) => ({}), (dispatch) => ({}))(Deps);
const ignore = () => render(, document.body);
///
//build bundle with: jspm bundle src/deps deps.lib.js
import * as React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { connect } from 'react-redux';
import { Router, Route, Link } from 'react-router';
import * as ES6 from 'es6-shim';
import 'jquery';
import 'ss-utils';
var a = ES6.Object.assign({});
var store = createStore((state, action) => state, {});
class Deps extends React.Component {
render() {
return <div>Hello, World!</div>;
}
}
var DepsRedux = connect((state) => ({}), (dispatch) => ({}))(Deps);
const ignore = () => render(, document.body);
var ignoreRoute = ();
execute(parameters?: IEndpointExecutionParameters) {
var request = new XMLHttpRequest(),
url = this.url,
data = "",
endpoint = this;
return new Promise((resolve, reject) => {
if (parameters) {
if (parameters.arguments) {
url = this.url + "?" + this.toQueryString(parameters.arguments);
}
request.onload = function () {
if (this.status >= 200 && this.status < 400) {
if (parameters.success) parameters.success(endpoint.responseParser(this.response), this.status);
resolve(this.response);
} else {
if (parameters.error) parameters.error(endpoint.errorParser(this.response), this.status);
reject(this.response);
}
};
if (parameters.data) {
data = this.body.converter(parameters.data);
}
public Write(): Promise {
let promise = new Promise((resolve, reject) => {
fs.writeFile(this.outputPath, JSON.stringify(this.parser.Parse(this.gameMaster), null, 4), err => {
if (err) {
reject(err);
}
resolve();
});
});
return promise;
};
}