fsevents 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/.travis.yml +1 -0
- package/install.js +2 -2
- package/node_modules/detect-libc/.npmignore +7 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +78 -0
- package/node_modules/detect-libc/bin/detect-libc.js +18 -0
- package/node_modules/detect-libc/lib/detect-libc.js +85 -0
- package/node_modules/detect-libc/package.json +70 -0
- package/node_modules/node-pre-gyp/CHANGELOG.md +18 -0
- package/node_modules/node-pre-gyp/README.md +2 -1
- package/node_modules/node-pre-gyp/appveyor.yml +15 -4
- package/node_modules/node-pre-gyp/bin/node-pre-gyp +5 -2
- package/node_modules/node-pre-gyp/lib/install.js +1 -1
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +92 -0
- package/node_modules/node-pre-gyp/lib/util/versioning.js +17 -0
- package/node_modules/node-pre-gyp/package.json +19 -19
- package/package.json +2 -2
- package/node_modules/node-pre-gyp/cloudformation/travis.template +0 -73
- package/node_modules/node-pre-gyp/template-name.diff +0 -12
package/.travis.yml
CHANGED
@@ -5,6 +5,7 @@ env:
|
|
5
5
|
- secure: "gve1nkeKkwFEG1VAT3i+JwYyAdF0gKXwKx0uxbkBTsmm2M+0MDusohQdFLoEIkSIFktXBIDefoa7iGpLKRfG2VsZLpwJgnvnD0HqbnuR+k+W+bu7BHt4CAaR6GTllsDCjyq9zNyhUThzSnf2WNIpOEF5kHspZlbGfawURuUJH/U="
|
6
6
|
- secure: "jqVpmWxxBVXu2X8+XJMpKH0cooc2EKz9xKL2znBfYdNafJORSXcFAVbjCX5mZmVDcgIMwDtm2+gIG4P73hzJ2e3S+y2Z9ROJGyXHa3AxUTvXHQsxqzH8coHHqB8vTvfr0t2O5aKfpvpICpSea39r0hzNoMv6Ie5SwBdqj1YY9K0="
|
7
7
|
matrix:
|
8
|
+
- NODE_VERSION="v9"
|
8
9
|
- NODE_VERSION="v8"
|
9
10
|
- NODE_VERSION="v7"
|
10
11
|
- NODE_VERSION="v6"
|
package/install.js
CHANGED
@@ -2,6 +2,6 @@ if (process.platform === 'darwin') {
|
|
2
2
|
var spawn = require('child_process').spawn;
|
3
3
|
var args = ['install', '--fallback-to-build'];
|
4
4
|
var options = {stdio: 'inherit'};
|
5
|
-
var child = spawn('node-pre-gyp', args, options);
|
5
|
+
var child = spawn(require.resolve('node-pre-gyp/bin/node-pre-gyp'), args, options);
|
6
6
|
child.on('close', process.exit);
|
7
|
-
}
|
7
|
+
}
|
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# detect-libc
|
2
|
+
|
3
|
+
Node.js module to detect the C standard library (libc) implementation
|
4
|
+
family and version in use on a given Linux system.
|
5
|
+
|
6
|
+
Provides a value suitable for use with the `LIBC` option of
|
7
|
+
[prebuild](https://www.npmjs.com/package/prebuild),
|
8
|
+
[prebuild-ci](https://www.npmjs.com/package/prebuild-ci) and
|
9
|
+
[prebuild-install](https://www.npmjs.com/package/prebuild-install),
|
10
|
+
therefore allowing build and provision of pre-compiled binaries
|
11
|
+
for musl-based Linux e.g. Alpine as well as glibc-based.
|
12
|
+
|
13
|
+
Currently supports libc detection of `glibc` and `musl`.
|
14
|
+
|
15
|
+
## Install
|
16
|
+
|
17
|
+
```sh
|
18
|
+
npm install detect-libc
|
19
|
+
```
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
### API
|
24
|
+
|
25
|
+
```js
|
26
|
+
const { GLIBC, MUSL, family, version, isNonGlibcLinux } = require('detect-libc');
|
27
|
+
```
|
28
|
+
|
29
|
+
* `GLIBC` is a String containing the value "glibc" for comparison with `family`.
|
30
|
+
* `MUSL` is a String containing the value "musl" for comparison with `family`.
|
31
|
+
* `family` is a String representing the system libc family.
|
32
|
+
* `version` is a String representing the system libc version number.
|
33
|
+
* `isNonGlibcLinux` is a Boolean representing whether the system is a non-glibc Linux, e.g. Alpine.
|
34
|
+
|
35
|
+
### detect-libc command line tool
|
36
|
+
|
37
|
+
When run on a Linux system with a non-glibc libc,
|
38
|
+
the child command will be run with the `LIBC` environment variable
|
39
|
+
set to the relevant value.
|
40
|
+
|
41
|
+
On all other platforms will run the child command as-is.
|
42
|
+
|
43
|
+
The command line feature requires `spawnSync` provided by Node v0.12+.
|
44
|
+
|
45
|
+
```sh
|
46
|
+
detect-libc child-command
|
47
|
+
```
|
48
|
+
|
49
|
+
## Integrating with prebuild
|
50
|
+
|
51
|
+
```json
|
52
|
+
"scripts": {
|
53
|
+
"install": "detect-libc prebuild-install || node-gyp rebuild",
|
54
|
+
"test": "mocha && detect-libc prebuild-ci"
|
55
|
+
},
|
56
|
+
"dependencies": {
|
57
|
+
"detect-libc": "^1.0.2",
|
58
|
+
"prebuild-install": "^2.2.0"
|
59
|
+
},
|
60
|
+
"devDependencies": {
|
61
|
+
"prebuild": "^6.2.1",
|
62
|
+
"prebuild-ci": "^2.2.3"
|
63
|
+
}
|
64
|
+
```
|
65
|
+
|
66
|
+
## Licence
|
67
|
+
|
68
|
+
Copyright 2017 Lovell Fuller
|
69
|
+
|
70
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
71
|
+
you may not use this file except in compliance with the License.
|
72
|
+
You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
|
73
|
+
|
74
|
+
Unless required by applicable law or agreed to in writing, software
|
75
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
76
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
77
|
+
See the License for the specific language governing permissions and
|
78
|
+
limitations under the License.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
'use strict';
|
4
|
+
|
5
|
+
var spawnSync = require('child_process').spawnSync;
|
6
|
+
var libc = require('../');
|
7
|
+
|
8
|
+
var spawnOptions = {
|
9
|
+
env: process.env,
|
10
|
+
shell: true,
|
11
|
+
stdio: 'inherit'
|
12
|
+
};
|
13
|
+
|
14
|
+
if (libc.isNonGlibcLinux) {
|
15
|
+
spawnOptions.env.LIBC = process.env.LIBC || libc.family;
|
16
|
+
}
|
17
|
+
|
18
|
+
process.exit(spawnSync(process.argv[2], process.argv.slice(3), spawnOptions).status);
|
@@ -0,0 +1,85 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var platform = require('os').platform();
|
4
|
+
var spawnSync = require('child_process').spawnSync;
|
5
|
+
var readdirSync = require('fs').readdirSync;
|
6
|
+
|
7
|
+
var GLIBC = 'glibc';
|
8
|
+
var MUSL = 'musl';
|
9
|
+
|
10
|
+
var spawnOptions = {
|
11
|
+
encoding: 'utf8',
|
12
|
+
env: process.env
|
13
|
+
};
|
14
|
+
|
15
|
+
if (!spawnSync) {
|
16
|
+
spawnSync = function () {
|
17
|
+
return { status: 126, stdout: '', stderr: '' };
|
18
|
+
};
|
19
|
+
}
|
20
|
+
|
21
|
+
function contains (needle) {
|
22
|
+
return function (haystack) {
|
23
|
+
return haystack.indexOf(needle) !== -1;
|
24
|
+
};
|
25
|
+
}
|
26
|
+
|
27
|
+
function versionFromMuslLdd (out) {
|
28
|
+
return out.split(/[\r\n]+/)[1].trim().split(/\s/)[1];
|
29
|
+
}
|
30
|
+
|
31
|
+
var family = '';
|
32
|
+
var version = '';
|
33
|
+
var method = '';
|
34
|
+
|
35
|
+
if (platform === 'linux') {
|
36
|
+
// Try getconf
|
37
|
+
var glibc = spawnSync('getconf', ['GNU_LIBC_VERSION'], spawnOptions);
|
38
|
+
if (glibc.status === 0) {
|
39
|
+
family = GLIBC;
|
40
|
+
version = glibc.stdout.trim().split(' ')[1];
|
41
|
+
method = 'getconf';
|
42
|
+
} else {
|
43
|
+
// Try ldd
|
44
|
+
var ldd = spawnSync('ldd', ['--version'], spawnOptions);
|
45
|
+
if (ldd.status === 0 && ldd.stdout.indexOf(MUSL) !== -1) {
|
46
|
+
family = MUSL;
|
47
|
+
version = versionFromMuslLdd(ldd.stdout);
|
48
|
+
method = 'ldd';
|
49
|
+
} else if (ldd.status === 1 && ldd.stderr.indexOf(MUSL) !== -1) {
|
50
|
+
family = MUSL;
|
51
|
+
version = versionFromMuslLdd(ldd.stderr);
|
52
|
+
method = 'ldd';
|
53
|
+
} else {
|
54
|
+
// Try filesystem (family only)
|
55
|
+
try {
|
56
|
+
var lib = readdirSync('/lib');
|
57
|
+
var usrSbin = readdirSync('/usr/sbin');
|
58
|
+
if (lib.some(contains('-linux-gnu'))) {
|
59
|
+
family = GLIBC;
|
60
|
+
method = 'filesystem';
|
61
|
+
} else if (lib.some(contains('libc.musl-'))) {
|
62
|
+
family = MUSL;
|
63
|
+
method = 'filesystem';
|
64
|
+
} else if (lib.some(contains('ld-musl-'))) {
|
65
|
+
family = MUSL;
|
66
|
+
method = 'filesystem';
|
67
|
+
} else if (usrSbin.some(contains('glibc'))) {
|
68
|
+
family = GLIBC;
|
69
|
+
method = 'filesystem';
|
70
|
+
}
|
71
|
+
} catch (e) {}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
var isNonGlibcLinux = (family !== '' && family !== GLIBC);
|
77
|
+
|
78
|
+
module.exports = {
|
79
|
+
GLIBC: GLIBC,
|
80
|
+
MUSL: MUSL,
|
81
|
+
family: family,
|
82
|
+
version: version,
|
83
|
+
method: method,
|
84
|
+
isNonGlibcLinux: isNonGlibcLinux
|
85
|
+
};
|
@@ -0,0 +1,70 @@
|
|
1
|
+
{
|
2
|
+
"_from": "detect-libc@^1.0.2",
|
3
|
+
"_id": "detect-libc@1.0.2",
|
4
|
+
"_inBundle": false,
|
5
|
+
"_integrity": "sha1-ca1dIEvxempsqPRQxhRUBm70YeE=",
|
6
|
+
"_location": "/detect-libc",
|
7
|
+
"_phantomChildren": {},
|
8
|
+
"_requested": {
|
9
|
+
"type": "range",
|
10
|
+
"registry": true,
|
11
|
+
"raw": "detect-libc@^1.0.2",
|
12
|
+
"name": "detect-libc",
|
13
|
+
"escapedName": "detect-libc",
|
14
|
+
"rawSpec": "^1.0.2",
|
15
|
+
"saveSpec": null,
|
16
|
+
"fetchSpec": "^1.0.2"
|
17
|
+
},
|
18
|
+
"_requiredBy": [
|
19
|
+
"/node-pre-gyp"
|
20
|
+
],
|
21
|
+
"_resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.2.tgz",
|
22
|
+
"_shasum": "71ad5d204bf17a6a6ca8f450c61454066ef461e1",
|
23
|
+
"_spec": "detect-libc@^1.0.2",
|
24
|
+
"_where": "/Users/eshanker/Code/fsevents/node_modules/node-pre-gyp",
|
25
|
+
"author": {
|
26
|
+
"name": "Lovell Fuller",
|
27
|
+
"email": "npm@lovell.info"
|
28
|
+
},
|
29
|
+
"bin": {
|
30
|
+
"detect-libc": "./bin/detect-libc.js"
|
31
|
+
},
|
32
|
+
"bugs": {
|
33
|
+
"url": "https://github.com/lovell/detect-libc/issues"
|
34
|
+
},
|
35
|
+
"bundleDependencies": false,
|
36
|
+
"contributors": [
|
37
|
+
{
|
38
|
+
"name": "Niklas Salmoukas",
|
39
|
+
"email": "niklas@salmoukas.com"
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"deprecated": false,
|
43
|
+
"description": "Node.js module to detect the C standard library (libc) implementation family and version",
|
44
|
+
"devDependencies": {
|
45
|
+
"ava": "^0.23.0",
|
46
|
+
"nyc": "^11.3.0",
|
47
|
+
"proxyquire": "^1.8.0",
|
48
|
+
"semistandard": "^11.0.0"
|
49
|
+
},
|
50
|
+
"engines": {
|
51
|
+
"node": ">=0.10"
|
52
|
+
},
|
53
|
+
"homepage": "https://github.com/lovell/detect-libc#readme",
|
54
|
+
"keywords": [
|
55
|
+
"libc",
|
56
|
+
"glibc",
|
57
|
+
"musl"
|
58
|
+
],
|
59
|
+
"license": "Apache-2.0",
|
60
|
+
"main": "lib/detect-libc.js",
|
61
|
+
"name": "detect-libc",
|
62
|
+
"repository": {
|
63
|
+
"type": "git",
|
64
|
+
"url": "git://github.com/lovell/detect-libc.git"
|
65
|
+
},
|
66
|
+
"scripts": {
|
67
|
+
"test": "semistandard && nyc --reporter=lcov ava"
|
68
|
+
},
|
69
|
+
"version": "1.0.2"
|
70
|
+
}
|
@@ -1,5 +1,23 @@
|
|
1
1
|
# node-pre-gyp changelog
|
2
2
|
|
3
|
+
## 0.6.39
|
4
|
+
|
5
|
+
- Support for node v9
|
6
|
+
- Support for versioning on `{libc}` to allow binaries to work on non-glic linux systems like alpine linux
|
7
|
+
|
8
|
+
|
9
|
+
## 0.6.38
|
10
|
+
|
11
|
+
- Maintaining compatibility (for v0.6.x series) with node v0.10.x
|
12
|
+
|
13
|
+
## 0.6.37
|
14
|
+
|
15
|
+
- Solved one part of #276: now now deduce the node ABI from the major version for node >= 2 even when not stored in the abi_crosswalk.json
|
16
|
+
- Fixed docs to avoid mentioning the deprecated and dangerous `prepublish` in package.json (#291)
|
17
|
+
- Add new node versions to crosswalk
|
18
|
+
- Ported tests to use tape instead of mocha
|
19
|
+
- Got appveyor tests passing by downgrading npm and node-gyp
|
20
|
+
|
3
21
|
## 0.6.36
|
4
22
|
|
5
23
|
- Removed the running of `testbinary` during install. Because this was regressed for so long, it is too dangerous to re-enable by default. Developers needing validation can call `node-pre-gyp testbinary` directory.
|
@@ -124,7 +124,7 @@ Let's break this down:
|
|
124
124
|
- Dependencies need to list `node-pre-gyp`
|
125
125
|
- Your devDependencies should list `aws-sdk` so that you can run `node-pre-gyp publish` locally or a CI system. We recommend using `devDependencies` only since `aws-sdk` is large and not needed for `node-pre-gyp install` since it only uses http to fetch binaries
|
126
126
|
- You should add `"bundledDependencies":["node-pre-gyp"]`. This ensures that when you publish your module that the correct version of node-pre-gyp will be included in the `node_modules` folder during publishing. Then when uses install your module `node-pre-gyp` will already be present. Without this your module will not be safely installable for downstream applications that have a depedency on node-pre-gyp in the npm tree (without bundling npm deduping might break the install when node-pre-gyp is moved in flight)
|
127
|
-
- Your `scripts` section should optionally add `"
|
127
|
+
- Your `scripts` section should optionally add `"prepublishOnly": "npm ls"` to ensure the right node-pre-gyp version is bundled before publishing your module. If node-pre-gyp is missing or an old version is present then this will catch that error before you publish a broken package.
|
128
128
|
- Your `scripts` section should override the `install` target with `"install": "node-pre-gyp install --fallback-to-build"`. This allows node-pre-gyp to be used instead of the default npm behavior of always source compiling with `node-gyp` directly.
|
129
129
|
- Your package.json should contain a `binary` section describing key properties you provide to allow node-pre-gyp to package optimally. They are detailed below.
|
130
130
|
|
@@ -562,6 +562,7 @@ The `binary` properties of `module_path`, `remote_path`, and `package_name` supp
|
|
562
562
|
- `node_abi`: The node C++ `ABI` number. This value is available in Javascript as `process.versions.modules` as of [`>= v0.10.4 >= v0.11.7`](https://github.com/joyent/node/commit/ccabd4a6fa8a6eb79d29bc3bbe9fe2b6531c2d8e) and in C++ as the `NODE_MODULE_VERSION` define much earlier. For versions of Node before this was available we fallback to the V8 major and minor version.
|
563
563
|
- `platform` matches node's `process.platform` like `linux`, `darwin`, and `win32` unless the user passed the `--target_platform` option to override.
|
564
564
|
- `arch` matches node's `process.arch` like `x64` or `ia32` unless the user passes the `--target_arch` option to override.
|
565
|
+
- `libc` matches `require('detect-libc').family` like `glibc` or `musl` unless the user passes the `--target_libc` option to override.
|
565
566
|
- `configuration` - Either 'Release' or 'Debug' depending on if `--debug` is passed during the build.
|
566
567
|
- `module_name` - the `binary.module_name` attribute from `package.json`.
|
567
568
|
- `version` - the semver `version` value for your module from `package.json` (NOTE: ignores the `semver.build` property).
|
@@ -5,6 +5,8 @@ environment:
|
|
5
5
|
- nodejs_version: 0.10
|
6
6
|
- nodejs_version: 4
|
7
7
|
- nodejs_version: 6
|
8
|
+
- nodejs_version: 8
|
9
|
+
- nodejs_version: 9
|
8
10
|
|
9
11
|
platform:
|
10
12
|
- x64
|
@@ -15,13 +17,22 @@ shallow_clone: true
|
|
15
17
|
install:
|
16
18
|
- ps: Install-Product node $env:nodejs_version $env:Platform
|
17
19
|
- ps: Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
|
20
|
+
- npm config get
|
21
|
+
# upgrade node-gyp to dodge 2013 compile issue present in the node gyp bundled with node v0.10
|
18
22
|
# https://github.com/nodejs/node-gyp/issues/972#issuecomment-231055109
|
19
|
-
|
23
|
+
# but we upgrade using my fork since 3.x upstream will now break node v0.10.x support
|
24
|
+
- IF "%nodejs_version:~0,1%"=="0" npm install https://github.com/springmeyer/node-gyp/tarball/v3.x
|
25
|
+
# upgrade node-gyp to dodge https://github.com/mapbox/node-pre-gyp/issues/209#issuecomment-307641388
|
26
|
+
# and allow make node 4.x x86 builds work
|
27
|
+
# https://github.com/mapbox/node-pre-gyp/issues/209#issuecomment-217690537
|
28
|
+
- IF "%nodejs_version:~0,1%"=="4" npm install node-gyp@3.x
|
29
|
+
# downgrade npm to avoid multiple npm bugs:
|
30
|
+
# for node v6 this dodges npm 3.10.10 bug whereby --nodedir/--dist-url is not passed to node-gyp (https://github.com/mapbox/node-pre-gyp/issues/300)
|
31
|
+
# for all node x86 versions this dodges a mysterious ELIFECYCLE error: https://ci.appveyor.com/project/Mapbox/node-pre-gyp/build/1.0.582/job/b8q2nud6vkj0s6qo#L233
|
32
|
+
# for node v8 this dodges https://github.com/mapbox/node-pre-gyp/issues/302
|
33
|
+
- npm install npm@2.x -g
|
20
34
|
- node --version
|
21
35
|
- npm --version
|
22
|
-
#- SET PATH=%APPDATA%\npm;%PATH%
|
23
|
-
#- npm install -g node-gyp
|
24
|
-
- npm install -g node-gyp@3.2.1
|
25
36
|
- node -e "console.log(process.arch);"
|
26
37
|
- IF /I "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH%
|
27
38
|
- IF /I "%PLATFORM%" == "x86" SET PATH=C:\python27;%PATH%
|
@@ -26,10 +26,13 @@ prog.parseArgv(process.argv);
|
|
26
26
|
if (prog.todo.length === 0) {
|
27
27
|
if (~process.argv.indexOf('-v') || ~process.argv.indexOf('--version')) {
|
28
28
|
console.log('v%s', prog.version);
|
29
|
-
|
29
|
+
return process.exit(0);
|
30
|
+
} else if (~process.argv.indexOf('-h') || ~process.argv.indexOf('--help')) {
|
30
31
|
console.log('%s', prog.usage());
|
32
|
+
return process.exit(0);
|
31
33
|
}
|
32
|
-
|
34
|
+
console.log('%s', prog.usage());
|
35
|
+
return process.exit(1);
|
33
36
|
}
|
34
37
|
|
35
38
|
// if --no-color is passed
|
@@ -133,7 +133,7 @@ function do_build(gyp,argv,callback) {
|
|
133
133
|
function print_fallback_error(err,opts,package_json) {
|
134
134
|
var fallback_message = ' (falling back to source compile with node-gyp)';
|
135
135
|
var full_message = "Pre-built binaries not found for " + package_json.name + "@" + package_json.version;
|
136
|
-
full_message += " and " + opts.runtime + "@" + (opts.target || process.versions.node) + " (" + opts.node_abi + " ABI)";
|
136
|
+
full_message += " and " + opts.runtime + "@" + (opts.target || process.versions.node) + " (" + opts.node_abi + " ABI, " + opts.libc + ")";
|
137
137
|
full_message += fallback_message;
|
138
138
|
log.error("Tried to download(" + err.statusCode + "): " + opts.hosted_tarball);
|
139
139
|
log.error(full_message);
|
@@ -1247,6 +1247,10 @@
|
|
1247
1247
|
"node_abi": 46,
|
1248
1248
|
"v8": "4.5"
|
1249
1249
|
},
|
1250
|
+
"4.8.4": {
|
1251
|
+
"node_abi": 46,
|
1252
|
+
"v8": "4.5"
|
1253
|
+
},
|
1250
1254
|
"5.0.0": {
|
1251
1255
|
"node_abi": 47,
|
1252
1256
|
"v8": "4.6"
|
@@ -1415,6 +1419,30 @@
|
|
1415
1419
|
"node_abi": 48,
|
1416
1420
|
"v8": "5.1"
|
1417
1421
|
},
|
1422
|
+
"6.11.0": {
|
1423
|
+
"node_abi": 48,
|
1424
|
+
"v8": "5.1"
|
1425
|
+
},
|
1426
|
+
"6.11.1": {
|
1427
|
+
"node_abi": 48,
|
1428
|
+
"v8": "5.1"
|
1429
|
+
},
|
1430
|
+
"6.11.2": {
|
1431
|
+
"node_abi": 48,
|
1432
|
+
"v8": "5.1"
|
1433
|
+
},
|
1434
|
+
"6.11.3": {
|
1435
|
+
"node_abi": 48,
|
1436
|
+
"v8": "5.1"
|
1437
|
+
},
|
1438
|
+
"6.11.4": {
|
1439
|
+
"node_abi": 48,
|
1440
|
+
"v8": "5.1"
|
1441
|
+
},
|
1442
|
+
"6.11.5": {
|
1443
|
+
"node_abi": 48,
|
1444
|
+
"v8": "5.1"
|
1445
|
+
},
|
1418
1446
|
"7.0.0": {
|
1419
1447
|
"node_abi": 51,
|
1420
1448
|
"v8": "5.4"
|
@@ -1479,8 +1507,72 @@
|
|
1479
1507
|
"node_abi": 51,
|
1480
1508
|
"v8": "5.5"
|
1481
1509
|
},
|
1510
|
+
"7.10.1": {
|
1511
|
+
"node_abi": 51,
|
1512
|
+
"v8": "5.5"
|
1513
|
+
},
|
1482
1514
|
"8.0.0": {
|
1483
1515
|
"node_abi": 57,
|
1484
1516
|
"v8": "5.8"
|
1517
|
+
},
|
1518
|
+
"8.1.0": {
|
1519
|
+
"node_abi": 57,
|
1520
|
+
"v8": "5.8"
|
1521
|
+
},
|
1522
|
+
"8.1.1": {
|
1523
|
+
"node_abi": 57,
|
1524
|
+
"v8": "5.8"
|
1525
|
+
},
|
1526
|
+
"8.1.2": {
|
1527
|
+
"node_abi": 57,
|
1528
|
+
"v8": "5.8"
|
1529
|
+
},
|
1530
|
+
"8.1.3": {
|
1531
|
+
"node_abi": 57,
|
1532
|
+
"v8": "5.8"
|
1533
|
+
},
|
1534
|
+
"8.1.4": {
|
1535
|
+
"node_abi": 57,
|
1536
|
+
"v8": "5.8"
|
1537
|
+
},
|
1538
|
+
"8.2.0": {
|
1539
|
+
"node_abi": 57,
|
1540
|
+
"v8": "5.8"
|
1541
|
+
},
|
1542
|
+
"8.2.1": {
|
1543
|
+
"node_abi": 57,
|
1544
|
+
"v8": "5.8"
|
1545
|
+
},
|
1546
|
+
"8.3.0": {
|
1547
|
+
"node_abi": 57,
|
1548
|
+
"v8": "6.0"
|
1549
|
+
},
|
1550
|
+
"8.4.0": {
|
1551
|
+
"node_abi": 57,
|
1552
|
+
"v8": "6.0"
|
1553
|
+
},
|
1554
|
+
"8.5.0": {
|
1555
|
+
"node_abi": 57,
|
1556
|
+
"v8": "6.0"
|
1557
|
+
},
|
1558
|
+
"8.6.0": {
|
1559
|
+
"node_abi": 57,
|
1560
|
+
"v8": "6.0"
|
1561
|
+
},
|
1562
|
+
"8.7.0": {
|
1563
|
+
"node_abi": 57,
|
1564
|
+
"v8": "6.1"
|
1565
|
+
},
|
1566
|
+
"8.8.0": {
|
1567
|
+
"node_abi": 57,
|
1568
|
+
"v8": "6.1"
|
1569
|
+
},
|
1570
|
+
"8.9.0": {
|
1571
|
+
"node_abi": 57,
|
1572
|
+
"v8": "6.1"
|
1573
|
+
},
|
1574
|
+
"9.0.0": {
|
1575
|
+
"node_abi": 59,
|
1576
|
+
"v8": "6.2"
|
1485
1577
|
}
|
1486
1578
|
}
|
@@ -5,6 +5,7 @@ module.exports = exports;
|
|
5
5
|
var path = require('path');
|
6
6
|
var semver = require('semver');
|
7
7
|
var url = require('url');
|
8
|
+
var detect_libc = require('detect-libc');
|
8
9
|
|
9
10
|
var abi_crosswalk;
|
10
11
|
|
@@ -17,6 +18,14 @@ if (process.env.NODE_PRE_GYP_ABI_CROSSWALK) {
|
|
17
18
|
abi_crosswalk = require('./abi_crosswalk.json');
|
18
19
|
}
|
19
20
|
|
21
|
+
var major_versions = {};
|
22
|
+
Object.keys(abi_crosswalk).forEach(function(v) {
|
23
|
+
var major = v.split('.')[0];
|
24
|
+
if (!major_versions[major]) {
|
25
|
+
major_versions[major] = v;
|
26
|
+
}
|
27
|
+
});
|
28
|
+
|
20
29
|
function get_electron_abi(runtime, target_version) {
|
21
30
|
if (!runtime) {
|
22
31
|
throw new Error("get_electron_abi requires valid runtime arg");
|
@@ -136,6 +145,13 @@ function get_runtime_abi(runtime, target_version) {
|
|
136
145
|
break;
|
137
146
|
}
|
138
147
|
}
|
148
|
+
} else if (major >= 2) {
|
149
|
+
// look for last release that is the same major version
|
150
|
+
if (major_versions[major]) {
|
151
|
+
cross_obj = abi_crosswalk[major_versions[major]];
|
152
|
+
console.log('Warning: node-pre-gyp could not find exact match for ' + target_version);
|
153
|
+
console.log('Warning: but node-pre-gyp successfully choose ' + major_versions[major] + ' as ABI compatible target');
|
154
|
+
}
|
139
155
|
} else if (major === 0) { // node.js
|
140
156
|
if (target_parts[1] % 2 === 0) { // for stable/even node.js series
|
141
157
|
// look for the last release that is the same minor release
|
@@ -280,6 +296,7 @@ module.exports.evaluate = function(package_json,options) {
|
|
280
296
|
target_platform: options.target_platform || process.platform,
|
281
297
|
arch: options.target_arch || process.arch,
|
282
298
|
target_arch: options.target_arch || process.arch,
|
299
|
+
libc: options.target_libc || detect_libc.family || 'unknown',
|
283
300
|
module_main: package_json.main,
|
284
301
|
toolset : options.toolset || '' // address https://github.com/mapbox/node-pre-gyp/issues/119
|
285
302
|
};
|
@@ -1,27 +1,26 @@
|
|
1
1
|
{
|
2
|
-
"_from": "node-pre-gyp@^0.6.
|
3
|
-
"_id": "node-pre-gyp@0.6.
|
2
|
+
"_from": "node-pre-gyp@^0.6.39",
|
3
|
+
"_id": "node-pre-gyp@0.6.39",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "
|
5
|
+
"_integrity": "sha512-OsJV74qxnvz/AMGgcfZoDaeDXKD3oY3QVIbBmwszTFkRisTSXbMQyn4UWzUMOtA5SVhrBZOTp0wcoSBgfMfMmQ==",
|
6
6
|
"_location": "/node-pre-gyp",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
9
9
|
"type": "range",
|
10
10
|
"registry": true,
|
11
|
-
"raw": "node-pre-gyp@^0.6.
|
11
|
+
"raw": "node-pre-gyp@^0.6.39",
|
12
12
|
"name": "node-pre-gyp",
|
13
13
|
"escapedName": "node-pre-gyp",
|
14
|
-
"rawSpec": "^0.6.
|
14
|
+
"rawSpec": "^0.6.39",
|
15
15
|
"saveSpec": null,
|
16
|
-
"fetchSpec": "^0.6.
|
16
|
+
"fetchSpec": "^0.6.39"
|
17
17
|
},
|
18
18
|
"_requiredBy": [
|
19
|
-
"#USER",
|
20
19
|
"/"
|
21
20
|
],
|
22
|
-
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.
|
23
|
-
"_shasum": "
|
24
|
-
"_spec": "node-pre-gyp@^0.6.
|
21
|
+
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz",
|
22
|
+
"_shasum": "c00e96860b23c0e1420ac7befc5044e1d78d8649",
|
23
|
+
"_spec": "node-pre-gyp@^0.6.39",
|
25
24
|
"_where": "/Users/eshanker/Code/fsevents",
|
26
25
|
"author": {
|
27
26
|
"name": "Dane Springmeyer",
|
@@ -35,11 +34,13 @@
|
|
35
34
|
},
|
36
35
|
"bundleDependencies": false,
|
37
36
|
"dependencies": {
|
37
|
+
"detect-libc": "^1.0.2",
|
38
|
+
"hawk": "3.1.3",
|
38
39
|
"mkdirp": "^0.5.1",
|
39
40
|
"nopt": "^4.0.1",
|
40
41
|
"npmlog": "^4.0.2",
|
41
42
|
"rc": "^1.1.7",
|
42
|
-
"request": "
|
43
|
+
"request": "2.81.0",
|
43
44
|
"rimraf": "^2.6.1",
|
44
45
|
"semver": "^5.3.0",
|
45
46
|
"tar": "^2.2.1",
|
@@ -50,17 +51,16 @@
|
|
50
51
|
"devDependencies": {
|
51
52
|
"aws-sdk": "^2.28.0",
|
52
53
|
"jshint": "^2.9.4",
|
53
|
-
"
|
54
|
-
"
|
54
|
+
"retire": "^1.2.12",
|
55
|
+
"tape": "^4.6.3"
|
55
56
|
},
|
56
57
|
"homepage": "https://github.com/mapbox/node-pre-gyp#readme",
|
57
58
|
"jshintConfig": {
|
58
59
|
"node": true,
|
59
60
|
"globalstrict": true,
|
60
61
|
"undef": true,
|
61
|
-
"unused":
|
62
|
-
"noarg": true
|
63
|
-
"mocha": true
|
62
|
+
"unused": false,
|
63
|
+
"noarg": true
|
64
64
|
},
|
65
65
|
"keywords": [
|
66
66
|
"native",
|
@@ -79,9 +79,9 @@
|
|
79
79
|
"url": "git://github.com/mapbox/node-pre-gyp.git"
|
80
80
|
},
|
81
81
|
"scripts": {
|
82
|
-
"pretest": "
|
83
|
-
"test": "jshint lib lib/util scripts bin/node-pre-gyp &&
|
82
|
+
"pretest": "jshint test/build.test.js test/s3_setup.test.js test/versioning.test.js lib lib/util scripts bin/node-pre-gyp",
|
83
|
+
"test": "jshint lib lib/util scripts bin/node-pre-gyp && tape test/*test.js",
|
84
84
|
"update-crosswalk": "node scripts/abi_crosswalk.js"
|
85
85
|
},
|
86
|
-
"version": "0.6.
|
86
|
+
"version": "0.6.39"
|
87
87
|
}
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "fsevents",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.3",
|
4
4
|
"description": "Native Access to Mac OS-X FSEvents",
|
5
5
|
"main": "fsevents.js",
|
6
6
|
"dependencies": {
|
7
7
|
"nan": "^2.3.0",
|
8
|
-
"node-pre-gyp": "^0.6.
|
8
|
+
"node-pre-gyp": "^0.6.39"
|
9
9
|
},
|
10
10
|
"os": [
|
11
11
|
"darwin"
|
@@ -1,73 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"AWSTemplateFormatVersion": "2010-09-09",
|
3
|
-
"Description": "node-pre-gyp bucket resources",
|
4
|
-
"Resources": {
|
5
|
-
"BuildUser": {
|
6
|
-
"Type": "AWS::IAM::User",
|
7
|
-
"Properties": {
|
8
|
-
"Policies": [
|
9
|
-
{
|
10
|
-
"PolicyName": "list",
|
11
|
-
"PolicyDocument": {
|
12
|
-
"Statement": [
|
13
|
-
{
|
14
|
-
"Action": [
|
15
|
-
"s3:ListBucket"
|
16
|
-
],
|
17
|
-
"Effect": "Allow",
|
18
|
-
"Resource": [
|
19
|
-
"arn:aws:s3:::mason-binaries"
|
20
|
-
]
|
21
|
-
}
|
22
|
-
]
|
23
|
-
}
|
24
|
-
},
|
25
|
-
{
|
26
|
-
"PolicyName": "build",
|
27
|
-
"PolicyDocument": {
|
28
|
-
"Statement": [
|
29
|
-
{
|
30
|
-
"Action": [
|
31
|
-
"s3:DeleteObject",
|
32
|
-
"s3:GetObject",
|
33
|
-
"s3:GetObjectAcl",
|
34
|
-
"s3:PutObject",
|
35
|
-
"s3:PutObjectAcl"
|
36
|
-
],
|
37
|
-
"Effect": "Allow",
|
38
|
-
"Resource": [
|
39
|
-
"arn:aws:s3:::mason-binaries/*"
|
40
|
-
]
|
41
|
-
}
|
42
|
-
]
|
43
|
-
}
|
44
|
-
}
|
45
|
-
]
|
46
|
-
}
|
47
|
-
},
|
48
|
-
"BuildUserKey": {
|
49
|
-
"Type": "AWS::IAM::AccessKey",
|
50
|
-
"Properties": {
|
51
|
-
"UserName": {
|
52
|
-
"Ref": "BuildUser"
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
},
|
57
|
-
"Outputs": {
|
58
|
-
"AccessKeyId": {
|
59
|
-
"Value": {
|
60
|
-
"Ref": "BuildUserKey"
|
61
|
-
}
|
62
|
-
},
|
63
|
-
"SecretAccessKey": {
|
64
|
-
"Value": {
|
65
|
-
"Fn::GetAtt": [
|
66
|
-
"BuildUserKey",
|
67
|
-
"SecretAccessKey"
|
68
|
-
]
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
@@ -1,12 +0,0 @@
|
|
1
|
-
diff --git a/lib/util/versioning.js b/lib/util/versioning.js
|
2
|
-
index 8ebbe3a..13e1e0b 100644
|
3
|
-
--- a/lib/util/versioning.js
|
4
|
-
+++ b/lib/util/versioning.js
|
5
|
-
@@ -283,6 +283,7 @@ module.exports.evaluate = function(package_json,options) {
|
6
|
-
module_main: package_json.main,
|
7
|
-
toolset : options.toolset || '' // address https://github.com/mapbox/node-pre-gyp/issues/119
|
8
|
-
};
|
9
|
-
+ opts.module_name = eval_template(opts.module_name,opts);
|
10
|
-
// support host mirror with npm config `--{module_name}_binary_host_mirror`
|
11
|
-
// e.g.: https://github.com/node-inspector/v8-profiler/blob/master/package.json#L25
|
12
|
-
// > npm install v8-profiler --profiler_binary_host_mirror=https://npm.taobao.org/mirrors/node-inspector/
|