pixel-react 1.15.21 → 1.15.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_virtual/aesCipherSuites.js +4 -0
- package/lib/_virtual/aesCipherSuites.js.map +1 -0
- package/lib/_virtual/asn1-validator.js +4 -0
- package/lib/_virtual/asn1-validator.js.map +1 -0
- package/lib/_virtual/asn1.js +4 -0
- package/lib/_virtual/asn1.js.map +1 -0
- package/lib/_virtual/cipherModes.js +4 -0
- package/lib/_virtual/cipherModes.js.map +1 -0
- package/lib/_virtual/hmac.js +4 -0
- package/lib/_virtual/hmac.js.map +1 -0
- package/lib/_virtual/index11.js +2 -2
- package/lib/_virtual/index12.js +2 -2
- package/lib/_virtual/index13.js +2 -2
- package/lib/_virtual/index14.js +4 -0
- package/lib/_virtual/index14.js.map +1 -0
- package/lib/_virtual/index2.js +5 -3
- package/lib/_virtual/index2.js.map +1 -1
- package/lib/_virtual/index3.js +4 -2
- package/lib/_virtual/index3.js.map +1 -1
- package/lib/_virtual/index4.js +2 -4
- package/lib/_virtual/index4.js.map +1 -1
- package/lib/_virtual/index5.js +4 -2
- package/lib/_virtual/index5.js.map +1 -1
- package/lib/_virtual/index6.js +2 -2
- package/lib/_virtual/index7.js +2 -6
- package/lib/_virtual/index7.js.map +1 -1
- package/lib/_virtual/index8.js +6 -2
- package/lib/_virtual/index8.js.map +1 -1
- package/lib/_virtual/index9.js +2 -2
- package/lib/_virtual/md5.js +4 -0
- package/lib/_virtual/md5.js.map +1 -0
- package/lib/_virtual/mgf1.js +4 -0
- package/lib/_virtual/mgf1.js.map +1 -0
- package/lib/_virtual/oids.js +4 -0
- package/lib/_virtual/oids.js.map +1 -0
- package/lib/_virtual/pem.js +4 -0
- package/lib/_virtual/pem.js.map +1 -0
- package/lib/_virtual/pkcs1.js +4 -0
- package/lib/_virtual/pkcs1.js.map +1 -0
- package/lib/_virtual/pkcs12.js +4 -0
- package/lib/_virtual/pkcs12.js.map +1 -0
- package/lib/_virtual/pkcs7.js +4 -0
- package/lib/_virtual/pkcs7.js.map +1 -0
- package/lib/_virtual/pkcs7asn1.js +4 -0
- package/lib/_virtual/pkcs7asn1.js.map +1 -0
- package/lib/_virtual/pki.js +4 -0
- package/lib/_virtual/pki.js.map +1 -0
- package/lib/_virtual/prime.js +4 -0
- package/lib/_virtual/prime.js.map +1 -0
- package/lib/_virtual/prng.js +4 -0
- package/lib/_virtual/prng.js.map +1 -0
- package/lib/_virtual/pss.js +4 -0
- package/lib/_virtual/pss.js.map +1 -0
- package/lib/_virtual/random.js +4 -0
- package/lib/_virtual/random.js.map +1 -0
- package/lib/_virtual/sha1.js +4 -0
- package/lib/_virtual/sha1.js.map +1 -0
- package/lib/_virtual/sha256.js +4 -0
- package/lib/_virtual/sha256.js.map +1 -0
- package/lib/_virtual/sha512.js +4 -0
- package/lib/_virtual/sha512.js.map +1 -0
- package/lib/_virtual/ssh.js +4 -0
- package/lib/_virtual/ssh.js.map +1 -0
- package/lib/_virtual/util.js +4 -0
- package/lib/_virtual/util.js.map +1 -0
- package/lib/_virtual/x509.js +4 -0
- package/lib/_virtual/x509.js.map +1 -0
- package/lib/assets/icons/testify_icon.svg.js +6 -0
- package/lib/assets/icons/testify_icon.svg.js.map +1 -0
- package/lib/assets/icons/testify_loader.svg.js +6 -0
- package/lib/assets/icons/testify_loader.svg.js.map +1 -0
- package/lib/assets/icons/testify_logo_name.svg.js +6 -0
- package/lib/assets/icons/testify_logo_name.svg.js.map +1 -0
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.js +3 -1
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.js.map +1 -1
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +2 -9
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js.map +1 -1
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +1 -1
- package/lib/components/ConditionalDropdown/ConditionalDropdown.js +2 -9
- package/lib/components/ConditionalDropdown/ConditionalDropdown.js.map +1 -1
- package/lib/components/Editor/Editor.js +37 -17
- package/lib/components/Editor/Editor.js.map +1 -1
- package/lib/components/Icon/iconList.js +6 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/MultiSelect/MultiSelect.js +9 -10
- package/lib/components/MultiSelect/MultiSelect.js.map +1 -1
- package/lib/components/PhoneInput/PhoneInput.js +1 -0
- package/lib/components/PhoneInput/PhoneInput.js.map +1 -1
- package/lib/components/SessionDropdown/SessionDropdown.js +4 -2
- package/lib/components/SessionDropdown/SessionDropdown.js.map +1 -1
- package/lib/index.cjs +27423 -379
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/node_modules/classnames/index.js +1 -1
- package/lib/node_modules/input-format/modules/react/Input.js +1 -1
- package/lib/node_modules/js-beautify/js/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/lib/node_modules/node-forge/lib/aes.js +1014 -0
- package/lib/node_modules/node-forge/lib/aes.js.map +1 -0
- package/lib/node_modules/node-forge/lib/aesCipherSuites.js +286 -0
- package/lib/node_modules/node-forge/lib/aesCipherSuites.js.map +1 -0
- package/lib/node_modules/node-forge/lib/asn1-validator.js +100 -0
- package/lib/node_modules/node-forge/lib/asn1-validator.js.map +1 -0
- package/lib/node_modules/node-forge/lib/asn1.js +1379 -0
- package/lib/node_modules/node-forge/lib/asn1.js.map +1 -0
- package/lib/node_modules/node-forge/lib/baseN.js +181 -0
- package/lib/node_modules/node-forge/lib/baseN.js.map +1 -0
- package/lib/node_modules/node-forge/lib/cipher.js +236 -0
- package/lib/node_modules/node-forge/lib/cipher.js.map +1 -0
- package/lib/node_modules/node-forge/lib/cipherModes.js +936 -0
- package/lib/node_modules/node-forge/lib/cipherModes.js.map +1 -0
- package/lib/node_modules/node-forge/lib/des.js +467 -0
- package/lib/node_modules/node-forge/lib/des.js.map +1 -0
- package/lib/node_modules/node-forge/lib/ed25519.js +1108 -0
- package/lib/node_modules/node-forge/lib/ed25519.js.map +1 -0
- package/lib/node_modules/node-forge/lib/forge.js +23 -0
- package/lib/node_modules/node-forge/lib/forge.js.map +1 -0
- package/lib/node_modules/node-forge/lib/hmac.js +158 -0
- package/lib/node_modules/node-forge/lib/hmac.js.map +1 -0
- package/lib/node_modules/node-forge/lib/index.js +70 -0
- package/lib/node_modules/node-forge/lib/index.js.map +1 -0
- package/lib/node_modules/node-forge/lib/jsbn.js +1481 -0
- package/lib/node_modules/node-forge/lib/jsbn.js.map +1 -0
- package/lib/node_modules/node-forge/lib/kem.js +178 -0
- package/lib/node_modules/node-forge/lib/kem.js.map +1 -0
- package/lib/node_modules/node-forge/lib/log.js +325 -0
- package/lib/node_modules/node-forge/lib/log.js.map +1 -0
- package/lib/node_modules/node-forge/lib/md.all.js +28 -0
- package/lib/node_modules/node-forge/lib/md.all.js.map +1 -0
- package/lib/node_modules/node-forge/lib/md.js +22 -0
- package/lib/node_modules/node-forge/lib/md.js.map +1 -0
- package/lib/node_modules/node-forge/lib/md5.js +288 -0
- package/lib/node_modules/node-forge/lib/md5.js.map +1 -0
- package/lib/node_modules/node-forge/lib/mgf.js +24 -0
- package/lib/node_modules/node-forge/lib/mgf.js.map +1 -0
- package/lib/node_modules/node-forge/lib/mgf1.js +68 -0
- package/lib/node_modules/node-forge/lib/mgf1.js.map +1 -0
- package/lib/node_modules/node-forge/lib/oids.js +185 -0
- package/lib/node_modules/node-forge/lib/oids.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pbe.js +966 -0
- package/lib/node_modules/node-forge/lib/pbe.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pbkdf2.js +209 -0
- package/lib/node_modules/node-forge/lib/pbkdf2.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pem.js +250 -0
- package/lib/node_modules/node-forge/lib/pem.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pkcs1.js +273 -0
- package/lib/node_modules/node-forge/lib/pkcs1.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pkcs12.js +980 -0
- package/lib/node_modules/node-forge/lib/pkcs12.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pkcs7.js +1073 -0
- package/lib/node_modules/node-forge/lib/pkcs7.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pkcs7asn1.js +415 -0
- package/lib/node_modules/node-forge/lib/pkcs7asn1.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pki.js +125 -0
- package/lib/node_modules/node-forge/lib/pki.js.map +1 -0
- package/lib/node_modules/node-forge/lib/prime.js +297 -0
- package/lib/node_modules/node-forge/lib/prime.js.map +1 -0
- package/lib/node_modules/node-forge/lib/prng.js +433 -0
- package/lib/node_modules/node-forge/lib/prng.js.map +1 -0
- package/lib/node_modules/node-forge/lib/pss.js +246 -0
- package/lib/node_modules/node-forge/lib/pss.js.map +1 -0
- package/lib/node_modules/node-forge/lib/random.js +191 -0
- package/lib/node_modules/node-forge/lib/random.js.map +1 -0
- package/lib/node_modules/node-forge/lib/rc2.js +382 -0
- package/lib/node_modules/node-forge/lib/rc2.js.map +1 -0
- package/lib/node_modules/node-forge/lib/rsa.js +1815 -0
- package/lib/node_modules/node-forge/lib/rsa.js.map +1 -0
- package/lib/node_modules/node-forge/lib/sha1.js +325 -0
- package/lib/node_modules/node-forge/lib/sha1.js.map +1 -0
- package/lib/node_modules/node-forge/lib/sha256.js +306 -0
- package/lib/node_modules/node-forge/lib/sha256.js.map +1 -0
- package/lib/node_modules/node-forge/lib/sha512.js +479 -0
- package/lib/node_modules/node-forge/lib/sha512.js.map +1 -0
- package/lib/node_modules/node-forge/lib/ssh.js +244 -0
- package/lib/node_modules/node-forge/lib/ssh.js.map +1 -0
- package/lib/node_modules/node-forge/lib/tls.js +4207 -0
- package/lib/node_modules/node-forge/lib/tls.js.map +1 -0
- package/lib/node_modules/node-forge/lib/util.js +2565 -0
- package/lib/node_modules/node-forge/lib/util.js.map +1 -0
- package/lib/node_modules/node-forge/lib/x509.js +2986 -0
- package/lib/node_modules/node-forge/lib/x509.js.map +1 -0
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/node_modules/react-async-script/lib/esm/async-script-loader.js +1 -1
- package/lib/node_modules/react-google-recaptcha/lib/esm/recaptcha.js +1 -1
- package/lib/node_modules/react-is/index.js +1 -1
- package/lib/node_modules/react-phone-number-input/modules/CountryIcon.js +1 -1
- package/lib/node_modules/react-phone-number-input/modules/CountrySelect.js +1 -1
- package/lib/node_modules/react-phone-number-input/modules/Flag.js +1 -1
- package/lib/node_modules/react-phone-number-input/modules/InputBasic.js +1 -1
- package/lib/node_modules/react-phone-number-input/modules/InputSmart.js +1 -1
- package/lib/node_modules/react-phone-number-input/modules/InternationalIcon.js +1 -1
- package/lib/node_modules/react-phone-number-input/modules/PhoneInputWithCountry.js +1 -1
- package/lib/node_modules/react-phone-number-input/modules/PropTypes.js +1 -1
- package/lib/node_modules/scheduler/index.js +1 -1
- package/lib/node_modules/use-context-selector/dist/index.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.js +10 -13
- package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { __require as requireForge } from './forge.js';
|
|
2
|
+
import { __require as requireUtil } from './util.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cross-browser support for logging in a web application.
|
|
6
|
+
*
|
|
7
|
+
* @author David I. Lehn <dlehn@digitalbazaar.com>
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2008-2013 Digital Bazaar, Inc.
|
|
10
|
+
*/
|
|
11
|
+
var log;
|
|
12
|
+
var hasRequiredLog;
|
|
13
|
+
function requireLog() {
|
|
14
|
+
if (hasRequiredLog) return log;
|
|
15
|
+
hasRequiredLog = 1;
|
|
16
|
+
var forge = requireForge();
|
|
17
|
+
requireUtil();
|
|
18
|
+
|
|
19
|
+
/* LOG API */
|
|
20
|
+
log = forge.log = forge.log || {};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Application logging system.
|
|
24
|
+
*
|
|
25
|
+
* Each logger level available as it's own function of the form:
|
|
26
|
+
* forge.log.level(category, args...)
|
|
27
|
+
* The category is an arbitrary string, and the args are the same as
|
|
28
|
+
* Firebug's console.log API. By default the call will be output as:
|
|
29
|
+
* 'LEVEL [category] <args[0]>, args[1], ...'
|
|
30
|
+
* This enables proper % formatting via the first argument.
|
|
31
|
+
* Each category is enabled by default but can be enabled or disabled with
|
|
32
|
+
* the setCategoryEnabled() function.
|
|
33
|
+
*/
|
|
34
|
+
// list of known levels
|
|
35
|
+
forge.log.levels = ['none', 'error', 'warning', 'info', 'debug', 'verbose', 'max'];
|
|
36
|
+
// info on the levels indexed by name:
|
|
37
|
+
// index: level index
|
|
38
|
+
// name: uppercased display name
|
|
39
|
+
var sLevelInfo = {};
|
|
40
|
+
// list of loggers
|
|
41
|
+
var sLoggers = [];
|
|
42
|
+
/**
|
|
43
|
+
* Standard console logger. If no console support is enabled this will
|
|
44
|
+
* remain null. Check before using.
|
|
45
|
+
*/
|
|
46
|
+
var sConsoleLogger = null;
|
|
47
|
+
|
|
48
|
+
// logger flags
|
|
49
|
+
/**
|
|
50
|
+
* Lock the level at the current value. Used in cases where user config may
|
|
51
|
+
* set the level such that only critical messages are seen but more verbose
|
|
52
|
+
* messages are needed for debugging or other purposes.
|
|
53
|
+
*/
|
|
54
|
+
forge.log.LEVEL_LOCKED = 1 << 1;
|
|
55
|
+
/**
|
|
56
|
+
* Always call log function. By default, the logging system will check the
|
|
57
|
+
* message level against logger.level before calling the log function. This
|
|
58
|
+
* flag allows the function to do its own check.
|
|
59
|
+
*/
|
|
60
|
+
forge.log.NO_LEVEL_CHECK = 1 << 2;
|
|
61
|
+
/**
|
|
62
|
+
* Perform message interpolation with the passed arguments. "%" style
|
|
63
|
+
* fields in log messages will be replaced by arguments as needed. Some
|
|
64
|
+
* loggers, such as Firebug, may do this automatically. The original log
|
|
65
|
+
* message will be available as 'message' and the interpolated version will
|
|
66
|
+
* be available as 'fullMessage'.
|
|
67
|
+
*/
|
|
68
|
+
forge.log.INTERPOLATE = 1 << 3;
|
|
69
|
+
|
|
70
|
+
// setup each log level
|
|
71
|
+
for (var i = 0; i < forge.log.levels.length; ++i) {
|
|
72
|
+
var level = forge.log.levels[i];
|
|
73
|
+
sLevelInfo[level] = {
|
|
74
|
+
index: i,
|
|
75
|
+
name: level.toUpperCase()
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Message logger. Will dispatch a message to registered loggers as needed.
|
|
81
|
+
*
|
|
82
|
+
* @param message message object
|
|
83
|
+
*/
|
|
84
|
+
forge.log.logMessage = function (message) {
|
|
85
|
+
var messageLevelIndex = sLevelInfo[message.level].index;
|
|
86
|
+
for (var i = 0; i < sLoggers.length; ++i) {
|
|
87
|
+
var logger = sLoggers[i];
|
|
88
|
+
if (logger.flags & forge.log.NO_LEVEL_CHECK) {
|
|
89
|
+
logger.f(message);
|
|
90
|
+
} else {
|
|
91
|
+
// get logger level
|
|
92
|
+
var loggerLevelIndex = sLevelInfo[logger.level].index;
|
|
93
|
+
// check level
|
|
94
|
+
if (messageLevelIndex <= loggerLevelIndex) {
|
|
95
|
+
// message critical enough, call logger
|
|
96
|
+
logger.f(logger, message);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Sets the 'standard' key on a message object to:
|
|
104
|
+
* "LEVEL [category] " + message
|
|
105
|
+
*
|
|
106
|
+
* @param message a message log object
|
|
107
|
+
*/
|
|
108
|
+
forge.log.prepareStandard = function (message) {
|
|
109
|
+
if (!('standard' in message)) {
|
|
110
|
+
message.standard = sLevelInfo[message.level].name +
|
|
111
|
+
//' ' + +message.timestamp +
|
|
112
|
+
' [' + message.category + '] ' + message.message;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Sets the 'full' key on a message object to the original message
|
|
118
|
+
* interpolated via % formatting with the message arguments.
|
|
119
|
+
*
|
|
120
|
+
* @param message a message log object.
|
|
121
|
+
*/
|
|
122
|
+
forge.log.prepareFull = function (message) {
|
|
123
|
+
if (!('full' in message)) {
|
|
124
|
+
// copy args and insert message at the front
|
|
125
|
+
var args = [message.message];
|
|
126
|
+
args = args.concat([] || message['arguments']);
|
|
127
|
+
// format the message
|
|
128
|
+
message.full = forge.util.format.apply(this, args);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Applies both preparseStandard() and prepareFull() to a message object and
|
|
134
|
+
* store result in 'standardFull'.
|
|
135
|
+
*
|
|
136
|
+
* @param message a message log object.
|
|
137
|
+
*/
|
|
138
|
+
forge.log.prepareStandardFull = function (message) {
|
|
139
|
+
if (!('standardFull' in message)) {
|
|
140
|
+
// FIXME implement 'standardFull' logging
|
|
141
|
+
forge.log.prepareStandard(message);
|
|
142
|
+
message.standardFull = message.standard;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// create log level functions
|
|
147
|
+
{
|
|
148
|
+
// levels for which we want functions
|
|
149
|
+
var levels = ['error', 'warning', 'info', 'debug', 'verbose'];
|
|
150
|
+
for (var i = 0; i < levels.length; ++i) {
|
|
151
|
+
// wrap in a function to ensure proper level var is passed
|
|
152
|
+
(function (level) {
|
|
153
|
+
// create function for this level
|
|
154
|
+
forge.log[level] = function (category, message /*, args...*/) {
|
|
155
|
+
// convert arguments to real array, remove category and message
|
|
156
|
+
var args = Array.prototype.slice.call(arguments).slice(2);
|
|
157
|
+
// create message object
|
|
158
|
+
// Note: interpolation and standard formatting is done lazily
|
|
159
|
+
var msg = {
|
|
160
|
+
timestamp: new Date(),
|
|
161
|
+
level: level,
|
|
162
|
+
category: category,
|
|
163
|
+
message: message,
|
|
164
|
+
'arguments': args
|
|
165
|
+
/*standard*/
|
|
166
|
+
/*full*/
|
|
167
|
+
/*fullMessage*/
|
|
168
|
+
};
|
|
169
|
+
// process this message
|
|
170
|
+
forge.log.logMessage(msg);
|
|
171
|
+
};
|
|
172
|
+
})(levels[i]);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Creates a new logger with specified custom logging function.
|
|
178
|
+
*
|
|
179
|
+
* The logging function has a signature of:
|
|
180
|
+
* function(logger, message)
|
|
181
|
+
* logger: current logger
|
|
182
|
+
* message: object:
|
|
183
|
+
* level: level id
|
|
184
|
+
* category: category
|
|
185
|
+
* message: string message
|
|
186
|
+
* arguments: Array of extra arguments
|
|
187
|
+
* fullMessage: interpolated message and arguments if INTERPOLATE flag set
|
|
188
|
+
*
|
|
189
|
+
* @param logFunction a logging function which takes a log message object
|
|
190
|
+
* as a parameter.
|
|
191
|
+
*
|
|
192
|
+
* @return a logger object.
|
|
193
|
+
*/
|
|
194
|
+
forge.log.makeLogger = function (logFunction) {
|
|
195
|
+
var logger = {
|
|
196
|
+
flags: 0,
|
|
197
|
+
f: logFunction
|
|
198
|
+
};
|
|
199
|
+
forge.log.setLevel(logger, 'none');
|
|
200
|
+
return logger;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Sets the current log level on a logger.
|
|
205
|
+
*
|
|
206
|
+
* @param logger the target logger.
|
|
207
|
+
* @param level the new maximum log level as a string.
|
|
208
|
+
*
|
|
209
|
+
* @return true if set, false if not.
|
|
210
|
+
*/
|
|
211
|
+
forge.log.setLevel = function (logger, level) {
|
|
212
|
+
var rval = false;
|
|
213
|
+
if (logger && !(logger.flags & forge.log.LEVEL_LOCKED)) {
|
|
214
|
+
for (var i = 0; i < forge.log.levels.length; ++i) {
|
|
215
|
+
var aValidLevel = forge.log.levels[i];
|
|
216
|
+
if (level == aValidLevel) {
|
|
217
|
+
// set level
|
|
218
|
+
logger.level = level;
|
|
219
|
+
rval = true;
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return rval;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Locks the log level at its current value.
|
|
229
|
+
*
|
|
230
|
+
* @param logger the target logger.
|
|
231
|
+
* @param lock boolean lock value, default to true.
|
|
232
|
+
*/
|
|
233
|
+
forge.log.lock = function (logger, lock) {
|
|
234
|
+
if (typeof lock === 'undefined' || lock) {
|
|
235
|
+
logger.flags |= forge.log.LEVEL_LOCKED;
|
|
236
|
+
} else {
|
|
237
|
+
logger.flags &= ~forge.log.LEVEL_LOCKED;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Adds a logger.
|
|
243
|
+
*
|
|
244
|
+
* @param logger the logger object.
|
|
245
|
+
*/
|
|
246
|
+
forge.log.addLogger = function (logger) {
|
|
247
|
+
sLoggers.push(logger);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
// setup the console logger if possible, else create fake console.log
|
|
251
|
+
if (typeof console !== 'undefined' && 'log' in console) {
|
|
252
|
+
var logger;
|
|
253
|
+
if (console.error && console.warn && console.info && console.debug) {
|
|
254
|
+
// looks like Firebug-style logging is available
|
|
255
|
+
// level handlers map
|
|
256
|
+
var levelHandlers = {
|
|
257
|
+
error: console.error,
|
|
258
|
+
warning: console.warn,
|
|
259
|
+
info: console.info,
|
|
260
|
+
debug: console.debug,
|
|
261
|
+
verbose: console.debug
|
|
262
|
+
};
|
|
263
|
+
var f = function (logger, message) {
|
|
264
|
+
forge.log.prepareStandard(message);
|
|
265
|
+
var handler = levelHandlers[message.level];
|
|
266
|
+
// prepend standard message and concat args
|
|
267
|
+
var args = [message.standard];
|
|
268
|
+
args = args.concat(message['arguments'].slice());
|
|
269
|
+
// apply to low-level console function
|
|
270
|
+
handler.apply(console, args);
|
|
271
|
+
};
|
|
272
|
+
logger = forge.log.makeLogger(f);
|
|
273
|
+
} else {
|
|
274
|
+
// only appear to have basic console.log
|
|
275
|
+
var f = function (logger, message) {
|
|
276
|
+
forge.log.prepareStandardFull(message);
|
|
277
|
+
console.log(message.standardFull);
|
|
278
|
+
};
|
|
279
|
+
logger = forge.log.makeLogger(f);
|
|
280
|
+
}
|
|
281
|
+
forge.log.setLevel(logger, 'debug');
|
|
282
|
+
forge.log.addLogger(logger);
|
|
283
|
+
sConsoleLogger = logger;
|
|
284
|
+
} else {
|
|
285
|
+
// define fake console.log to avoid potential script errors on
|
|
286
|
+
// browsers that do not have console logging
|
|
287
|
+
console = {
|
|
288
|
+
log: function () {}
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/*
|
|
293
|
+
* Check for logging control query vars in current URL.
|
|
294
|
+
*
|
|
295
|
+
* console.level=<level-name>
|
|
296
|
+
* Set's the console log level by name. Useful to override defaults and
|
|
297
|
+
* allow more verbose logging before a user config is loaded.
|
|
298
|
+
*
|
|
299
|
+
* console.lock=<true|false>
|
|
300
|
+
* Lock the console log level at whatever level it is set at. This is run
|
|
301
|
+
* after console.level is processed. Useful to force a level of verbosity
|
|
302
|
+
* that could otherwise be limited by a user config.
|
|
303
|
+
*/
|
|
304
|
+
if (sConsoleLogger !== null && typeof window !== 'undefined' && window.location) {
|
|
305
|
+
var query = new URL(window.location.href).searchParams;
|
|
306
|
+
if (query.has('console.level')) {
|
|
307
|
+
// set with last value
|
|
308
|
+
forge.log.setLevel(sConsoleLogger, query.get('console.level').slice(-1)[0]);
|
|
309
|
+
}
|
|
310
|
+
if (query.has('console.lock')) {
|
|
311
|
+
// set with last value
|
|
312
|
+
var lock = query.get('console.lock').slice(-1)[0];
|
|
313
|
+
if (lock == 'true') {
|
|
314
|
+
forge.log.lock(sConsoleLogger);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// provide public access to console logger
|
|
320
|
+
forge.log.consoleLogger = sConsoleLogger;
|
|
321
|
+
return log;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export { requireLog as __require };
|
|
325
|
+
//# sourceMappingURL=log.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.js","sources":["../../../../node_modules/node-forge/lib/log.js"],"sourcesContent":["/**\n * Cross-browser support for logging in a web application.\n *\n * @author David I. Lehn <dlehn@digitalbazaar.com>\n *\n * Copyright (c) 2008-2013 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\nrequire('./util');\n\n/* LOG API */\nmodule.exports = forge.log = forge.log || {};\n\n/**\n * Application logging system.\n *\n * Each logger level available as it's own function of the form:\n * forge.log.level(category, args...)\n * The category is an arbitrary string, and the args are the same as\n * Firebug's console.log API. By default the call will be output as:\n * 'LEVEL [category] <args[0]>, args[1], ...'\n * This enables proper % formatting via the first argument.\n * Each category is enabled by default but can be enabled or disabled with\n * the setCategoryEnabled() function.\n */\n// list of known levels\nforge.log.levels = [\n 'none', 'error', 'warning', 'info', 'debug', 'verbose', 'max'];\n// info on the levels indexed by name:\n// index: level index\n// name: uppercased display name\nvar sLevelInfo = {};\n// list of loggers\nvar sLoggers = [];\n/**\n * Standard console logger. If no console support is enabled this will\n * remain null. Check before using.\n */\nvar sConsoleLogger = null;\n\n// logger flags\n/**\n * Lock the level at the current value. Used in cases where user config may\n * set the level such that only critical messages are seen but more verbose\n * messages are needed for debugging or other purposes.\n */\nforge.log.LEVEL_LOCKED = (1 << 1);\n/**\n * Always call log function. By default, the logging system will check the\n * message level against logger.level before calling the log function. This\n * flag allows the function to do its own check.\n */\nforge.log.NO_LEVEL_CHECK = (1 << 2);\n/**\n * Perform message interpolation with the passed arguments. \"%\" style\n * fields in log messages will be replaced by arguments as needed. Some\n * loggers, such as Firebug, may do this automatically. The original log\n * message will be available as 'message' and the interpolated version will\n * be available as 'fullMessage'.\n */\nforge.log.INTERPOLATE = (1 << 3);\n\n// setup each log level\nfor(var i = 0; i < forge.log.levels.length; ++i) {\n var level = forge.log.levels[i];\n sLevelInfo[level] = {\n index: i,\n name: level.toUpperCase()\n };\n}\n\n/**\n * Message logger. Will dispatch a message to registered loggers as needed.\n *\n * @param message message object\n */\nforge.log.logMessage = function(message) {\n var messageLevelIndex = sLevelInfo[message.level].index;\n for(var i = 0; i < sLoggers.length; ++i) {\n var logger = sLoggers[i];\n if(logger.flags & forge.log.NO_LEVEL_CHECK) {\n logger.f(message);\n } else {\n // get logger level\n var loggerLevelIndex = sLevelInfo[logger.level].index;\n // check level\n if(messageLevelIndex <= loggerLevelIndex) {\n // message critical enough, call logger\n logger.f(logger, message);\n }\n }\n }\n};\n\n/**\n * Sets the 'standard' key on a message object to:\n * \"LEVEL [category] \" + message\n *\n * @param message a message log object\n */\nforge.log.prepareStandard = function(message) {\n if(!('standard' in message)) {\n message.standard =\n sLevelInfo[message.level].name +\n //' ' + +message.timestamp +\n ' [' + message.category + '] ' +\n message.message;\n }\n};\n\n/**\n * Sets the 'full' key on a message object to the original message\n * interpolated via % formatting with the message arguments.\n *\n * @param message a message log object.\n */\nforge.log.prepareFull = function(message) {\n if(!('full' in message)) {\n // copy args and insert message at the front\n var args = [message.message];\n args = args.concat([] || message['arguments']);\n // format the message\n message.full = forge.util.format.apply(this, args);\n }\n};\n\n/**\n * Applies both preparseStandard() and prepareFull() to a message object and\n * store result in 'standardFull'.\n *\n * @param message a message log object.\n */\nforge.log.prepareStandardFull = function(message) {\n if(!('standardFull' in message)) {\n // FIXME implement 'standardFull' logging\n forge.log.prepareStandard(message);\n message.standardFull = message.standard;\n }\n};\n\n// create log level functions\nif(true) {\n // levels for which we want functions\n var levels = ['error', 'warning', 'info', 'debug', 'verbose'];\n for(var i = 0; i < levels.length; ++i) {\n // wrap in a function to ensure proper level var is passed\n (function(level) {\n // create function for this level\n forge.log[level] = function(category, message/*, args...*/) {\n // convert arguments to real array, remove category and message\n var args = Array.prototype.slice.call(arguments).slice(2);\n // create message object\n // Note: interpolation and standard formatting is done lazily\n var msg = {\n timestamp: new Date(),\n level: level,\n category: category,\n message: message,\n 'arguments': args\n /*standard*/\n /*full*/\n /*fullMessage*/\n };\n // process this message\n forge.log.logMessage(msg);\n };\n })(levels[i]);\n }\n}\n\n/**\n * Creates a new logger with specified custom logging function.\n *\n * The logging function has a signature of:\n * function(logger, message)\n * logger: current logger\n * message: object:\n * level: level id\n * category: category\n * message: string message\n * arguments: Array of extra arguments\n * fullMessage: interpolated message and arguments if INTERPOLATE flag set\n *\n * @param logFunction a logging function which takes a log message object\n * as a parameter.\n *\n * @return a logger object.\n */\nforge.log.makeLogger = function(logFunction) {\n var logger = {\n flags: 0,\n f: logFunction\n };\n forge.log.setLevel(logger, 'none');\n return logger;\n};\n\n/**\n * Sets the current log level on a logger.\n *\n * @param logger the target logger.\n * @param level the new maximum log level as a string.\n *\n * @return true if set, false if not.\n */\nforge.log.setLevel = function(logger, level) {\n var rval = false;\n if(logger && !(logger.flags & forge.log.LEVEL_LOCKED)) {\n for(var i = 0; i < forge.log.levels.length; ++i) {\n var aValidLevel = forge.log.levels[i];\n if(level == aValidLevel) {\n // set level\n logger.level = level;\n rval = true;\n break;\n }\n }\n }\n\n return rval;\n};\n\n/**\n * Locks the log level at its current value.\n *\n * @param logger the target logger.\n * @param lock boolean lock value, default to true.\n */\nforge.log.lock = function(logger, lock) {\n if(typeof lock === 'undefined' || lock) {\n logger.flags |= forge.log.LEVEL_LOCKED;\n } else {\n logger.flags &= ~forge.log.LEVEL_LOCKED;\n }\n};\n\n/**\n * Adds a logger.\n *\n * @param logger the logger object.\n */\nforge.log.addLogger = function(logger) {\n sLoggers.push(logger);\n};\n\n// setup the console logger if possible, else create fake console.log\nif(typeof(console) !== 'undefined' && 'log' in console) {\n var logger;\n if(console.error && console.warn && console.info && console.debug) {\n // looks like Firebug-style logging is available\n // level handlers map\n var levelHandlers = {\n error: console.error,\n warning: console.warn,\n info: console.info,\n debug: console.debug,\n verbose: console.debug\n };\n var f = function(logger, message) {\n forge.log.prepareStandard(message);\n var handler = levelHandlers[message.level];\n // prepend standard message and concat args\n var args = [message.standard];\n args = args.concat(message['arguments'].slice());\n // apply to low-level console function\n handler.apply(console, args);\n };\n logger = forge.log.makeLogger(f);\n } else {\n // only appear to have basic console.log\n var f = function(logger, message) {\n forge.log.prepareStandardFull(message);\n console.log(message.standardFull);\n };\n logger = forge.log.makeLogger(f);\n }\n forge.log.setLevel(logger, 'debug');\n forge.log.addLogger(logger);\n sConsoleLogger = logger;\n} else {\n // define fake console.log to avoid potential script errors on\n // browsers that do not have console logging\n console = {\n log: function() {}\n };\n}\n\n/*\n * Check for logging control query vars in current URL.\n *\n * console.level=<level-name>\n * Set's the console log level by name. Useful to override defaults and\n * allow more verbose logging before a user config is loaded.\n *\n * console.lock=<true|false>\n * Lock the console log level at whatever level it is set at. This is run\n * after console.level is processed. Useful to force a level of verbosity\n * that could otherwise be limited by a user config.\n */\nif(sConsoleLogger !== null &&\n typeof window !== 'undefined' && window.location\n) {\n var query = new URL(window.location.href).searchParams;\n if(query.has('console.level')) {\n // set with last value\n forge.log.setLevel(\n sConsoleLogger, query.get('console.level').slice(-1)[0]);\n }\n if(query.has('console.lock')) {\n // set with last value\n var lock = query.get('console.lock').slice(-1)[0];\n if(lock == 'true') {\n forge.log.lock(sConsoleLogger);\n }\n }\n}\n\n// provide public access to console logger\nforge.log.consoleLogger = sConsoleLogger;\n"],"names":["forge","require$$0","require$$1","log","levels","sLevelInfo","sLoggers","sConsoleLogger","LEVEL_LOCKED","NO_LEVEL_CHECK","INTERPOLATE","i","length","level","index","name","toUpperCase","logMessage","message","messageLevelIndex","logger","flags","f","loggerLevelIndex","prepareStandard","standard","category","prepareFull","args","concat","full","util","format","apply","prepareStandardFull","standardFull","Array","prototype","slice","call","arguments","msg","timestamp","Date","makeLogger","logFunction","setLevel","rval","aValidLevel","lock","addLogger","push","console","error","warn","info","debug","levelHandlers","warning","verbose","handler","window","location","query","URL","href","searchParams","has","get","consoleLogger"],"mappings":";;;;;;;;;;;;;;;AAOA,EAAA,IAAIA,KAAK,GAAGC,YAAA,EAAkB;AAC9BC,EAAAA,WAAA,EAAiB;;AAEjB;EACAC,GAAc,GAAGH,KAAK,CAACG,GAAG,GAAGH,KAAK,CAACG,GAAG,IAAI,EAAE;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACAH,EAAAA,KAAK,CAACG,GAAG,CAACC,MAAM,GAAG,CACjB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC;AAChE;AACA;AACA;EACA,IAAIC,UAAU,GAAG,EAAE;AACnB;EACA,IAAIC,QAAQ,GAAG,EAAE;AACjB;AACA;AACA;AACA;EACA,IAAIC,cAAc,GAAG,IAAI;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACAP,EAAAA,KAAK,CAACG,GAAG,CAACK,YAAY,GAAI,CAAC,IAAI,CAAE;AACjC;AACA;AACA;AACA;AACA;AACAR,EAAAA,KAAK,CAACG,GAAG,CAACM,cAAc,GAAI,CAAC,IAAI,CAAE;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACAT,EAAAA,KAAK,CAACG,GAAG,CAACO,WAAW,GAAI,CAAC,IAAI,CAAE;;AAEhC;AACA,EAAA,KAAI,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGX,KAAK,CAACG,GAAG,CAACC,MAAM,CAACQ,M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A;AACA;AACA;AACA;AACA,EAAA,IAAGI,cAAc,KAAK,IAAI,IACxB,OAAOsD,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACC,QAAA,EACxC;AACA,IAAA,IAAIC,KAAK,GAAG,IAAIC,GAAG,CAACH,MAAM,CAACC,QAAQ,CAACG,IAAI,CAAC,CAACC,YAAY;AACtD,IAAA,IAAGH,KAAK,CAACI,GAAG,CAAC,eAAe,CAAC,EAAE;AACjC;MACInE,KAAK,CAACG,GAAG,CAAC2C,QAAQ,CAChBvC,cAAc,EAAEwD,KAAK,CAACK,GAAG,CAAC,eAAe,CAAC,CAAC9B,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,IAAA;AACE,IAAA,IAAGyB,KAAK,CAACI,GAAG,CAAC,cAAc,CAAC,EAAE;AAChC;AACI,MAAA,IAAIlB,IAAI,GAAGc,KAAK,CAACK,GAAG,CAAC,cAAc,CAAC,CAAC9B,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;MACjD,IAAGW,IAAI,IAAI,MAAM,EAAE;AACjBjD,QAAAA,KAAK,CAACG,GAAG,CAAC8C,IAAI,CAAC1C,cAAc,CAAC;AACpC,MAAA;AACA,IAAA;AACA,EAAA;;AAEA;AACAP,EAAAA,KAAK,CAACG,GAAG,CAACkE,aAAa,GAAG9D,cAAc;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __require as requireMd } from './md.js';
|
|
2
|
+
import { __require as requireMd5 } from './md5.js';
|
|
3
|
+
import { __require as requireSha1 } from './sha1.js';
|
|
4
|
+
import { __require as requireSha256 } from './sha256.js';
|
|
5
|
+
import { __require as requireSha512 } from './sha512.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Node.js module for all known Forge message digests.
|
|
9
|
+
*
|
|
10
|
+
* @author Dave Longley
|
|
11
|
+
*
|
|
12
|
+
* Copyright 2011-2017 Digital Bazaar, Inc.
|
|
13
|
+
*/
|
|
14
|
+
var md_all;
|
|
15
|
+
var hasRequiredMd_all;
|
|
16
|
+
function requireMd_all() {
|
|
17
|
+
if (hasRequiredMd_all) return md_all;
|
|
18
|
+
hasRequiredMd_all = 1;
|
|
19
|
+
md_all = requireMd();
|
|
20
|
+
requireMd5();
|
|
21
|
+
requireSha1();
|
|
22
|
+
requireSha256();
|
|
23
|
+
requireSha512();
|
|
24
|
+
return md_all;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { requireMd_all as __require };
|
|
28
|
+
//# sourceMappingURL=md.all.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"md.all.js","sources":["../../../../node_modules/node-forge/lib/md.all.js"],"sourcesContent":["/**\n * Node.js module for all known Forge message digests.\n *\n * @author Dave Longley\n *\n * Copyright 2011-2017 Digital Bazaar, Inc.\n */\nmodule.exports = require('./md');\n\nrequire('./md5');\nrequire('./sha1');\nrequire('./sha256');\nrequire('./sha512');\n"],"names":["md_all","require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;;;;;;;EAOAA,MAAc,GAAGC,SAAA,EAAe;AAEhCC,EAAAA,UAAA,EAAgB;AAChBC,EAAAA,WAAA,EAAiB;AACjBC,EAAAA,aAAA,EAAmB;AACnBC,EAAAA,aAAA,EAAmB;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __require as requireForge } from './forge.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Node.js module for Forge message digests.
|
|
5
|
+
*
|
|
6
|
+
* @author Dave Longley
|
|
7
|
+
*
|
|
8
|
+
* Copyright 2011-2017 Digital Bazaar, Inc.
|
|
9
|
+
*/
|
|
10
|
+
var md;
|
|
11
|
+
var hasRequiredMd;
|
|
12
|
+
function requireMd() {
|
|
13
|
+
if (hasRequiredMd) return md;
|
|
14
|
+
hasRequiredMd = 1;
|
|
15
|
+
var forge = requireForge();
|
|
16
|
+
md = forge.md = forge.md || {};
|
|
17
|
+
forge.md.algorithms = forge.md.algorithms || {};
|
|
18
|
+
return md;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { requireMd as __require };
|
|
22
|
+
//# sourceMappingURL=md.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"md.js","sources":["../../../../node_modules/node-forge/lib/md.js"],"sourcesContent":["/**\n * Node.js module for Forge message digests.\n *\n * @author Dave Longley\n *\n * Copyright 2011-2017 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\n\nmodule.exports = forge.md = forge.md || {};\nforge.md.algorithms = forge.md.algorithms || {};\n"],"names":["forge","require$$0","md","algorithms"],"mappings":";;;;;;;;;;;;;;AAOA,EAAA,IAAIA,KAAK,GAAGC,YAAA,EAAkB;EAE9BC,EAAc,GAAGF,KAAK,CAACE,EAAE,GAAGF,KAAK,CAACE,EAAE,IAAI,EAAE;AAC1CF,EAAAA,KAAK,CAACE,EAAE,CAACC,UAAU,GAAGH,KAAK,CAACE,EAAE,CAACC,UAAU,IAAI,EAAE;;;;;;","x_google_ignoreList":[0]}
|