@vercel/nft 0.13.1 → 0.14.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/out/analyze.js +1 -1
- package/out/utils/special-cases.js +12 -0
- package/package.json +6 -1
package/out/analyze.js
CHANGED
|
@@ -23,7 +23,7 @@ const node_gyp_build_1 = __importDefault(require("node-gyp-build"));
|
|
|
23
23
|
const node_pre_gyp_1 = __importDefault(require("@mapbox/node-pre-gyp"));
|
|
24
24
|
const url_1 = require("url");
|
|
25
25
|
// Note: these should be deprecated over time as they ship in Acorn core
|
|
26
|
-
const acorn = acorn_1.Parser.extend(require("acorn-class-fields"), require("acorn-static-class-features"));
|
|
26
|
+
const acorn = acorn_1.Parser.extend(require("acorn-class-fields"), require("acorn-static-class-features"), require("acorn-private-class-elements"));
|
|
27
27
|
const os_1 = __importDefault(require("os"));
|
|
28
28
|
const wrappers_1 = require("./utils/wrappers");
|
|
29
29
|
const resolve_from_1 = __importDefault(require("resolve-from"));
|
|
@@ -83,6 +83,18 @@ const specialCases = {
|
|
|
83
83
|
emitAssetDirectory(path_1.resolve(path_1.dirname(id), '..', 'bin'));
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
+
'remark-prism'({ id, emitAssetDirectory }) {
|
|
87
|
+
const file = 'remark-prism/src/highlight.js';
|
|
88
|
+
if (id.endsWith(file)) {
|
|
89
|
+
try {
|
|
90
|
+
const node_modules = id.slice(0, -file.length);
|
|
91
|
+
emitAssetDirectory(path_1.resolve(node_modules, 'prismjs', 'components'));
|
|
92
|
+
}
|
|
93
|
+
catch (e) {
|
|
94
|
+
// fail silently
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
86
98
|
'semver'({ id, emitAsset }) {
|
|
87
99
|
if (id.endsWith('semver/index.js')) {
|
|
88
100
|
// See https://github.com/npm/node-semver/blob/master/CHANGELOG.md#710
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/nft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"repository": "vercel/nft",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./out/index.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"@mapbox/node-pre-gyp": "^1.0.5",
|
|
23
23
|
"acorn": "^8.3.0",
|
|
24
24
|
"acorn-class-fields": "^1.0.0",
|
|
25
|
+
"acorn-private-class-elements": "^1.0.0",
|
|
25
26
|
"acorn-static-class-features": "^1.0.0",
|
|
26
27
|
"bindings": "^1.4.0",
|
|
27
28
|
"estree-walker": "^0.6.1",
|
|
@@ -102,10 +103,13 @@
|
|
|
102
103
|
"phantomjs-prebuilt": "^2.1.16",
|
|
103
104
|
"playwright-core": "^1.11.1",
|
|
104
105
|
"polyfill-library": "3.93.0",
|
|
106
|
+
"prismjs": "^1.24.1",
|
|
105
107
|
"pug": "^3.0.1",
|
|
106
108
|
"react": "^16.8.6",
|
|
107
109
|
"react-dom": "^16.8.6",
|
|
108
110
|
"redis": "^3.1.1",
|
|
111
|
+
"remark-parse": "^10.0.0",
|
|
112
|
+
"remark-prism": "^1.3.6",
|
|
109
113
|
"rxjs": "^6.5.2",
|
|
110
114
|
"saslprep": "^1.0.3",
|
|
111
115
|
"semver": "^7.1.1",
|
|
@@ -119,6 +123,7 @@
|
|
|
119
123
|
"twilio": "^3.33.0",
|
|
120
124
|
"typescript": "^3.9.6",
|
|
121
125
|
"uglify-js": "^3.6.0",
|
|
126
|
+
"unified": "^10.1.0",
|
|
122
127
|
"vm2": "^3.8.2",
|
|
123
128
|
"vue": "^2.6.10",
|
|
124
129
|
"vue-server-renderer": "^2.6.10",
|