@gregoriusrippenstein/node-red-contrib-nodedev 0.3.6 → 0.3.7

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.
@@ -190,7 +190,8 @@ module.exports = function (RED) {
190
190
  }
191
191
 
192
192
  pacote.manifest(
193
- msg.pkgname + "@" + msg.pkgversion
193
+ msg.pkgname + "@" + msg.pkgversion,
194
+ { registry: msg.pkgregistry || 'https://registry.npmjs.org' }
194
195
  ).then(manifest => {
195
196
  RED.comms.publish(
196
197
  "nodedev:perform-autoimport-nodes",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "@gregoriusrippenstein/node-red-contrib-nodedev",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "dependencies": {
5
5
  "pako": "^2.1.0",
6
6
  "tar-stream": "^3.1.6",
@@ -41,7 +41,8 @@
41
41
 
42
42
  data: JSON.stringify({
43
43
  pkgname: $("#node-input-nodefactorysidebar-package-name").val().trim(),
44
- pkgversion: $("#node-input-nodefactorysidebar-package-version").val().trim()
44
+ pkgversion: $("#node-input-nodefactorysidebar-package-version").val().trim(),
45
+ pkgregistry: $("#node-input-nodefactorysidebar-package-registry").val().trim()
45
46
  }),
46
47
 
47
48
  success: function (resp) {
@@ -210,6 +211,18 @@
210
211
  })
211
212
  $("#node-input-nodefactorysidebar-package-name").val(globalYourConfigNode.pkgname);
212
213
 
214
+ $("#node-input-nodefactorysidebar-package-registry").on("change", function() {
215
+ ensureYourConfigNodeExists();
216
+
217
+ let data = $(this).val();
218
+
219
+ if (globalYourConfigNode.pkgregistry != data) {
220
+ globalYourConfigNode.pkgregistry = data.trim();
221
+ RED.nodes.dirty(true);
222
+ }
223
+ })
224
+ $("#node-input-nodefactorysidebar-package-registry").val(globalYourConfigNode.pkgregistry);
225
+
213
226
  /*
214
227
  ************* OTP generator handlers
215
228
  */
@@ -370,6 +383,15 @@
370
383
  placeholder="3.5.0">
371
384
  </div>
372
385
 
386
+ <div class="form-row" style="margin-left: 10px;">
387
+ <label for="node-input-nodefactorysidebar-package-registry">
388
+ <i class="fa fa-tag"></i>
389
+ Registry
390
+ </label>
391
+ <input type="text" id="node-input-nodefactorysidebar-package-registry"
392
+ placeholder="https://registry.npmjs.org">
393
+ </div>
394
+
373
395
  <div class="form-row">
374
396
  <div style="position: relative; height: 100%; margin: 15px;">
375
397
  <button id="node-input-nodefactorysidebar-generate-btn"