New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@arms/rum-bundler-plugin-core

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arms/rum-bundler-plugin-core - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

112

dist/index.js

@@ -57,2 +57,7 @@ (function (global, factory) {

function _arrayLikeToArray(r, a) {
(null == a || a > r.length) && (a = r.length);
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
return n;
}
function _asyncIterator(r) {

@@ -127,2 +132,50 @@ var n,

}
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
t && (r = t);
var n = 0,
F = function () {};
return {
s: F,
n: function () {
return n >= r.length ? {
done: !0
} : {
done: !1,
value: r[n++]
};
},
e: function (r) {
throw r;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var o,
a = !0,
u = !1;
return {
s: function () {
t = t.call(r);
},
n: function () {
var r = t.next();
return a = r.done, r;
},
e: function (r) {
u = !0, o = r;
},
f: function () {
try {
a || null == t.return || t.return();
} finally {
if (u) throw o;
}
}
};
}
function _regeneratorRuntime() {

@@ -429,2 +482,9 @@ _regeneratorRuntime = function () {

}
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return _arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
}
}

@@ -680,3 +740,3 @@ var getAliyunUidByRumPid = function getAliyunUidByRumPid(pid) {

var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bundlePaths, manualDebugId, uploader, useCache, context) {
var version, logger, jsFilePaths, sourceMapCount, successSourceMapArr, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, jsFilePath, jsFileContent, debugId, identifier, sourceMapPath, res, _ref2, _ref2$fileSize, fileSize;
var version, logger, jsFilePaths, sourceMapCount, successSourceMapArr, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, jsFilePath, jsFileContent, debugId, identifier, sourceMapPath, res, _ref2, _ref2$fileSize, fileSize, _iterator2, _step2, fileMetaData;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -788,19 +848,43 @@ while (1) switch (_context.prev = _context.next) {

}
if (uploader !== null && uploader !== void 0 && uploader.upload && successSourceMapArr.length) {
logger.info('Starting to upload sourcemap file:');
logger.debug('待上传文件列表');
successSourceMapArr.forEach(function (fileMetaData, index) {
var filePath = fileMetaData.filePath,
fileSize = fileMetaData.fileSize;
logger.debug("".concat(index + 1, " ").concat(filePath, " ").concat(fileSize));
});
successSourceMapArr.forEach(function (fileMetaData) {
uploader.upload(fileMetaData, context);
});
if (!(uploader !== null && uploader !== void 0 && uploader.upload && successSourceMapArr.length)) {
_context.next = 78;
break;
}
case 58:
logger.info('Starting to upload sourcemap file:');
logger.debug('待上传文件列表');
successSourceMapArr.forEach(function (fileMetaData, index) {
var filePath = fileMetaData.filePath,
fileSize = fileMetaData.fileSize;
logger.debug("".concat(index + 1, " ").concat(filePath, " ").concat(fileSize));
});
_iterator2 = _createForOfIteratorHelper(successSourceMapArr);
_context.prev = 62;
_iterator2.s();
case 64:
if ((_step2 = _iterator2.n()).done) {
_context.next = 70;
break;
}
fileMetaData = _step2.value;
_context.next = 68;
return uploader.upload(fileMetaData, context);
case 68:
_context.next = 64;
break;
case 70:
_context.next = 75;
break;
case 72:
_context.prev = 72;
_context.t2 = _context["catch"](62);
_iterator2.e(_context.t2);
case 75:
_context.prev = 75;
_iterator2.f();
return _context.finish(75);
case 78:
case "end":
return _context.stop();
}
}, _callee, null, [[6, 42, 46, 56], [12, 33], [47,, 51, 55]]);
}, _callee, null, [[6, 42, 46, 56], [12, 33], [47,, 51, 55], [62, 72, 75, 78]]);
}));

@@ -807,0 +891,0 @@ return function handleDebugIdInjection(_x, _x2, _x3, _x4, _x5) {

2

package.json
{
"name": "@arms/rum-bundler-plugin-core",
"version": "0.0.9",
"version": "0.0.10",
"description": "rum bundler plugin core",

@@ -5,0 +5,0 @@ "author": "ly403664 <ly403664@alibaba-inc.com>",

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