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

maishu-chitu-service

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maishu-chitu-service - npm Package Compare versions

Comparing version 1.8.6 to 1.10.0

62

dist/index.es5.js
/*!
* ~
* maishu-chitu-service v1.8.6
* maishu-chitu-service v1.10.0
* https://github.com/ansiboy/services-sdk

@@ -187,5 +187,48 @@ *

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
Object.defineProperty(exports, "__esModule", {
value: true
});
var Errors =
/*#__PURE__*/
function () {
function Errors() {
_classCallCheck(this, Errors);
}
_createClass(Errors, [{
key: "argumentNull",
value: function argumentNull(argumentName) {
var error = new Error("Argument ".concat(argumentName, " cannt be null or emtpy."));
error.name = Errors.prototype.argumentNull.name;
return error;
}
}, {
key: "routeDataFieldNull",
value: function routeDataFieldNull(fieldName) {
var msg = "The ".concat(fieldName, " field of route data cannt be null.");
var error = new Error(msg);
error.name = Errors.prototype.routeDataFieldNull.name;
return error;
}
}, {
key: "argumentFieldNull",
value: function argumentFieldNull(fieldName, argumentName) {
var msg = "The ".concat(fieldName, " field of ").concat(argumentName, " cannt be null.");
var error = new Error(msg);
error.name = Errors.prototype.argumentFieldNull.name;
return error;
}
}]);
return Errors;
}();
exports.Errors = Errors;
exports.errors = {

@@ -254,2 +297,6 @@ serviceUrlCanntNull: function serviceUrlCanntNull(serviceName) {

exports.guid = utility_1.guid;
var errors_1 = __webpack_require__(/*! ./errors */ "./out-es5/errors.js");
exports.Errors = errors_1.Errors;
//# sourceMappingURL=index.js.map

@@ -277,2 +324,8 @@

var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {

@@ -296,5 +349,3 @@ function fulfilled(value) {

function step(result) {
result.done ? resolve(result.value) : new P(function (resolve) {
resolve(result.value);
}).then(fulfilled, rejected);
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}

@@ -538,2 +589,3 @@

exports.Service = Service;
Service.settings = {

@@ -558,4 +610,2 @@ ajaxTimeout: 30

exports.Service = Service;
function _ajax(url, options) {

@@ -562,0 +612,0 @@ return __awaiter(this, void 0, void 0,

/*!
* ~
* maishu-chitu-service v1.8.6
* maishu-chitu-service v1.10.0
* https://github.com/ansiboy/services-sdk

@@ -151,2 +151,22 @@ *

Object.defineProperty(exports, "__esModule", { value: true });
class Errors {
argumentNull(argumentName) {
let error = new Error(`Argument ${argumentName} cannt be null or emtpy.`);
error.name = Errors.prototype.argumentNull.name;
return error;
}
routeDataFieldNull(fieldName) {
let msg = `The ${fieldName} field of route data cannt be null.`;
let error = new Error(msg);
error.name = Errors.prototype.routeDataFieldNull.name;
return error;
}
argumentFieldNull(fieldName, argumentName) {
let msg = `The ${fieldName} field of ${argumentName} cannt be null.`;
let error = new Error(msg);
error.name = Errors.prototype.argumentFieldNull.name;
return error;
}
}
exports.Errors = Errors;
exports.errors = {

@@ -203,2 +223,4 @@ serviceUrlCanntNull(serviceName) {

exports.guid = utility_1.guid;
var errors_1 = __webpack_require__(/*! ./errors */ "./out/errors.js");
exports.Errors = errors_1.Errors;
//# sourceMappingURL=index.js.map

@@ -218,6 +240,7 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -359,2 +382,3 @@ });

}
exports.Service = Service;
Service.settings = {

@@ -376,3 +400,2 @@ ajaxTimeout: 30,

})();
exports.Service = Service;
function ajax(url, options) {

@@ -379,0 +402,0 @@ return __awaiter(this, void 0, void 0, function* () {

"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
Object.defineProperty(exports, "__esModule", {
value: true
});
var Errors =
/*#__PURE__*/
function () {
function Errors() {
_classCallCheck(this, Errors);
}
_createClass(Errors, [{
key: "argumentNull",
value: function argumentNull(argumentName) {
var error = new Error("Argument ".concat(argumentName, " cannt be null or emtpy."));
error.name = Errors.prototype.argumentNull.name;
return error;
}
}, {
key: "routeDataFieldNull",
value: function routeDataFieldNull(fieldName) {
var msg = "The ".concat(fieldName, " field of route data cannt be null.");
var error = new Error(msg);
error.name = Errors.prototype.routeDataFieldNull.name;
return error;
}
}, {
key: "argumentFieldNull",
value: function argumentFieldNull(fieldName, argumentName) {
var msg = "The ".concat(fieldName, " field of ").concat(argumentName, " cannt be null.");
var error = new Error(msg);
error.name = Errors.prototype.argumentFieldNull.name;
return error;
}
}]);
return Errors;
}();
exports.Errors = Errors;
exports.errors = {

@@ -7,0 +50,0 @@ serviceUrlCanntNull: function serviceUrlCanntNull(serviceName) {

@@ -25,2 +25,6 @@ "use strict";

exports.guid = utility_1.guid;
var errors_1 = require("./errors");
exports.Errors = errors_1.Errors;
//# sourceMappingURL=index.js.map

13

out-es5/service.js

@@ -10,2 +10,8 @@ "use strict";

var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {

@@ -29,5 +35,3 @@ function fulfilled(value) {

function step(result) {
result.done ? resolve(result.value) : new P(function (resolve) {
resolve(result.value);
}).then(fulfilled, rejected);
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}

@@ -271,2 +275,3 @@

exports.Service = Service;
Service.settings = {

@@ -291,4 +296,2 @@ ajaxTimeout: 30

exports.Service = Service;
function _ajax(url, options) {

@@ -295,0 +298,0 @@ return __awaiter(this, void 0, void 0,

@@ -0,1 +1,6 @@

export declare class Errors {
argumentNull(argumentName: string): Error;
routeDataFieldNull(fieldName: string): Error;
argumentFieldNull(fieldName: string, argumentName: string): Error;
}
export declare let errors: {

@@ -2,0 +7,0 @@ serviceUrlCanntNull(serviceName: string): Error;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Errors {
argumentNull(argumentName) {
let error = new Error(`Argument ${argumentName} cannt be null or emtpy.`);
error.name = Errors.prototype.argumentNull.name;
return error;
}
routeDataFieldNull(fieldName) {
let msg = `The ${fieldName} field of route data cannt be null.`;
let error = new Error(msg);
error.name = Errors.prototype.routeDataFieldNull.name;
return error;
}
argumentFieldNull(fieldName, argumentName) {
let msg = `The ${fieldName} field of ${argumentName} cannt be null.`;
let error = new Error(msg);
error.name = Errors.prototype.argumentFieldNull.name;
return error;
}
}
exports.Errors = Errors;
exports.errors = {

@@ -4,0 +24,0 @@ serviceUrlCanntNull(serviceName) {

@@ -5,1 +5,2 @@ export { Service, AjaxOptions, IService, ServiceConstructor } from './service';

export { guid } from "./utility";
export { Errors } from "./errors";

@@ -14,2 +14,4 @@ "use strict";

exports.guid = utility_1.guid;
var errors_1 = require("./errors");
exports.Errors = errors_1.Errors;
//# sourceMappingURL=index.js.map
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -143,2 +144,3 @@ });

}
exports.Service = Service;
Service.settings = {

@@ -160,3 +162,2 @@ ajaxTimeout: 30,

})();
exports.Service = Service;
function ajax(url, options) {

@@ -163,0 +164,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -13,3 +13,4 @@ export declare type ValueChangedCallback<T> = (args: T, sender: any) => void;

fire(value: T | null): void;
value: T | null;
get value(): T | null;
set value(value: T | null);
}

@@ -19,3 +20,4 @@ export declare class LocalValueStore<T> extends ValueStore<T> {

constructor(storageName: string);
value: T | null;
get value(): T | null;
set value(value: T | null);
private static loadValue;

@@ -27,3 +29,4 @@ private static saveValue;

constructor(storageName: string);
value: T | null;
get value(): T | null;
set value(value: T | null);
private static loadValue;

@@ -30,0 +33,0 @@ private static saveValue;

{
"_from": "maishu-chitu-service",
"_id": "maishu-chitu-service@1.7.0",
"_inBundle": false,
"_integrity": "sha512-FJ2JvKgWZ9ndxAplCDSW6wVSnD3EVDgdsoBDEYoge+dwGQXKc5C7FaUkhT1JwymyX/OFmOaiwWC7WKn+eEA/lw==",
"_location": "/maishu-chitu-service",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "maishu-chitu-service",
"name": "maishu-chitu-service",
"escapedName": "maishu-chitu-service",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/",
"/maishu-chitu",
"/maishu-chitu-react",
"/maishu-services-sdk"
],
"_resolved": "https://registry.npmjs.org/maishu-chitu-service/-/maishu-chitu-service-1.7.0.tgz",
"_shasum": "5718adae8c1140bc4ffdbaf5ceb1e60b3711fd30",
"_spec": "maishu-chitu-service",
"_where": "D:\\projects\\jueying-web",
"author": {

@@ -34,8 +7,5 @@ "name": "mai.shu",

},
"bundleDependencies": false,
"dependencies": {
"maishu-services-sdk": "^1.9.5",
"node-fetch": "^2.6.0"
},
"deprecated": false,
"devDependencies": {

@@ -58,3 +28,3 @@ "@babel/core": "^7.4.4",

"types": "./out/index.d.ts",
"version": "1.8.6"
"version": "1.10.0"
}

@@ -0,1 +1,21 @@

export class Errors {
argumentNull(argumentName: string) {
let error = new Error(`Argument ${argumentName} cannt be null or emtpy.`);
error.name = Errors.prototype.argumentNull.name;
return error;
}
routeDataFieldNull(fieldName: string): Error {
let msg = `The ${fieldName} field of route data cannt be null.`;
let error = new Error(msg);
error.name = Errors.prototype.routeDataFieldNull.name;
return error;
}
argumentFieldNull(fieldName: string, argumentName: string): Error {
let msg = `The ${fieldName} field of ${argumentName} cannt be null.`;
let error = new Error(msg);
error.name = Errors.prototype.argumentFieldNull.name;
return error;
}
}
export let errors = {

@@ -2,0 +22,0 @@ serviceUrlCanntNull(serviceName: string) {

@@ -1,4 +0,5 @@

export { Service, AjaxOptions, IService, ServiceConstructor } from './service'
export { Callback, Callback0, Callback1, Callback2, Callbacks } from './callback'
export { ValueStore, LocalValueStore, CookieValueStore } from './value-store'
export { guid } from "./utility"
export { Service, AjaxOptions, IService, ServiceConstructor } from './service';
export { Callback, Callback0, Callback1, Callback2, Callbacks } from './callback';
export { ValueStore, LocalValueStore, CookieValueStore } from './value-store';
export { guid } from "./utility";
export { Errors } from "./errors";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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