@notifi-network/notifi-axios-adapter
Advanced tools
Comparing version 0.0.4-alpha.24 to 0.0.4-alpha.25
@@ -5,3 +5,4 @@ export default class GqlError extends Error { | ||
constructor(operationName: string, errors: ReadonlyArray<unknown>); | ||
getErrorMessages(): ReadonlyArray<string>; | ||
} | ||
//# sourceMappingURL=GqlError.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const hasKey = (obj, prop) => { | ||
return (typeof obj === 'object' && | ||
obj !== null && | ||
Object.prototype.hasOwnProperty.call(obj, prop)); | ||
}; | ||
const packageErrors = (errors) => { | ||
const messages = []; | ||
errors.forEach((error) => { | ||
if (hasKey(error, 'message') && typeof error.message === 'string') { | ||
messages.push(error.message); | ||
} | ||
}); | ||
return messages; | ||
}; | ||
class GqlError extends Error { | ||
@@ -9,4 +23,7 @@ constructor(operationName, errors) { | ||
} | ||
getErrorMessages() { | ||
return packageErrors(this.errors); | ||
} | ||
} | ||
exports.default = GqlError; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR3FsRXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvR3FsRXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxNQUFxQixRQUFTLFNBQVEsS0FBSztJQUN6QyxZQUNTLGFBQXFCLEVBQ3JCLE1BQThCO1FBRXJDLEtBQUssQ0FBQyw4QkFBOEIsYUFBYSxFQUFFLENBQUMsQ0FBQztRQUg5QyxrQkFBYSxHQUFiLGFBQWEsQ0FBUTtRQUNyQixXQUFNLEdBQU4sTUFBTSxDQUF3QjtJQUd2QyxDQUFDO0NBQ0Y7QUFQRCwyQkFPQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR3FsRXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvR3FsRXJyb3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FDRjtBQVhELDJCQVdDIn0= |
@@ -1,3 +0,4 @@ | ||
export * from './GqlError'; | ||
import GqlError from './GqlError'; | ||
export * from './NotifiAxiosService'; | ||
export { GqlError }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -12,5 +12,10 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./GqlError"), exports); | ||
exports.GqlError = void 0; | ||
const GqlError_1 = __importDefault(require("./GqlError")); | ||
exports.GqlError = GqlError_1.default; | ||
__exportStar(require("./NotifiAxiosService"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsNkNBQTJCO0FBQzNCLHVEQUFxQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDBEQUFrQztBQUd6QixtQkFIRixrQkFBUSxDQUdFO0FBRGpCLHVEQUFxQyJ9 |
{ | ||
"name": "@notifi-network/notifi-axios-adapter", | ||
"version": "0.0.4-alpha.24+746ccf0", | ||
"version": "0.0.4-alpha.25+f83333c", | ||
"description": "The axios adapter for notifi functionality", | ||
@@ -31,3 +31,3 @@ "author": "Juni Kim <73hKrn@gmail.com>", | ||
"devDependencies": { | ||
"@notifi-network/notifi-core": "^0.0.4-alpha.24+746ccf0", | ||
"@notifi-network/notifi-core": "^0.0.3", | ||
"@typescript-eslint/eslint-plugin": "^5.12.0", | ||
@@ -44,3 +44,3 @@ "@typescript-eslint/parser": "^5.12.0", | ||
}, | ||
"gitHead": "746ccf02069f53a3647e6be20b7e4791f96b849c" | ||
"gitHead": "f83333ce8b9cf9caecc50fa026b9416f15232038" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
73528
832