Socket
Socket
Sign inDemoInstall

@microsoft/sp-diagnostics

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/sp-diagnostics - npm Package Compare versions

Comparing version 1.18.0-beta.1 to 1.18.0-beta.2

dist/sp-diagnostics_none_9cf11f5cc818ebac1a6e.js

2

dist/78359e4b-07c2-43c6-8d0b-d060b4d577e8.manifest.json

@@ -15,3 +15,3 @@ {

"type": "path",
"path": "sp-diagnostics_none_110fd0a3dde78fb97cdb.js"
"path": "sp-diagnostics_none_9cf11f5cc818ebac1a6e.js"
},

@@ -18,0 +18,0 @@ "tslib": {

@@ -9,4 +9,4 @@ /**

import { ServiceKey } from '@microsoft/sp-core-library';
import { ServiceScope } from '@microsoft/sp-core-library';
import { _VetoValues } from '@microsoft/sp-core-library';
import type { ServiceScope } from '@microsoft/sp-core-library';
import type { _VetoValues } from '@microsoft/sp-core-library';

@@ -13,0 +13,0 @@ /* Excluded from this release type: _AutoAlertableMonitorType */

@@ -9,4 +9,4 @@ /**

import { ServiceKey } from '@microsoft/sp-core-library';
import { ServiceScope } from '@microsoft/sp-core-library';
import { _VetoValues } from '@microsoft/sp-core-library';
import type { ServiceScope } from '@microsoft/sp-core-library';
import type { _VetoValues } from '@microsoft/sp-core-library';

@@ -13,0 +13,0 @@ /* Excluded from this release type: _AutoAlertableMonitorType */

@@ -9,4 +9,4 @@ /**

import { ServiceKey } from '@microsoft/sp-core-library';
import { ServiceScope } from '@microsoft/sp-core-library';
import { _VetoValues } from '@microsoft/sp-core-library';
import type { ServiceScope } from '@microsoft/sp-core-library';
import type { _VetoValues } from '@microsoft/sp-core-library';

@@ -13,0 +13,0 @@ /* Excluded from this release type: _AutoAlertableMonitorType */

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.35.1"
"packageVersion": "7.36.0"
}
]
}

@@ -13,2 +13,3 @@ "use strict";

DefaultEngagementHandler.prototype.logData = function (data) {
// eslint-disable-next-line no-console
console.log("TagName: ".concat(data.name, ", Action Name: ").concat(data.extraData));

@@ -15,0 +16,0 @@ };

@@ -13,2 +13,3 @@ "use strict";

DefaultEngagementImplementation.prototype.logData = function (data) {
// eslint-disable-next-line no-console
console.log(data.name, data.extraData);

@@ -15,0 +16,0 @@ };

"use strict";
/**
* @copyright Microsoft Corporation.All rights reserved.
* @file EngagementLogger.ts
* EngagementLogger logger
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -8,0 +3,0 @@ var tslib_1 = require("tslib");

"use strict";
/**
* @file IEngagementHandler.ts
* @copyright (c) Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IEngagementHandler.js.map
"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -118,2 +115,3 @@ /**

catch (e) {
// eslint-disable-next-line no-console
console.error('failed to process execution entry:' + e.toString());

@@ -130,2 +128,3 @@ }

catch (e) {
// eslint-disable-next-line no-console
console.error('failed to process execution entry:' + e.toString());

@@ -132,0 +131,0 @@ }

"use strict";
/**
* @Copyright (c) Microsoft Corporation. All rights reserved.
* @file ILogEntry.ts
* ILogEntry interface
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ILogEntry.js.map
"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -19,3 +16,4 @@ var tslib_1 = require("tslib");

if (DEBUG && !DEPRECATED_UNIT_TEST) {
console.log(event.toString()); // tslint:disable-line:no-console
// eslint-disable-next-line no-console
console.log(event.toString());
}

@@ -26,3 +24,4 @@ };

if (DEBUG && !DEPRECATED_UNIT_TEST) {
console.info(event.toString()); // tslint:disable-line:no-console
// eslint-disable-next-line no-console
console.info(event.toString());
}

@@ -33,3 +32,4 @@ };

if (DEBUG && !DEPRECATED_UNIT_TEST) {
console.warn(event.toString()); // tslint:disable-line:no-console
// eslint-disable-next-line no-console
console.warn(event.toString());
}

@@ -40,3 +40,4 @@ };

if (DEBUG && !DEPRECATED_UNIT_TEST) {
console.error(event.toString()); // tslint:disable-line:no-console
// eslint-disable-next-line no-console
console.error(event.toString());
}

@@ -43,0 +44,0 @@ };

@@ -45,2 +45,3 @@ "use strict";

catch (e) {
// eslint-disable-next-line no-console
console.log('Error happens in toString():' + e);

@@ -47,0 +48,0 @@ }

"use strict";
/**
* @file LogFeature.ts
* @Copyright (c) Microsoft Corporation. All rights reserved.
* Used for logging so you can filter logs by features.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,3 +9,2 @@ /**

}
/* tslint:disable:variable-name */
LogFeature.None = 'None';

@@ -17,0 +11,0 @@ return LogFeature;

"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -6,0 +3,0 @@ exports.LogLevel = void 0;

"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -6,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
var CircularBuffer_1 = tslib_1.__importDefault(require("./CircularBuffer"));

@@ -104,2 +101,3 @@ /**

catch (e) {
// eslint-disable-next-line no-console
console.error('failed to handle event:' + e.toString());

@@ -118,2 +116,3 @@ }

catch (e) {
// eslint-disable-next-line no-console
console.error('failed to handle event:' + e.toString());

@@ -120,0 +119,0 @@ }

@@ -12,3 +12,3 @@ "use strict";

*/
// tslint:disable-next-line:typedef variable-name
// eslint-disable-next-line @typescript-eslint/typedef
exports.AutoAlertableMonitorType = {

@@ -57,5 +57,5 @@ /**

*/
AutoAlertableQosMonitor.prototype.writeSuccess = function (extraData // tslint:disable-line:no-any
) {
_super.prototype.writeSuccess.call(this, this.getExtraDataWithAutoAlertableFields(extraData));
// eslint-disable-next-line @typescript-eslint/no-explicit-any
AutoAlertableQosMonitor.prototype.writeSuccess = function (extraData) {
_super.prototype.writeSuccess.call(this, this._getExtraDataWithAutoAlertableFields(extraData));
};

@@ -67,6 +67,7 @@ /**

*/
AutoAlertableQosMonitor.prototype.writeUnexpectedFailure = function (tagNameSuffix, ex, extraData // tslint:disable-line:no-any
) {
AutoAlertableQosMonitor.prototype.writeUnexpectedFailure = function (tagNameSuffix, ex,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraData) {
if (tagNameSuffix === void 0) { tagNameSuffix = 'DefaultUnexpected'; }
_super.prototype.writeUnexpectedFailure.call(this, tagNameSuffix, ex, this.getExtraDataWithAutoAlertableFields(extraData));
_super.prototype.writeUnexpectedFailure.call(this, tagNameSuffix, ex, this._getExtraDataWithAutoAlertableFields(extraData));
};

@@ -78,6 +79,7 @@ /*

*/
AutoAlertableQosMonitor.prototype.writeExpectedFailure = function (tagNameSuffix, ex, extraData // tslint:disable-line:no-any
) {
AutoAlertableQosMonitor.prototype.writeExpectedFailure = function (tagNameSuffix, ex,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraData) {
if (tagNameSuffix === void 0) { tagNameSuffix = 'DefaultExpected'; }
_super.prototype.writeExpectedFailure.call(this, tagNameSuffix, ex, this.getExtraDataWithAutoAlertableFields(extraData));
_super.prototype.writeExpectedFailure.call(this, tagNameSuffix, ex, this._getExtraDataWithAutoAlertableFields(extraData));
};

@@ -88,6 +90,6 @@ /**

*/
AutoAlertableQosMonitor.prototype.getExtraDataWithAutoAlertableFields = function (extraData // tslint:disable-line:no-any
// tslint:disable-next-line:no-any
) {
var returnedExtraData = extraData !== null && extraData !== void 0 ? extraData : {}; // tslint:disable-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
AutoAlertableQosMonitor.prototype._getExtraDataWithAutoAlertableFields = function (extraData) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
var returnedExtraData = extraData !== null && extraData !== void 0 ? extraData : {};
returnedExtraData.autoAlertableMonitorType = exports.AutoAlertableMonitorType[this._autoAlertableMonitorType];

@@ -94,0 +96,0 @@ return returnedExtraData;

"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IQosStartEvent.js.map
"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -17,3 +14,3 @@ var tslib_1 = require("tslib");

this._shouldProcessInRealTime = false;
this.initializeLogger();
this._initializeLogger();
}

@@ -57,3 +54,3 @@ Object.defineProperty(QosLogger, "instance", {

if (this._qosLogger) {
this._qosEvents.set(key, new this._qosLogger(event)); /* tslint:disable-line:no-any */
this._qosEvents.set(key, new this._qosLogger(event));
}

@@ -64,7 +61,7 @@ };

if (qosEvent) {
qosEvent.end(event); /* tslint:disable-line:no-any */
qosEvent.end(event);
this._qosEvents.delete(key);
}
};
QosLogger.prototype.initializeLogger = function () {
QosLogger.prototype._initializeLogger = function () {
var _this = this;

@@ -71,0 +68,0 @@ var startHandler = (function (key, e) {

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

var Killswitches_1 = require("../../common/Killswitches");
var LOG_SOURCE = {
id: 'QosMonitor'
};
var QOS_MONISTOR_HAS_ENDED_ERROR_STRING = "QoS monitor '{0}' has ended with '{1}' already. Ignoring '{2}' tag.";
/**

@@ -18,3 +22,3 @@ * Qos logger

*
* @preapproved @internal
* @internal
*/

@@ -109,3 +113,3 @@ var QosMonitor = /** @class */ (function () {

*/
// tslint:disable-next-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
QosMonitor.prototype.writeSuccess = function (extraData) {

@@ -119,4 +123,5 @@ this._writeQosEnd(QosResultType_1.QosResultType.Success, undefined, undefined, extraData);

*/
QosMonitor.prototype.writeUnexpectedFailure = function (tagNameSuffix, ex, extraData // tslint:disable-line:no-any
) {
QosMonitor.prototype.writeUnexpectedFailure = function (tagNameSuffix, ex,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraData) {
if (tagNameSuffix === void 0) { tagNameSuffix = 'DefaultUnexpected'; }

@@ -130,9 +135,11 @@ this._writeQosEnd(QosResultType_1.QosResultType.Failure, tagNameSuffix, ex, extraData);

*/
QosMonitor.prototype.writeExpectedFailure = function (tagNameSuffix, ex, extraData // tslint:disable-line:no-any
) {
QosMonitor.prototype.writeExpectedFailure = function (tagNameSuffix, ex,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraData) {
if (tagNameSuffix === void 0) { tagNameSuffix = 'DefaultExpected'; }
this._writeQosEnd(QosResultType_1.QosResultType.ExpectedFailure, tagNameSuffix, ex, extraData);
};
QosMonitor.prototype._writeQosEnd = function (resultType, tagNameSuffix, ex, extraData // tslint:disable-line:no-any
) {
QosMonitor.prototype._writeQosEnd = function (resultType, tagNameSuffix, ex,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraData) {
if (this._shouldSkip(resultType)) {

@@ -153,4 +160,4 @@ return;

};
QosMonitor.prototype._ensureCorrelationId = function (resultType, extraData // tslint:disable-line:no-any
) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
QosMonitor.prototype._ensureCorrelationId = function (resultType, extraData) {
var _this = this;

@@ -226,12 +233,12 @@ if (extraData) {

QosMonitor.prototype._isDebugSession = function () {
return !!sessionStorage.getItem('spfx-debug');
return !!sp_core_library_1._BrowserUtilities.safelyAccessSessionStorage('spfx-debug');
};
QosMonitor.prototype._shouldSkip = function (result) {
if (this._hasEnded && this._endResult !== undefined) {
var message = sp_core_library_2.Text.format(QosMonitor.qosMonitorHasEndedErrorString, this.name, this._qosResultTypeValue[this._endResult], this._qosResultTypeValue[result]);
var message = sp_core_library_2.Text.format(QOS_MONISTOR_HAS_ENDED_ERROR_STRING, this.name, this._qosResultTypeValue[this._endResult], this._qosResultTypeValue[result]);
if (this._endResult !== result) {
TraceLogger_1.default.logError(QosMonitor.logSource, new Error(message));
TraceLogger_1.default.logError(LOG_SOURCE, new Error(message));
}
if (DEBUG) {
TraceLogger_1.default.logVerbose(QosMonitor.logSource, message, 'skipEnd');
TraceLogger_1.default.logVerbose(LOG_SOURCE, message, 'skipEnd');
}

@@ -249,5 +256,3 @@ return true;

name: this.name,
isIntentional:
// tslint:disable-next-line:no-string-literal
!!(this.extraData || {})['isIntentional'],
isIntentional: !!(this.extraData || {}).isIntentional,
extraData: this.extraData || {}

@@ -259,3 +264,3 @@ });

// Record Qos name in extra data 'qosName'
// tslint:disable-next-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
var engagementData = {

@@ -265,11 +270,8 @@ name: 'Spfx.Qos.ToEngagement',

};
// tslint:disable-next-line:no-string-literal
engagementData.extraData['qosName'] = this.name;
engagementData.extraData.qosName = this.name;
if (this.resultType) {
// tslint:disable-next-line:no-string-literal
engagementData.extraData['qosResultType'] = this._qosResultTypeValue[this.resultType];
engagementData.extraData.qosResultType = this._qosResultTypeValue[this.resultType];
}
if (this.resultCode) {
// tslint:disable-next-line:no-string-literal
engagementData.extraData['qosResultCode'] = this.resultCode;
engagementData.extraData.qosResultCode = this.resultCode;
}

@@ -279,6 +281,2 @@ EngagementLogger_1.default.log(engagementData);

};
QosMonitor.logSource = {
id: 'QosMonitor'
};
QosMonitor.qosMonitorHasEndedErrorString = "QoS monitor '{0}' has ended with '{1}' already. Ignoring '{2}' tag.";
return QosMonitor;

@@ -285,0 +283,0 @@ }());

@@ -36,4 +36,5 @@ "use strict";

*/
QosMonitorShareFailureWithCP.prototype.writeUnexpectedFailure = function (tagNameSuffix, ex, extraData // tslint:disable-line:no-any
) {
QosMonitorShareFailureWithCP.prototype.writeUnexpectedFailure = function (tagNameSuffix, ex,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraData) {
if (tagNameSuffix === void 0) { tagNameSuffix = 'DefaultUnexpected'; }

@@ -51,4 +52,5 @@ _super.prototype.writeUnexpectedFailure.call(this, tagNameSuffix, ex, extraData);

*/
QosMonitorShareFailureWithCP.prototype.writeExpectedFailure = function (tagNameSuffix, ex, extraData // tslint:disable-line:no-any
) {
QosMonitorShareFailureWithCP.prototype.writeExpectedFailure = function (tagNameSuffix, ex,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraData) {
if (tagNameSuffix === void 0) { tagNameSuffix = 'DefaultExpected'; }

@@ -65,4 +67,5 @@ _super.prototype.writeExpectedFailure.call(this, tagNameSuffix, ex, extraData);

*/
QosMonitorShareFailureWithCP.prototype._logCustomerPromiseFailure = function (errorMessage, errorScenario, resultType, extraData // tslint:disable-line:no-any
) {
QosMonitorShareFailureWithCP.prototype._logCustomerPromiseFailure = function (errorMessage, errorScenario, resultType,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraData) {
if (resultType === void 0) { resultType = QosResultType_1.QosResultType.Failure; }

@@ -69,0 +72,0 @@ if (this._extraDataForCustomerPromise) {

"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -11,3 +8,3 @@ exports.QosResultType = void 0;

*/
// tslint:disable-next-line:typedef variable-name
// eslint-disable-next-line @typescript-eslint/typedef
exports.QosResultType = {

@@ -14,0 +11,0 @@ Success: 0,

"use strict";
/**
* @copyright Microsoft Corporation.All rights reserved.
* @file DefaultTraceHandler.ts
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,2 +14,3 @@ /**

if (!DEPRECATED_UNIT_TEST) {
// eslint-disable-next-line no-console
console.log("Error: ".concat(traceLogEvent.data, ", ") +

@@ -29,2 +26,3 @@ "Event Name: ".concat(traceLogEvent.eventName, ", ") +

if (!DEPRECATED_UNIT_TEST) {
// eslint-disable-next-line no-console
console.log("Error: ".concat(verboseTraceEvent.data, ", Event Name: ").concat(verboseTraceEvent.eventName));

@@ -31,0 +29,0 @@ }

"use strict";
/**
* @copyright Microsoft Corporation.All rights reserved.
* @file ITraceLogger.ts
* ITraceLogger interface
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ITraceLogger.js.map

@@ -8,3 +8,3 @@ "use strict";

var DefaultTraceHandler_1 = tslib_1.__importDefault(require("./DefaultTraceHandler"));
var LogManager_1 = tslib_1.__importDefault(require("./../LogManager/LogManager"));
var LogManager_1 = tslib_1.__importDefault(require("../LogManager/LogManager"));
/**

@@ -87,3 +87,3 @@ * This is used to log traces of failed operations and debugging information.

* If no failure happens and your scenario succeeds, verbose logs will be just left in the buffer
* and most likely overriden by next scenario that logs something verbose.
* and most likely overridden by next scenario that logs something verbose.
*/

@@ -181,5 +181,7 @@ TraceLogger.logVerboseData = function (data) {

if (isError) {
// eslint-disable-next-line no-console
console.error(errorString);
}
else {
// eslint-disable-next-line no-console
console.log(errorString);

@@ -186,0 +188,0 @@ }

"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -6,0 +3,0 @@ var tslib_1 = require("tslib");

"use strict";
/**
* @copyright Microsoft Corporation. All rights reserved.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -6,0 +3,0 @@ var sp_core_library_1 = require("@microsoft/sp-core-library");

{
"name": "@microsoft/sp-diagnostics",
"version": "1.18.0-beta.1",
"version": "1.18.0-beta.2",
"description": "Diagnostics tools for the SharePoint Framework",

@@ -11,9 +11,10 @@ "license": "https://aka.ms/spfx/license",

"devDependencies": {
"@rushstack/heft": "0.51.0",
"@rushstack/heft": "0.56.0",
"tslib": "2.3.1",
"eslint": "8.7.0",
"@ms/spfx-internal-web-build-next-rig": "0.1.0"
},
"dependencies": {
"@microsoft/sp-core-library": "1.18.0-beta.1",
"@microsoft/sp-lodash-subset": "1.18.0-beta.1"
"@microsoft/sp-core-library": "1.18.0-beta.2",
"@microsoft/sp-lodash-subset": "1.18.0-beta.2"
},

@@ -20,0 +21,0 @@ "engines": {

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