Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@youngbeen/angle-ctrl

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@youngbeen/angle-ctrl - npm Package Compare versions

Comparing version
1.1.1
to
1.1.2
+26
-18
DebugCtrl.js

@@ -1,5 +0,13 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var LogCtrl_1 = require("./LogCtrl");
Object.defineProperty(exports, "__esModule", {
value: true
});
var _LogCtrl = require('./LogCtrl');
var _LogCtrl2 = _interopRequireDefault(_LogCtrl);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var debug = 0;

@@ -25,11 +33,11 @@ var cheatCounts = 0;

line = params.line.toString();
msg += "[line:" + line + "]";
msg += '[line:' + line + ']';
}
if (params.compName) {
compName = params.compName;
msg += "[comp:" + compName + "]";
msg += '[comp:' + compName + ']';
}
if (params.funcName) {
funcName = params.funcName;
msg += "[func:" + funcName + "]";
msg += '[func:' + funcName + ']';
}

@@ -42,3 +50,3 @@ if (params.attach) {

if (isSave) {
LogCtrl_1.default.saveLog(info, 'info', line, compName, funcName, attach);
_LogCtrl2.default.saveLog(info, 'info', line, compName, funcName, attach);
}

@@ -61,11 +69,11 @@ if (debug > 1) {

line = params.line.toString();
msg += "[line:" + line + "]";
msg += '[line:' + line + ']';
}
if (params.compName) {
compName = params.compName;
msg += "[comp:" + compName + "]";
msg += '[comp:' + compName + ']';
}
if (params.funcName) {
funcName = params.funcName;
msg += "[func:" + funcName + "]";
msg += '[func:' + funcName + ']';
}

@@ -77,3 +85,3 @@ if (params.attach) {

console.warn(msg);
LogCtrl_1.default.saveLog(info, 'warn', line, compName, funcName, attach);
_LogCtrl2.default.saveLog(info, 'warn', line, compName, funcName, attach);
if (debug) {

@@ -95,11 +103,11 @@ window.alert(msg);

line = params.line.toString();
msg += "[line:" + line + "]";
msg += '[line:' + line + ']';
}
if (params.compName) {
compName = params.compName;
msg += "[comp:" + compName + "]";
msg += '[comp:' + compName + ']';
}
if (params.funcName) {
funcName = params.funcName;
msg += "[func:" + funcName + "]";
msg += '[func:' + funcName + ']';
}

@@ -111,4 +119,4 @@ if (params.attach) {

console.warn(msg);
LogCtrl_1.default.saveLog(info, 'error', line, compName, funcName, attach);
LogCtrl_1.default.sendLog();
_LogCtrl2.default.saveLog(info, 'error', line, compName, funcName, attach);
_LogCtrl2.default.sendLog();
if (debug) {

@@ -123,3 +131,3 @@ window.alert(msg);

window.localStorage.debug = debug;
window.alert("debug\u6A21\u5F0F\u8C03\u6574\u4E3A" + (mode === 2 ? '严格模式' : '开启'));
window.alert('debug\u6A21\u5F0F\u8C03\u6574\u4E3A' + (mode === 2 ? '严格模式' : '开启'));
},

@@ -129,3 +137,3 @@ debugOff: function debugOff() {

window.localStorage.debug = debug;
window.alert("debug\u6A21\u5F0F\u8C03\u6574\u4E3A\u5173\u95ED");
window.alert('debug\u6A21\u5F0F\u8C03\u6574\u4E3A\u5173\u95ED');
},

@@ -132,0 +140,0 @@ cheatDebugClick: function cheatDebugClick(count) {

@@ -1,9 +0,24 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var TimeCtrl_1 = require("./TimeCtrl");
var LogCtrl_1 = require("./LogCtrl");
var DebugCtrl_1 = require("./DebugCtrl");
exports.timeCtrl = TimeCtrl_1.default;
exports.logCtrl = LogCtrl_1.default;
exports.debugCtrl = DebugCtrl_1.default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.debugCtrl = exports.logCtrl = exports.timeCtrl = undefined;
var _TimeCtrl = require('./TimeCtrl');
var _TimeCtrl2 = _interopRequireDefault(_TimeCtrl);
var _LogCtrl = require('./LogCtrl');
var _LogCtrl2 = _interopRequireDefault(_LogCtrl);
var _DebugCtrl = require('./DebugCtrl');
var _DebugCtrl2 = _interopRequireDefault(_DebugCtrl);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var timeCtrl = exports.timeCtrl = _TimeCtrl2.default;
var logCtrl = exports.logCtrl = _LogCtrl2.default;
var debugCtrl = exports.debugCtrl = _DebugCtrl2.default;

@@ -1,8 +0,13 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _angleUtil = require('@youngbeen/angle-util');
require('@youngbeen/ums-tracking');
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
Object.defineProperty(exports, "__esModule", { value: true });
var angle_util_1 = require("@youngbeen/angle-util");
require("@youngbeen/ums-tracking");
var logs = [];

@@ -22,3 +27,3 @@ var tagRandoms = Math.floor(Math.random() * 10e13);

now = now.getTime();
now = angle_util_1.dateUtil.getDateTime(now);
now = _angleUtil.dateUtil.getDateTime(now);
logs = [].concat(_toConsumableArray(logs), [{

@@ -37,3 +42,3 @@ msg: msg,

if (logs.length) {
var tag = tagTime + "-" + tagRandoms;
var tag = tagTime + '-' + tagRandoms;
if (tracking) {

@@ -40,0 +45,0 @@ tracking('UMS_FELOG_ERRORLOG', {

{
"name": "@youngbeen/angle-ctrl",
"version": "1.1.1",
"version": "1.1.2",
"description": "The controllers used in angle-FE team",

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

@@ -1,8 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const LogCtrl_1 = require("./LogCtrl");
import logCtrl from './LogCtrl';
let debug = 0;
let cheatCounts = 0;
let tcCheatDebug = null;
exports.default = {
export default {
log(info = '', params) {

@@ -37,3 +35,3 @@ let isSave = false;

if (isSave) {
LogCtrl_1.default.saveLog(info, 'info', line, compName, funcName, attach);
logCtrl.saveLog(info, 'info', line, compName, funcName, attach);
}

@@ -68,3 +66,3 @@ if (debug > 1) {

console.warn(msg);
LogCtrl_1.default.saveLog(info, 'warn', line, compName, funcName, attach);
logCtrl.saveLog(info, 'warn', line, compName, funcName, attach);
if (debug) {

@@ -98,4 +96,4 @@ window.alert(msg);

console.warn(msg);
LogCtrl_1.default.saveLog(info, 'error', line, compName, funcName, attach);
LogCtrl_1.default.sendLog();
logCtrl.saveLog(info, 'error', line, compName, funcName, attach);
logCtrl.sendLog();
if (debug) {

@@ -102,0 +100,0 @@ window.alert(msg);

@@ -1,8 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const TimeCtrl_1 = require("./TimeCtrl");
const LogCtrl_1 = require("./LogCtrl");
const DebugCtrl_1 = require("./DebugCtrl");
exports.timeCtrl = TimeCtrl_1.default;
exports.logCtrl = LogCtrl_1.default;
exports.debugCtrl = DebugCtrl_1.default;
import TimeCtrl from './TimeCtrl';
import LogCtrl from './LogCtrl';
import DebugCtrl from './DebugCtrl';
export const timeCtrl = TimeCtrl;
export const logCtrl = LogCtrl;
export const debugCtrl = DebugCtrl;

@@ -1,5 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const angle_util_1 = require("@youngbeen/angle-util");
require("@youngbeen/ums-tracking");
import { dateUtil } from '@youngbeen/angle-util';
import '@youngbeen/ums-tracking';
let logs = [];

@@ -9,3 +7,3 @@ const tagRandoms = Math.floor(Math.random() * 10e13);

tagTime = tagTime.getTime();
exports.default = {
export default {
saveLog(msg, type, line = '', compName = '', funcName = '', attach = '') {

@@ -15,3 +13,3 @@ if (msg && type) {

now = now.getTime();
now = angle_util_1.dateUtil.getDateTime(now);
now = dateUtil.getDateTime(now);
logs = [...logs, {

@@ -18,0 +16,0 @@ msg,

@@ -1,4 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
export default {
countDown({ total = 60, step = 1000, tick = null, end = null }) {

@@ -5,0 +3,0 @@ total > 0 ? total : total = 60;

@@ -1,4 +0,6 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {

@@ -5,0 +7,0 @@ countDown: function countDown(_ref) {

@@ -9,3 +9,3 @@ {

"listEmittedFiles": true,
"module": "commonjs",
"module": "es6",
"moduleResolution": "Node",

@@ -12,0 +12,0 @@ // "outDir": "./test",