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

@glimpse/glimpse-common

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimpse/glimpse-common - npm Package Compare versions

Comparing version 0.20.9 to 0.21.5

maps/src/common/RequestHelper.js.map

2

package.json
{
"name": "@glimpse/glimpse-common",
"version": "0.20.9",
"version": "0.21.5",
"license": "See license in license.md",

@@ -5,0 +5,0 @@ "main": "./release/src/index.js",

@@ -30,2 +30,3 @@ /**

AuthorizationInvocationFailed = 5001,
VersionCheckError = 5002,
}

@@ -25,1 +25,2 @@ import { ErrorCode } from './ErrorCodes';

export declare function createAsyncTrackWarning(msg: string): IGlimpseError;
export declare function createVersionCheckError(msg: string): IGlimpseError;
export { ConfigSettings } from './configuration/ConfigSettings';
export { IConfigSettings } from './configuration/IConfigSettings';
export { TelemetryService, ITelemetryService, GlimpseComponentType, IProperties, ICommonProperties, IMeasurements } from './telemetry/TelemetryService';
export { RequestHelper } from './common/RequestHelper';
export { getTelemetryConfig, ITelemetryConfig } from './telemetry/TelemetryConfig';

@@ -13,5 +14,5 @@ export { getTelemetryAppInstanceData, ITelemetryAppInstanceData } from './telemetry/TelemetryAppInstanceData';

export { ErrorCode, getSlugForErrorCode, getUrlForErrorCode } from './errors/ErrorCodes';
export { createNoContextError, createPackageRequiredBeforeInitError, createUnexpectedContextError, createUnsupportedPackageRequiredError, createHttpClientError, createHttpServerError, createAuthorizationInvocationFailedError, createStackHelperUnsupportedSourceMapUriError, createStackHelperUnsupportedStackFrameFormat, createHttpServerEarlyRequestTerminationError, createAsyncTrackError, createAsyncTrackWarning } from './errors/Errors';
export { createNoContextError, createPackageRequiredBeforeInitError, createUnexpectedContextError, createUnsupportedPackageRequiredError, createHttpClientError, createHttpServerError, createAuthorizationInvocationFailedError, createStackHelperUnsupportedSourceMapUriError, createStackHelperUnsupportedStackFrameFormat, createHttpServerEarlyRequestTerminationError, createAsyncTrackError, createAsyncTrackWarning, createVersionCheckError } from './errors/Errors';
export { printBannerGreeting } from './logging/Banner';
export { FileHelper } from './common/FileHelper';
export { IPackageHelper, PackageHelper } from './common/PackageHelper';
export declare class TelemetryEvents {
static NODE_AGENT_REQUIRED: string;
static NODE_AGENT_PRE_INIT: string;
static NODE_AGENT_INIT: string;
static NODE_SERVER_REQUIRED: string;
static NODE_SERVER_PRE_INIT: string;
static NODE_SERVER_INIT: string;
static NODE_SERVER_HUD_RESOURCE_ACCESSED: string;
static ERROR: string;
static DEPENDENCIES: string;
}

@@ -47,4 +47,5 @@ 'use strict';

ErrorCode[ErrorCode["AuthorizationInvocationFailed"] = 5001] = "AuthorizationInvocationFailed";
ErrorCode[ErrorCode["VersionCheckError"] = 5002] = "VersionCheckError";
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
//# sourceMappingURL=../../../maps/src/errors/ErrorCodes.js.map

@@ -17,3 +17,3 @@ 'use strict';

return {
severity: IGlimpseError_1.GlimpseErrorSeverity.Error,
severity: IGlimpseError_1.GlimpseErrorSeverity.Warning,
errorClass: IGlimpseError_1.GlimpseErrorClass.Internal,

@@ -126,3 +126,12 @@ errorCode: ErrorCodes_1.ErrorCode.UnexpectedContextValue,

exports.createAsyncTrackWarning = createAsyncTrackWarning;
function createVersionCheckError(msg) {
return {
severity: IGlimpseError_1.GlimpseErrorSeverity.Error,
errorClass: IGlimpseError_1.GlimpseErrorClass.Internal,
errorCode: ErrorCodes_1.ErrorCode.VersionCheckError,
message: "Version Check error reported: " + msg
};
}
exports.createVersionCheckError = createVersionCheckError;
//# sourceMappingURL=../../../maps/src/errors/Errors.js.map
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var util = require("util");
var IGlimpseError_1 = require("./IGlimpseError");
var TelemetryEvents_1 = require("../telemetry/TelemetryEvents");

@@ -25,4 +26,4 @@ var ErrorCodes_1 = require("./ErrorCodes");

stack: new Error().stack,
severity: '' + error.severity,
errorClass: '' + error.errorClass,
severity: IGlimpseError_1.GlimpseErrorSeverity[error.severity],
errorClass: IGlimpseError_1.GlimpseErrorClass[error.errorClass],
errorCode: '' + error.errorCode,

@@ -29,0 +30,0 @@ errorSlug: ErrorCodes_1.getSlugForErrorCode(error.errorCode),

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

exports.GlimpseComponentType = TelemetryService_1.GlimpseComponentType;
var RequestHelper_1 = require("./common/RequestHelper");
exports.RequestHelper = RequestHelper_1.RequestHelper;
var TelemetryConfig_1 = require("./telemetry/TelemetryConfig");

@@ -43,2 +45,3 @@ exports.getTelemetryConfig = TelemetryConfig_1.getTelemetryConfig;

exports.createAsyncTrackWarning = Errors_1.createAsyncTrackWarning;
exports.createVersionCheckError = Errors_1.createVersionCheckError;
// logging

@@ -45,0 +48,0 @@ var Banner_1 = require("./logging/Banner");

@@ -8,4 +8,9 @@ "use strict";

}());
TelemetryEvents.NODE_AGENT_REQUIRED = 'NodeAgentRequired';
TelemetryEvents.NODE_AGENT_PRE_INIT = 'NodeAgentPreInit';
TelemetryEvents.NODE_AGENT_INIT = 'NodeAgentInit';
TelemetryEvents.NODE_SERVER_REQUIRED = 'NodeServerRequired';
TelemetryEvents.NODE_SERVER_PRE_INIT = 'NodeServerPreInit';
TelemetryEvents.NODE_SERVER_INIT = 'NodeServerInit';
TelemetryEvents.NODE_SERVER_HUD_RESOURCE_ACCESSED = 'NodeServerHudResourceAccessed';
TelemetryEvents.ERROR = 'Error';

@@ -12,0 +17,0 @@ TelemetryEvents.DEPENDENCIES = 'Dependencies';

@@ -46,3 +46,4 @@ 'use strict';

GlimpseServerErrorBase = 5000,
AuthorizationInvocationFailed = 5001
AuthorizationInvocationFailed = 5001,
VersionCheckError = 5002
}

@@ -18,3 +18,3 @@ 'use strict';

return {
severity: GlimpseErrorSeverity.Error,
severity: GlimpseErrorSeverity.Warning,
errorClass: GlimpseErrorClass.Internal,

@@ -127,1 +127,10 @@ errorCode: ErrorCode.UnexpectedContextValue,

}
export function createVersionCheckError(msg: string): IGlimpseError {
return {
severity: GlimpseErrorSeverity.Error,
errorClass: GlimpseErrorClass.Internal,
errorCode: ErrorCode.VersionCheckError,
message: `Version Check error reported: ${msg}`
};
}

@@ -6,3 +6,3 @@

import { IErrorReportingService } from './IErrorReportingService';
import { IGlimpseError } from './IGlimpseError';
import { IGlimpseError, GlimpseErrorClass, GlimpseErrorSeverity } from './IGlimpseError';
import { ITelemetryService, IProperties, IMeasurements } from '../telemetry/TelemetryService';

@@ -34,4 +34,4 @@ import { TelemetryEvents } from '../telemetry/TelemetryEvents';

stack: new Error().stack,
severity: '' + error.severity,
errorClass: '' + error.errorClass,
severity: GlimpseErrorSeverity[error.severity],
errorClass: GlimpseErrorClass[error.errorClass],
errorCode: '' + error.errorCode,

@@ -38,0 +38,0 @@ errorSlug: getSlugForErrorCode(error.errorCode),

@@ -8,2 +8,3 @@

export { TelemetryService, ITelemetryService, GlimpseComponentType, IProperties, ICommonProperties, IMeasurements } from './telemetry/TelemetryService';
export { RequestHelper } from './common/RequestHelper';
export { getTelemetryConfig, ITelemetryConfig } from './telemetry/TelemetryConfig';

@@ -32,3 +33,4 @@ export { getTelemetryAppInstanceData, ITelemetryAppInstanceData } from './telemetry/TelemetryAppInstanceData';

createAsyncTrackError,
createAsyncTrackWarning
createAsyncTrackWarning,
createVersionCheckError
} from './errors/Errors';

@@ -35,0 +37,0 @@

@@ -80,4 +80,4 @@ import crypto = require('crypto');

const machineId = crypto.createHash('sha256')
.update(data, 'utf8')
.digest('hex');
.update(data, 'utf8')
.digest('hex');
return machineId;

@@ -84,0 +84,0 @@ }

export class TelemetryEvents {
public static NODE_AGENT_REQUIRED = 'NodeAgentRequired';
public static NODE_AGENT_PRE_INIT = 'NodeAgentPreInit';
public static NODE_AGENT_INIT = 'NodeAgentInit';
public static NODE_SERVER_REQUIRED = 'NodeServerRequired';
public static NODE_SERVER_PRE_INIT = 'NodeServerPreInit';
public static NODE_SERVER_INIT = 'NodeServerInit';
public static NODE_SERVER_HUD_RESOURCE_ACCESSED = 'NodeServerHudResourceAccessed';
public static ERROR = 'Error';
public static DEPENDENCIES = 'Dependencies';
}

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