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

@lokalise/node-core

Package Overview
Dependencies
Maintainers
10
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lokalise/node-core - npm Package Compare versions

Comparing version 9.17.1 to 9.18.0

4

dist/index.d.ts

@@ -5,3 +5,3 @@ export { sendPut, sendPutBinary, sendDelete, sendPatch, sendGet, sendPost, sendPostBinary, httpClient, buildClient, type RequestOptions, type Response, type HttpRequestContext, type ResponseSchema, JSON_HEADERS, } from './src/http/httpClient';

export { ResponseStatusError } from './src/errors/ResponseStatusError';
export { isResponseStatusError } from './src/errors/errorTypeGuards';
export { isResponseStatusError, isEntityGoneError } from './src/errors/errorTypeGuards';
export { ConfigScope } from './src/config/ConfigScope';

@@ -23,4 +23,4 @@ export { ensureClosingSlashTransformer } from './src/config/configTransformers';

export { type FreeformRecord } from './src/common/commonTypes';
export { RequestValidationError, AccessDeniedError, EntityNotFoundError, type ValidationError, type CommonErrorParams, type OptionalMessageErrorParams, AuthFailedError, } from './src/errors/publicErrors';
export { type ValidationError, type CommonErrorParams, type OptionalMessageErrorParams, RequestValidationError, AccessDeniedError, EntityNotFoundError, EntityGoneError, AuthFailedError, } from './src/errors/publicErrors';
export { waitAndRetry } from './src/utils/waitUtils';
export * from './src/observability/observabilityTypes';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccessDeniedError = exports.RequestValidationError = exports.resolveGlobalErrorLogObject = exports.globalLogger = exports.executeSettleAllAndHandleGlobalErrors = exports.executeAndHandleGlobalErrors = exports.executeAsyncAndHandleGlobalErrors = exports.resolveMonorepoLoggerConfiguration = exports.resolveLoggerConfiguration = exports.hasMessage = exports.isPublicNonRecoverableError = exports.isObject = exports.isStandardizedError = exports.isInternalError = exports.isError = exports.deepClone = exports.convertDateFieldsToIsoString = exports.isEmptyObject = exports.copyWithoutEmpty = exports.copyWithoutUndefined = exports.pickWithoutUndefined = exports.pick = exports.groupByUnique = exports.groupByPath = exports.groupBy = exports.removeNullish = exports.removeFalsy = exports.callChunked = exports.chunk = exports.isFailure = exports.isSuccess = exports.failure = exports.success = exports.createRangeValidator = exports.ensureClosingSlashTransformer = exports.ConfigScope = exports.isResponseStatusError = exports.ResponseStatusError = exports.InternalError = exports.PublicNonRecoverableError = exports.JSON_HEADERS = exports.buildClient = exports.httpClient = exports.sendPostBinary = exports.sendPost = exports.sendGet = exports.sendPatch = exports.sendDelete = exports.sendPutBinary = exports.sendPut = void 0;
exports.waitAndRetry = exports.AuthFailedError = exports.EntityNotFoundError = void 0;
exports.RequestValidationError = exports.resolveGlobalErrorLogObject = exports.globalLogger = exports.executeSettleAllAndHandleGlobalErrors = exports.executeAndHandleGlobalErrors = exports.executeAsyncAndHandleGlobalErrors = exports.resolveMonorepoLoggerConfiguration = exports.resolveLoggerConfiguration = exports.hasMessage = exports.isPublicNonRecoverableError = exports.isObject = exports.isStandardizedError = exports.isInternalError = exports.isError = exports.deepClone = exports.convertDateFieldsToIsoString = exports.isEmptyObject = exports.copyWithoutEmpty = exports.copyWithoutUndefined = exports.pickWithoutUndefined = exports.pick = exports.groupByUnique = exports.groupByPath = exports.groupBy = exports.removeNullish = exports.removeFalsy = exports.callChunked = exports.chunk = exports.isFailure = exports.isSuccess = exports.failure = exports.success = exports.createRangeValidator = exports.ensureClosingSlashTransformer = exports.ConfigScope = exports.isEntityGoneError = exports.isResponseStatusError = exports.ResponseStatusError = exports.InternalError = exports.PublicNonRecoverableError = exports.JSON_HEADERS = exports.buildClient = exports.httpClient = exports.sendPostBinary = exports.sendPost = exports.sendGet = exports.sendPatch = exports.sendDelete = exports.sendPutBinary = exports.sendPut = void 0;
exports.waitAndRetry = exports.AuthFailedError = exports.EntityGoneError = exports.EntityNotFoundError = exports.AccessDeniedError = void 0;
const tslib_1 = require("tslib");

@@ -25,2 +25,3 @@ var httpClient_1 = require("./src/http/httpClient");

Object.defineProperty(exports, "isResponseStatusError", { enumerable: true, get: function () { return errorTypeGuards_1.isResponseStatusError; } });
Object.defineProperty(exports, "isEntityGoneError", { enumerable: true, get: function () { return errorTypeGuards_1.isEntityGoneError; } });
var ConfigScope_1 = require("./src/config/ConfigScope");

@@ -73,2 +74,3 @@ Object.defineProperty(exports, "ConfigScope", { enumerable: true, get: function () { return ConfigScope_1.ConfigScope; } });

Object.defineProperty(exports, "EntityNotFoundError", { enumerable: true, get: function () { return publicErrors_1.EntityNotFoundError; } });
Object.defineProperty(exports, "EntityGoneError", { enumerable: true, get: function () { return publicErrors_1.EntityGoneError; } });
Object.defineProperty(exports, "AuthFailedError", { enumerable: true, get: function () { return publicErrors_1.AuthFailedError; } });

@@ -75,0 +77,0 @@ var waitUtils_1 = require("./src/utils/waitUtils");

import type { ResponseStatusError } from './ResponseStatusError';
import type { EntityGoneError } from './publicErrors';
export declare function isResponseStatusError(entity: unknown): entity is ResponseStatusError;
export declare function isEntityGoneError(entity: unknown): entity is EntityGoneError;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isResponseStatusError = void 0;
exports.isEntityGoneError = exports.isResponseStatusError = void 0;
const typeUtils_1 = require("../utils/typeUtils");
function isResponseStatusError(entity) {

@@ -8,2 +9,6 @@ return 'isResponseStatusError' in entity;

exports.isResponseStatusError = isResponseStatusError;
function isEntityGoneError(entity) {
return (0, typeUtils_1.isPublicNonRecoverableError)(entity) && entity.httpStatusCode === 410;
}
exports.isEntityGoneError = isEntityGoneError;
//# sourceMappingURL=errorTypeGuards.js.map

@@ -22,4 +22,7 @@ import type { FreeformRecord } from '../common/commonTypes';

}
export declare class EntityGoneError extends PublicNonRecoverableError {
constructor(params: CommonErrorParams);
}
export declare class AuthFailedError extends PublicNonRecoverableError {
constructor(params?: OptionalMessageErrorParams);
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthFailedError = exports.EntityNotFoundError = exports.AccessDeniedError = exports.RequestValidationError = void 0;
exports.AuthFailedError = exports.EntityGoneError = exports.EntityNotFoundError = exports.AccessDeniedError = exports.RequestValidationError = void 0;
const node_http2_1 = require("node:http2");

@@ -43,2 +43,13 @@ const PublicNonRecoverableError_1 = require("./PublicNonRecoverableError");

exports.EntityNotFoundError = EntityNotFoundError;
class EntityGoneError extends PublicNonRecoverableError_1.PublicNonRecoverableError {
constructor(params) {
super({
message: params.message,
errorCode: 'ENTITY_GONE',
httpStatusCode: 410,
details: params.details,
});
}
}
exports.EntityGoneError = EntityGoneError;
class AuthFailedError extends PublicNonRecoverableError_1.PublicNonRecoverableError {

@@ -45,0 +56,0 @@ constructor(params = {}) {

{
"name": "@lokalise/node-core",
"version": "9.17.1",
"version": "9.18.0",
"author": {

@@ -5,0 +5,0 @@ "name": "Lokalise",

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