browserify-rails 4.3.0 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/browserify-rails/browserify_processor.rb +5 -5
- data/lib/browserify-rails/version.rb +1 -1
- data/test/compilation_test.rb +1 -0
- data/test/dummy/app/assets/config/manifest.js +1 -0
- data/test/dummy/package-lock.json +2347 -0
- data/test/fixtures/application.changed.out.js +1 -1
- data/test/fixtures/application.foo_changed.out.js +1 -1
- data/test/fixtures/application.node_test_package_changed.out.js +2 -2
- data/test/fixtures/application.out.js +1 -1
- data/test/fixtures/js-with-sourcemap-url.out.js +2 -2
- data/test/fixtures/main.out.js +1 -1
- data/test/fixtures/mocha.js +1 -1
- data/test/fixtures/node_path_based_require.out.js +1 -1
- data/test/fixtures/plain.out.js +1 -1
- data/test/fixtures/secondary.out.js +1 -1
- data/test/fixtures/use_import.out.js +1 -1
- metadata +7 -4
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
console.log(foo(11));
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
var nodeTestPackage = require('node-test-package');
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
var nodeTestPackage = require('node-test-package');
|
4
4
|
|
@@ -10,6 +10,6 @@ module.exports = function (n) { return n * 11 }
|
|
10
10
|
module.exports.NESTED = true;
|
11
11
|
|
12
12
|
},{}],4:[function(require,module,exports){
|
13
|
-
module.exports = console.log("
|
13
|
+
module.exports = console.log("hello friend");
|
14
14
|
|
15
15
|
},{}]},{},[1]);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
var nodeTestPackage = require('node-test-package');
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
var nodeTestPackage = require('node-test-package');
|
4
4
|
|
@@ -13,4 +13,4 @@ module.exports.NESTED = true;
|
|
13
13
|
module.exports = console.log("hello friend");
|
14
14
|
|
15
15
|
},{}]},{},[1])
|
16
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
16
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJfc3RyZWFtXzAuanMiLCJmb28uanMiLCJuZXN0ZWQvaW5kZXguanMiLCIuLi8uLi8uLi9ub2RlX21vZHVsZXMvbm9kZS10ZXN0LXBhY2thZ2UvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUNBQTtBQUNBO0FBQ0E7O0FDRkE7QUFDQTtBQUNBOztBQ0ZBO0FBQ0E7O0FDREE7QUFDQSIsImZpbGUiOiJnZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc0NvbnRlbnQiOlsiKGZ1bmN0aW9uKCl7ZnVuY3Rpb24gcihlLG4sdCl7ZnVuY3Rpb24gbyhpLGYpe2lmKCFuW2ldKXtpZighZVtpXSl7dmFyIGM9XCJmdW5jdGlvblwiPT10eXBlb2YgcmVxdWlyZSYmcmVxdWlyZTtpZighZiYmYylyZXR1cm4gYyhpLCEwKTtpZih1KXJldHVybiB1KGksITApO3ZhciBhPW5ldyBFcnJvcihcIkNhbm5vdCBmaW5kIG1vZHVsZSAnXCIraStcIidcIik7dGhyb3cgYS5jb2RlPVwiTU9EVUxFX05PVF9GT1VORFwiLGF9dmFyIHA9bltpXT17ZXhwb3J0czp7fX07ZVtpXVswXS5jYWxsKHAuZXhwb3J0cyxmdW5jdGlvbihyKXt2YXIgbj1lW2ldWzFdW3JdO3JldHVybiBvKG58fHIpfSxwLHAuZXhwb3J0cyxyLGUsbix0KX1yZXR1cm4gbltpXS5leHBvcnRzfWZvcih2YXIgdT1cImZ1bmN0aW9uXCI9PXR5cGVvZiByZXF1aXJlJiZyZXF1aXJlLGk9MDtpPHQubGVuZ3RoO2krKylvKHRbaV0pO3JldHVybiBvfXJldHVybiByfSkoKSIsInZhciBmb28gPSByZXF1aXJlKCcuL2ZvbycpO1xudmFyIG5vZGVUZXN0UGFja2FnZSA9IHJlcXVpcmUoJ25vZGUtdGVzdC1wYWNrYWdlJyk7XG4iLCJyZXF1aXJlKCcuL25lc3RlZCcpO1xubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAobikgeyByZXR1cm4gbiAqIDExIH1cbiIsIm1vZHVsZS5leHBvcnRzLk5FU1RFRCA9IHRydWU7XG4iLCJtb2R1bGUuZXhwb3J0cyA9IGNvbnNvbGUubG9nKFwiaGVsbG8gZnJpZW5kXCIpO1xuIl19;
|
data/test/fixtures/main.out.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require=(function e
|
1
|
+
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var library = require('./a_huge_library');
|
3
3
|
|
4
4
|
module.exports = function() {
|
data/test/fixtures/mocha.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
(function() {
|
3
3
|
var f, hello;
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var answer = require('some_folder/answer');
|
3
3
|
|
4
4
|
console.log('answer', answer);
|
data/test/fixtures/plain.out.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var string = "good old, simple plain javascript. No fancy modules here";
|
3
3
|
|
4
4
|
},{}]},{},[1]);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var library = require('./a_huge_library');
|
3
3
|
|
4
4
|
module.exports = function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
var _simple_module = require('./simple_module');
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browserify-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henry Hsu, Cymen Vig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- test/browserify_processor_test.rb
|
175
175
|
- test/compilation_test.rb
|
176
176
|
- test/dummy/Rakefile
|
177
|
+
- test/dummy/app/assets/config/manifest.js
|
177
178
|
- test/dummy/app/assets/javascripts/a_huge_library.js.example
|
178
179
|
- test/dummy/app/assets/javascripts/app_a_huge_library.js.example
|
179
180
|
- test/dummy/app/assets/javascripts/app_main.js.example
|
@@ -219,6 +220,7 @@ files:
|
|
219
220
|
- test/dummy/config/initializers/wrap_parameters.rb
|
220
221
|
- test/dummy/config/locales/en.yml
|
221
222
|
- test/dummy/config/routes.rb
|
223
|
+
- test/dummy/package-lock.json
|
222
224
|
- test/dummy/package.json
|
223
225
|
- test/dummy/public/404.html
|
224
226
|
- test/dummy/public/422.html
|
@@ -262,8 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
264
|
- !ruby/object:Gem::Version
|
263
265
|
version: '0'
|
264
266
|
requirements: []
|
265
|
-
|
266
|
-
rubygems_version: 2.7.6
|
267
|
+
rubygems_version: 3.0.6
|
267
268
|
signing_key:
|
268
269
|
specification_version: 4
|
269
270
|
summary: 'Get the best of both worlds: Browserify + Rails = CommonJS Heaven'
|
@@ -271,6 +272,7 @@ test_files:
|
|
271
272
|
- test/browserify_processor_test.rb
|
272
273
|
- test/compilation_test.rb
|
273
274
|
- test/dummy/Rakefile
|
275
|
+
- test/dummy/app/assets/config/manifest.js
|
274
276
|
- test/dummy/app/assets/javascripts/a_huge_library.js.example
|
275
277
|
- test/dummy/app/assets/javascripts/app_a_huge_library.js.example
|
276
278
|
- test/dummy/app/assets/javascripts/app_main.js.example
|
@@ -316,6 +318,7 @@ test_files:
|
|
316
318
|
- test/dummy/config/initializers/wrap_parameters.rb
|
317
319
|
- test/dummy/config/locales/en.yml
|
318
320
|
- test/dummy/config/routes.rb
|
321
|
+
- test/dummy/package-lock.json
|
319
322
|
- test/dummy/package.json
|
320
323
|
- test/dummy/public/404.html
|
321
324
|
- test/dummy/public/422.html
|