muhammara 2.1.0 → 2.4.0
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/CHANGELOG.md +33 -1
- package/README.md +2 -2
- package/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +7 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +1 -1
- package/node_modules/@mapbox/node-pre-gyp/package.json +11 -12
- package/node_modules/ansi-regex/package.json +1 -2
- package/node_modules/brace-expansion/package.json +2 -1
- package/node_modules/concat-map/package.json +1 -1
- package/node_modules/console-control-strings/package.json +1 -1
- package/node_modules/debug/README.md +3 -0
- package/node_modules/debug/package.json +5 -5
- package/node_modules/debug/src/common.js +1 -1
- package/node_modules/delegates/package.json +1 -1
- package/node_modules/detect-libc/README.md +124 -42
- package/node_modules/detect-libc/index.d.ts +11 -0
- package/node_modules/detect-libc/lib/detect-libc.js +166 -80
- package/node_modules/detect-libc/lib/process.js +16 -0
- package/node_modules/detect-libc/package.json +20 -19
- package/node_modules/fs.realpath/package.json +1 -1
- package/node_modules/gauge/CHANGELOG.md +163 -0
- package/node_modules/gauge/LICENSE +13 -0
- package/node_modules/gauge/README.md +1 -1
- package/node_modules/gauge/{lib/base-theme.js → base-theme.js} +3 -7
- package/node_modules/gauge/{lib/error.js → error.js} +0 -0
- package/node_modules/gauge/{lib/has-color.js → has-color.js} +0 -0
- package/node_modules/gauge/{lib/index.js → index.js} +32 -89
- package/node_modules/gauge/package.json +42 -37
- package/node_modules/gauge/{lib/plumbing.js → plumbing.js} +1 -3
- package/node_modules/gauge/{lib/process.js → process.js} +0 -0
- package/node_modules/gauge/{lib/progress-bar.js → progress-bar.js} +5 -11
- package/node_modules/gauge/{lib/render-template.js → render-template.js} +24 -68
- package/node_modules/gauge/{lib/set-immediate.js → set-immediate.js} +0 -0
- package/node_modules/gauge/{lib/set-interval.js → set-interval.js} +0 -0
- package/node_modules/gauge/{lib/spin.js → spin.js} +0 -0
- package/node_modules/gauge/{lib/template-item.js → template-item.js} +6 -21
- package/node_modules/gauge/{lib/theme-set.js → theme-set.js} +23 -31
- package/node_modules/gauge/{lib/themes.js → themes.js} +13 -13
- package/node_modules/gauge/{lib/wide-truncate.js → wide-truncate.js} +3 -9
- package/node_modules/glob/common.js +2 -0
- package/node_modules/glob/glob.js +4 -1
- package/node_modules/glob/package.json +9 -6
- package/node_modules/glob/sync.js +6 -3
- package/node_modules/has-unicode/package.json +1 -1
- package/node_modules/https-proxy-agent/dist/agent.js +2 -5
- package/node_modules/https-proxy-agent/dist/agent.js.map +1 -1
- package/node_modules/https-proxy-agent/package.json +5 -5
- package/node_modules/inflight/package.json +1 -1
- package/node_modules/minimatch/README.md +22 -1
- package/node_modules/minimatch/minimatch.js +93 -69
- package/node_modules/minimatch/package.json +16 -15
- package/node_modules/minipass/index.js +6 -1
- package/node_modules/minipass/package.json +5 -5
- package/node_modules/node-fetch/lib/index.es.js +28 -2
- package/node_modules/node-fetch/lib/index.js +28 -2
- package/node_modules/node-fetch/lib/index.mjs +28 -2
- package/node_modules/node-fetch/package.json +18 -10
- package/node_modules/npmlog/LICENSE +15 -0
- package/node_modules/npmlog/{lib/log.js → log.js} +9 -9
- package/node_modules/npmlog/package.json +20 -31
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +74 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/once/package.json +1 -1
- package/node_modules/path-is-absolute/package.json +1 -1
- package/node_modules/semver/README.md +3 -1
- package/node_modules/semver/bin/semver.js +19 -9
- package/node_modules/semver/classes/comparator.js +3 -2
- package/node_modules/semver/classes/index.js +1 -1
- package/node_modules/semver/classes/range.js +31 -22
- package/node_modules/semver/classes/semver.js +1 -1
- package/node_modules/semver/functions/cmp.js +8 -4
- package/node_modules/semver/functions/coerce.js +3 -2
- package/node_modules/semver/functions/inc.js +4 -1
- package/node_modules/semver/functions/parse.js +1 -1
- package/node_modules/semver/internal/constants.js +2 -2
- package/node_modules/semver/internal/identifiers.js +1 -1
- package/node_modules/semver/internal/parse-options.js +3 -3
- package/node_modules/semver/internal/re.js +3 -3
- package/node_modules/semver/package.json +46 -13
- package/node_modules/semver/ranges/min-version.js +2 -1
- package/node_modules/semver/ranges/outside.js +1 -1
- package/node_modules/semver/ranges/simplify.js +15 -12
- package/node_modules/semver/ranges/subset.js +53 -31
- package/node_modules/set-blocking/package.json +1 -1
- package/node_modules/signal-exit/index.js +4 -2
- package/node_modules/signal-exit/package.json +5 -5
- package/package.json +1 -1
- package/src/DocumentCopyingContextDriver.cpp +6 -6
- package/src/deps/PDFWriter/CMakeLists.txt +8 -0
- package/src/deps/PDFWriter/DecryptionHelper.cpp +10 -8
- package/src/deps/PDFWriter/Deletable.h +46 -0
- package/src/deps/PDFWriter/DocumentContext.h +3 -3
- package/src/deps/PDFWriter/IDeletable.h +6 -0
- package/src/deps/PDFWriter/InputLZWDecodeStream.cpp +208 -0
- package/src/deps/PDFWriter/InputLZWDecodeStream.h +77 -0
- package/src/deps/PDFWriter/InputStreamSkipperStream.cpp +1 -1
- package/src/deps/PDFWriter/JPEGImageHandler.h +2 -2
- package/src/deps/PDFWriter/ObjectsContext.cpp +5 -0
- package/src/deps/PDFWriter/ObjectsContext.h +1 -0
- package/src/deps/PDFWriter/PDFDocumentHandler.cpp +19 -3
- package/src/deps/PDFWriter/PDFObject.cpp +13 -11
- package/src/deps/PDFWriter/PDFObject.h +7 -5
- package/src/deps/PDFWriter/PDFObjectParser.cpp +8 -0
- package/src/deps/PDFWriter/PDFObjectParser.h +6 -0
- package/src/deps/PDFWriter/PDFParser.cpp +25 -13
- package/src/deps/PDFWriter/PDFParserTokenizer.cpp +25 -24
- package/src/deps/PDFWriter/PDFParserTokenizer.h +1 -0
- package/src/deps/PDFWriter/PDFWriter.h +2 -2
- package/src/deps/PDFWriter/binding.gyp +2 -0
- package/node_modules/detect-libc/.npmignore +0 -7
- package/node_modules/detect-libc/bin/detect-libc.js +0 -18
- package/node_modules/gauge/LICENSE.md +0 -20
- package/node_modules/gauge/lib/demo.js +0 -45
- package/node_modules/npmlog/LICENSE.md +0 -20
- package/node_modules/semver/CHANGELOG.md +0 -111
- package/src/deps/PDFWriter/InputPredictorPNGAverageStream.cpp +0 -120
- package/src/deps/PDFWriter/InputPredictorPNGAverageStream.h +0 -49
- package/src/deps/PDFWriter/InputPredictorPNGNoneStream.cpp +0 -109
- package/src/deps/PDFWriter/InputPredictorPNGNoneStream.h +0 -47
- package/src/deps/PDFWriter/InputPredictorPNGPaethStream.cpp +0 -136
- package/src/deps/PDFWriter/InputPredictorPNGPaethStream.h +0 -51
- package/src/deps/PDFWriter/InputPredictorPNGSubStream.cpp +0 -113
- package/src/deps/PDFWriter/InputPredictorPNGSubStream.h +0 -47
- package/src/deps/PDFWriter/InputPredictorPNGUpStream.cpp +0 -120
- package/src/deps/PDFWriter/InputPredictorPNGUpStream.h +0 -49
|
@@ -1,92 +1,178 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var readdirSync = require('fs').readdirSync;
|
|
3
|
+
const childProcess = require('child_process');
|
|
4
|
+
const { isLinux, getReport } = require('./process');
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const command = 'getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true';
|
|
7
|
+
let commandOut = '';
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const safeCommand = () => {
|
|
10
|
+
if (!commandOut) {
|
|
11
|
+
return new Promise((resolve) => {
|
|
12
|
+
childProcess.exec(command, (err, out) => {
|
|
13
|
+
commandOut = err ? ' ' : out;
|
|
14
|
+
resolve(commandOut);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return commandOut;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const safeCommandSync = () => {
|
|
22
|
+
if (!commandOut) {
|
|
23
|
+
try {
|
|
24
|
+
commandOut = childProcess.execSync(command, { encoding: 'utf8' });
|
|
25
|
+
} catch (_err) {
|
|
26
|
+
commandOut = ' ';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return commandOut;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A String constant containing the value `glibc`.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
const GLIBC = 'glibc';
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A String constant containing the value `musl`.
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
const MUSL = 'musl';
|
|
45
|
+
|
|
46
|
+
const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-');
|
|
47
|
+
|
|
48
|
+
const familyFromReport = () => {
|
|
49
|
+
const report = getReport();
|
|
50
|
+
if (report.header && report.header.glibcVersionRuntime) {
|
|
51
|
+
return GLIBC;
|
|
52
|
+
}
|
|
53
|
+
if (Array.isArray(report.sharedObjects)) {
|
|
54
|
+
if (report.sharedObjects.some(isFileMusl)) {
|
|
55
|
+
return MUSL;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const familyFromCommand = (out) => {
|
|
62
|
+
const [getconf, ldd1] = out.split(/[\r\n]+/);
|
|
63
|
+
if (getconf && getconf.includes(GLIBC)) {
|
|
64
|
+
return GLIBC;
|
|
65
|
+
}
|
|
66
|
+
if (ldd1 && ldd1.includes(MUSL)) {
|
|
67
|
+
return MUSL;
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
13
70
|
};
|
|
14
71
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function versionFromMuslLdd (out) {
|
|
28
|
-
return out.split(/[\r\n]+/)[1].trim().split(/\s/)[1];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function safeReaddirSync (path) {
|
|
32
|
-
try {
|
|
33
|
-
return readdirSync(path);
|
|
34
|
-
} catch (e) {}
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
var family = '';
|
|
39
|
-
var version = '';
|
|
40
|
-
var method = '';
|
|
41
|
-
|
|
42
|
-
if (platform === 'linux') {
|
|
43
|
-
// Try getconf
|
|
44
|
-
var glibc = spawnSync('getconf', ['GNU_LIBC_VERSION'], spawnOptions);
|
|
45
|
-
if (glibc.status === 0) {
|
|
46
|
-
family = GLIBC;
|
|
47
|
-
version = glibc.stdout.trim().split(' ')[1];
|
|
48
|
-
method = 'getconf';
|
|
49
|
-
} else {
|
|
50
|
-
// Try ldd
|
|
51
|
-
var ldd = spawnSync('ldd', ['--version'], spawnOptions);
|
|
52
|
-
if (ldd.status === 0 && ldd.stdout.indexOf(MUSL) !== -1) {
|
|
53
|
-
family = MUSL;
|
|
54
|
-
version = versionFromMuslLdd(ldd.stdout);
|
|
55
|
-
method = 'ldd';
|
|
56
|
-
} else if (ldd.status === 1 && ldd.stderr.indexOf(MUSL) !== -1) {
|
|
57
|
-
family = MUSL;
|
|
58
|
-
version = versionFromMuslLdd(ldd.stderr);
|
|
59
|
-
method = 'ldd';
|
|
60
|
-
} else {
|
|
61
|
-
// Try filesystem (family only)
|
|
62
|
-
var lib = safeReaddirSync('/lib');
|
|
63
|
-
if (lib.some(contains('-linux-gnu'))) {
|
|
64
|
-
family = GLIBC;
|
|
65
|
-
method = 'filesystem';
|
|
66
|
-
} else if (lib.some(contains('libc.musl-'))) {
|
|
67
|
-
family = MUSL;
|
|
68
|
-
method = 'filesystem';
|
|
69
|
-
} else if (lib.some(contains('ld-musl-'))) {
|
|
70
|
-
family = MUSL;
|
|
71
|
-
method = 'filesystem';
|
|
72
|
-
} else {
|
|
73
|
-
var usrSbin = safeReaddirSync('/usr/sbin');
|
|
74
|
-
if (usrSbin.some(contains('glibc'))) {
|
|
75
|
-
family = GLIBC;
|
|
76
|
-
method = 'filesystem';
|
|
77
|
-
}
|
|
78
|
-
}
|
|
72
|
+
/**
|
|
73
|
+
* Resolves with the libc family when it can be determined, `null` otherwise.
|
|
74
|
+
* @returns {Promise<?string>}
|
|
75
|
+
*/
|
|
76
|
+
const family = async () => {
|
|
77
|
+
let family = null;
|
|
78
|
+
if (isLinux()) {
|
|
79
|
+
family = familyFromReport();
|
|
80
|
+
if (!family) {
|
|
81
|
+
const out = await safeCommand();
|
|
82
|
+
family = familyFromCommand(out);
|
|
79
83
|
}
|
|
80
84
|
}
|
|
81
|
-
|
|
85
|
+
return family;
|
|
86
|
+
};
|
|
82
87
|
|
|
83
|
-
|
|
88
|
+
/**
|
|
89
|
+
* Returns the libc family when it can be determined, `null` otherwise.
|
|
90
|
+
* @returns {?string}
|
|
91
|
+
*/
|
|
92
|
+
const familySync = () => {
|
|
93
|
+
let family = null;
|
|
94
|
+
if (isLinux()) {
|
|
95
|
+
family = familyFromReport();
|
|
96
|
+
if (!family) {
|
|
97
|
+
const out = safeCommandSync();
|
|
98
|
+
family = familyFromCommand(out);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return family;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Resolves `true` only when the platform is Linux and the libc family is not `glibc`.
|
|
106
|
+
* @returns {Promise<boolean>}
|
|
107
|
+
*/
|
|
108
|
+
const isNonGlibcLinux = async () => isLinux() && await family() !== GLIBC;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Returns `true` only when the platform is Linux and the libc family is not `glibc`.
|
|
112
|
+
* @returns {boolean}
|
|
113
|
+
*/
|
|
114
|
+
const isNonGlibcLinuxSync = () => isLinux() && familySync() !== GLIBC;
|
|
115
|
+
|
|
116
|
+
const versionFromReport = () => {
|
|
117
|
+
const report = getReport();
|
|
118
|
+
if (report.header && report.header.glibcVersionRuntime) {
|
|
119
|
+
return report.header.glibcVersionRuntime;
|
|
120
|
+
}
|
|
121
|
+
return null;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const versionSuffix = (s) => s.trim().split(/\s+/)[1];
|
|
125
|
+
|
|
126
|
+
const versionFromCommand = (out) => {
|
|
127
|
+
const [getconf, ldd1, ldd2] = out.split(/[\r\n]+/);
|
|
128
|
+
if (getconf && getconf.includes(GLIBC)) {
|
|
129
|
+
return versionSuffix(getconf);
|
|
130
|
+
}
|
|
131
|
+
if (ldd1 && ldd2 && ldd1.includes(MUSL)) {
|
|
132
|
+
return versionSuffix(ldd2);
|
|
133
|
+
}
|
|
134
|
+
return null;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Resolves with the libc version when it can be determined, `null` otherwise.
|
|
139
|
+
* @returns {Promise<?string>}
|
|
140
|
+
*/
|
|
141
|
+
const version = async () => {
|
|
142
|
+
let version = null;
|
|
143
|
+
if (isLinux()) {
|
|
144
|
+
version = versionFromReport();
|
|
145
|
+
if (!version) {
|
|
146
|
+
const out = await safeCommand();
|
|
147
|
+
version = versionFromCommand(out);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return version;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Returns the libc version when it can be determined, `null` otherwise.
|
|
155
|
+
* @returns {?string}
|
|
156
|
+
*/
|
|
157
|
+
const versionSync = () => {
|
|
158
|
+
let version = null;
|
|
159
|
+
if (isLinux()) {
|
|
160
|
+
version = versionFromReport();
|
|
161
|
+
if (!version) {
|
|
162
|
+
const out = safeCommandSync();
|
|
163
|
+
version = versionFromCommand(out);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return version;
|
|
167
|
+
};
|
|
84
168
|
|
|
85
169
|
module.exports = {
|
|
86
|
-
GLIBC
|
|
87
|
-
MUSL
|
|
88
|
-
family
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
170
|
+
GLIBC,
|
|
171
|
+
MUSL,
|
|
172
|
+
family,
|
|
173
|
+
familySync,
|
|
174
|
+
isNonGlibcLinux,
|
|
175
|
+
isNonGlibcLinuxSync,
|
|
176
|
+
version,
|
|
177
|
+
versionSync
|
|
92
178
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const isLinux = () => process.platform === 'linux';
|
|
4
|
+
|
|
5
|
+
let report = null;
|
|
6
|
+
const getReport = () => {
|
|
7
|
+
if (!report) {
|
|
8
|
+
/* istanbul ignore next */
|
|
9
|
+
report = isLinux() && process.report
|
|
10
|
+
? process.report.getReport()
|
|
11
|
+
: {};
|
|
12
|
+
}
|
|
13
|
+
return report;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
module.exports = { isLinux, getReport };
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "detect-libc@^
|
|
3
|
-
"_id": "detect-libc@
|
|
2
|
+
"_from": "detect-libc@^2.0.0",
|
|
3
|
+
"_id": "detect-libc@2.0.1",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "
|
|
5
|
+
"_integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==",
|
|
6
6
|
"_location": "/detect-libc",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
9
9
|
"type": "range",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "detect-libc@^
|
|
11
|
+
"raw": "detect-libc@^2.0.0",
|
|
12
12
|
"name": "detect-libc",
|
|
13
13
|
"escapedName": "detect-libc",
|
|
14
|
-
"rawSpec": "^
|
|
14
|
+
"rawSpec": "^2.0.0",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^
|
|
16
|
+
"fetchSpec": "^2.0.0"
|
|
17
17
|
},
|
|
18
18
|
"_requiredBy": [
|
|
19
19
|
"/@mapbox/node-pre-gyp"
|
|
20
20
|
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-
|
|
22
|
-
"_shasum": "
|
|
23
|
-
"_spec": "detect-libc@^
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz",
|
|
22
|
+
"_shasum": "e1897aa88fa6ad197862937fbc0441ef352ee0cd",
|
|
23
|
+
"_spec": "detect-libc@^2.0.0",
|
|
24
24
|
"_where": "/home/runner/work/MuhammaraJS/MuhammaraJS/node_modules/@mapbox/node-pre-gyp",
|
|
25
25
|
"author": {
|
|
26
26
|
"name": "Lovell Fuller",
|
|
27
27
|
"email": "npm@lovell.info"
|
|
28
28
|
},
|
|
29
|
-
"bin": {
|
|
30
|
-
"detect-libc": "bin/detect-libc.js"
|
|
31
|
-
},
|
|
32
29
|
"bugs": {
|
|
33
30
|
"url": "https://github.com/lovell/detect-libc/issues"
|
|
34
31
|
},
|
|
@@ -42,14 +39,18 @@
|
|
|
42
39
|
"deprecated": false,
|
|
43
40
|
"description": "Node.js module to detect the C standard library (libc) implementation family and version",
|
|
44
41
|
"devDependencies": {
|
|
45
|
-
"ava": "^
|
|
46
|
-
"nyc": "^
|
|
47
|
-
"proxyquire": "^1.
|
|
48
|
-
"semistandard": "^
|
|
42
|
+
"ava": "^2.4.0",
|
|
43
|
+
"nyc": "^15.1.0",
|
|
44
|
+
"proxyquire": "^2.1.3",
|
|
45
|
+
"semistandard": "^14.2.3"
|
|
49
46
|
},
|
|
50
47
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
48
|
+
"node": ">=8"
|
|
52
49
|
},
|
|
50
|
+
"files": [
|
|
51
|
+
"lib/",
|
|
52
|
+
"index.d.ts"
|
|
53
|
+
],
|
|
53
54
|
"homepage": "https://github.com/lovell/detect-libc#readme",
|
|
54
55
|
"keywords": [
|
|
55
56
|
"libc",
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"url": "git://github.com/lovell/detect-libc.git"
|
|
65
66
|
},
|
|
66
67
|
"scripts": {
|
|
67
|
-
"test": "semistandard && nyc --reporter=lcov ava"
|
|
68
|
+
"test": "semistandard && nyc --reporter=lcov --check-coverage --branches=100 ava test/unit.js"
|
|
68
69
|
},
|
|
69
|
-
"version": "
|
|
70
|
+
"version": "2.0.1"
|
|
70
71
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"_from": "fs.realpath@^1.0.0",
|
|
3
3
|
"_id": "fs.realpath@1.0.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "
|
|
5
|
+
"_integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
|
|
6
6
|
"_location": "/fs.realpath",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
### v3.0.0
|
|
2
|
+
* Drops support for Node v4, v6, v7 and v8
|
|
3
|
+
|
|
4
|
+
### v2.7.4
|
|
5
|
+
|
|
6
|
+
* Reset colors prior to ending a line, to eliminate flicker when a line
|
|
7
|
+
is trucated between start and end color sequences.
|
|
8
|
+
|
|
9
|
+
### v2.7.3
|
|
10
|
+
|
|
11
|
+
* Only create our onExit handler when we're enabled and remove it when we're
|
|
12
|
+
disabled. This stops us from creating multiple onExit handlers when
|
|
13
|
+
multiple gauge objects are being used.
|
|
14
|
+
* Fix bug where if a theme name were given instead of a theme object, it
|
|
15
|
+
would crash.
|
|
16
|
+
* Remove supports-color because it's not actually used. Uhm. Yes, I just
|
|
17
|
+
updated it. >.>
|
|
18
|
+
|
|
19
|
+
### v2.7.2
|
|
20
|
+
|
|
21
|
+
* Use supports-color instead of has-color (as the module has been renamed)
|
|
22
|
+
|
|
23
|
+
### v2.7.1
|
|
24
|
+
|
|
25
|
+
* Bug fix: Calls to show/pulse while the progress bar is disabled should still
|
|
26
|
+
update our internal representation of what would be shown should it be enabled.
|
|
27
|
+
|
|
28
|
+
### v2.7.0
|
|
29
|
+
|
|
30
|
+
* New feature: Add new `isEnabled` method to allow introspection of the gauge's
|
|
31
|
+
"enabledness" as controlled by `.enable()` and `.disable()`.
|
|
32
|
+
|
|
33
|
+
### v2.6.0
|
|
34
|
+
|
|
35
|
+
* Bug fix: Don't run the code associated with `enable`/`disable` if the gauge
|
|
36
|
+
is already enabled or disabled respectively. This prevents leaking event
|
|
37
|
+
listeners, amongst other weirdness.
|
|
38
|
+
* New feature: Template items can have default values that will be used if no
|
|
39
|
+
value was otherwise passed in.
|
|
40
|
+
|
|
41
|
+
### v2.5.3
|
|
42
|
+
|
|
43
|
+
* Default to `enabled` only if we have a tty. Users can always override
|
|
44
|
+
this by passing in the `enabled` option explicitly or by calling calling
|
|
45
|
+
`gauge.enable()`.
|
|
46
|
+
|
|
47
|
+
### v2.5.2
|
|
48
|
+
|
|
49
|
+
* Externalized `./console-strings.js` into `console-control-strings`.
|
|
50
|
+
|
|
51
|
+
### v2.5.1
|
|
52
|
+
|
|
53
|
+
* Update to `signal-exit@3.0.0`, which fixes a compatibility bug with the
|
|
54
|
+
node profiler.
|
|
55
|
+
* [#39](https://github.com/iarna/gauge/pull/39) Fix tests on 0.10 and add
|
|
56
|
+
a missing devDependency. ([@helloyou2012](https://github.com/helloyou2012))
|
|
57
|
+
|
|
58
|
+
### v2.5.0
|
|
59
|
+
|
|
60
|
+
* Add way to programmatically fetch a list of theme names in a themeset
|
|
61
|
+
(`Themeset.getThemeNames`).
|
|
62
|
+
|
|
63
|
+
### v2.4.0
|
|
64
|
+
|
|
65
|
+
* Add support for setting themesets on existing gauge objects.
|
|
66
|
+
* Add post-IO callback to `gauge.hide()` as it is somtetimes necessary when
|
|
67
|
+
your terminal is interleaving output from multiple filehandles (ie, stdout
|
|
68
|
+
& stderr).
|
|
69
|
+
|
|
70
|
+
### v2.3.1
|
|
71
|
+
|
|
72
|
+
* Fix a refactor bug in setTheme where it wasn't accepting the various types
|
|
73
|
+
of args it should.
|
|
74
|
+
|
|
75
|
+
### v2.3.0
|
|
76
|
+
|
|
77
|
+
#### FEATURES
|
|
78
|
+
|
|
79
|
+
* Add setTemplate & setTheme back in.
|
|
80
|
+
* Add support for named themes, you can now ask for things like 'colorASCII'
|
|
81
|
+
and 'brailleSpinner'. Of course, you can still pass in theme objects.
|
|
82
|
+
Additionally you can now pass in an object with `hasUnicode`, `hasColor` and
|
|
83
|
+
`platform` keys in order to override our guesses as to those values when
|
|
84
|
+
selecting a default theme from the themeset.
|
|
85
|
+
* Make the output stream optional (it defaults to `process.stderr` now).
|
|
86
|
+
* Add `setWriteTo(stream[, tty])` to change the output stream and,
|
|
87
|
+
optionally, tty.
|
|
88
|
+
|
|
89
|
+
#### BUG FIXES & REFACTORING
|
|
90
|
+
|
|
91
|
+
* Abort the display phase early if we're supposed to be hidden and we are.
|
|
92
|
+
* Stop printing a bunch of spaces at the end of lines, since we're already
|
|
93
|
+
using an erase-to-end-of-line code anyway.
|
|
94
|
+
* The unicode themes were missing the subsection separator.
|
|
95
|
+
|
|
96
|
+
### v2.2.1
|
|
97
|
+
|
|
98
|
+
* Fix image in readme
|
|
99
|
+
|
|
100
|
+
### v2.2.0
|
|
101
|
+
|
|
102
|
+
* All new themes API– reference themes by name and pass in custom themes and
|
|
103
|
+
themesets (themesets get platform support autodetection done on them to
|
|
104
|
+
select the best theme). Theme mixins let you add features to all existing
|
|
105
|
+
themes.
|
|
106
|
+
* Much, much improved test coverage.
|
|
107
|
+
|
|
108
|
+
### v2.1.0
|
|
109
|
+
|
|
110
|
+
* Got rid of ░ in the default platform, noUnicode, hasColor theme. Thanks
|
|
111
|
+
to @yongtw123 for pointing out this had snuck in.
|
|
112
|
+
* Fiddled with the demo output to make it easier to see the spinner spin. Also
|
|
113
|
+
added prints before each platforms test output.
|
|
114
|
+
* I forgot to include `signal-exit` in our deps. <.< Thank you @KenanY for
|
|
115
|
+
finding this. Then I was lazy and made a new commit instead of using his
|
|
116
|
+
PR. Again, thank you for your patience @KenenY.
|
|
117
|
+
* Drastically speed up travis testing.
|
|
118
|
+
* Add a small javascript demo (demo.js) for showing off the various themes
|
|
119
|
+
(and testing them on diff platforms).
|
|
120
|
+
* Change: The subsection separator from ⁄ and / (different chars) to >.
|
|
121
|
+
* Fix crasher: A show or pulse without a label would cause the template renderer
|
|
122
|
+
to complain about a missing value.
|
|
123
|
+
* New feature: Add the ability to disable the clean-up-on-exit behavior.
|
|
124
|
+
Not something I expect to be widely desirable, but important if you have
|
|
125
|
+
multiple distinct gauge instances in your app.
|
|
126
|
+
* Use our own color support detection.
|
|
127
|
+
The `has-color` module proved too magic for my needs, making assumptions
|
|
128
|
+
as to which stream we write to and reading command line arguments.
|
|
129
|
+
|
|
130
|
+
### v2.0.0
|
|
131
|
+
|
|
132
|
+
This is a major rewrite of the internals. Externally there are fewer
|
|
133
|
+
changes:
|
|
134
|
+
|
|
135
|
+
* On node>0.8 gauge object now prints updates at a fixed rate. This means
|
|
136
|
+
that when you call `show` it may wate up to `updateInterval` ms before it
|
|
137
|
+
actually prints an update. You override this behavior with the
|
|
138
|
+
`fixedFramerate` option.
|
|
139
|
+
* The gauge object now keeps the cursor hidden as long as it's enabled and
|
|
140
|
+
shown.
|
|
141
|
+
* The constructor's arguments have changed, now it takes a mandatory output
|
|
142
|
+
stream and an optional options object. The stream no longer needs to be
|
|
143
|
+
an `ansi`ified stream, although it can be if you want (but we won't make
|
|
144
|
+
use of its special features).
|
|
145
|
+
* Previously the gauge was disabled by default if `process.stdout` wasn't a
|
|
146
|
+
tty. Now it always defaults to enabled. If you want the previous
|
|
147
|
+
behavior set the `enabled` option to `process.stdout.isTTY`.
|
|
148
|
+
* The constructor's options have changed– see the docs for details.
|
|
149
|
+
* Themes are entirely different. If you were using a custom theme, or
|
|
150
|
+
referring to one directly (eg via `Gauge.unicode` or `Gauge.ascii`) then
|
|
151
|
+
you'll need to change your code. You can get the equivalent of the latter
|
|
152
|
+
with:
|
|
153
|
+
```
|
|
154
|
+
var themes = require('gauge/themes')
|
|
155
|
+
var unicodeTheme = themes(true, true) // returns the color unicode theme for your platform
|
|
156
|
+
```
|
|
157
|
+
The default themes no longer use any ambiguous width characters, so even
|
|
158
|
+
if you choose to display those as wide your progress bar should still
|
|
159
|
+
display correctly.
|
|
160
|
+
* Templates are entirely different and if you were using a custom one, you
|
|
161
|
+
should consult the documentation to learn how to recreate it. If you were
|
|
162
|
+
using the default, be aware that it has changed and the result looks quite
|
|
163
|
+
a bit different.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright (c) 2014, Rebecca Turner <me@re-becca.org>
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
+
copyright notice and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
13
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -4,15 +4,11 @@ var progressBar = require('./progress-bar.js')
|
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
activityIndicator: function (values, theme, width) {
|
|
7
|
-
if (values.spun == null)
|
|
8
|
-
return
|
|
9
|
-
}
|
|
7
|
+
if (values.spun == null) return
|
|
10
8
|
return spin(theme, values.spun)
|
|
11
9
|
},
|
|
12
10
|
progressbar: function (values, theme, width) {
|
|
13
|
-
if (values.completed == null)
|
|
14
|
-
return
|
|
15
|
-
}
|
|
11
|
+
if (values.completed == null) return
|
|
16
12
|
return progressBar(theme, width, values.completed)
|
|
17
|
-
}
|
|
13
|
+
}
|
|
18
14
|
}
|
|
File without changes
|
|
File without changes
|