easyprintand 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/index.js +7 -5
  2. package/package.json +6 -4
package/index.js CHANGED
@@ -1,6 +1,3 @@
1
-
2
-
3
-
4
1
  /**
5
2
  * Version 2.4.1 Copyright (C) 2013
6
3
  * Tested in IE 11, FF 28.0 and Chrome 33.0.1750.154
@@ -342,7 +339,13 @@
342
339
 
343
340
 
344
341
 
345
- module.exports = prindiv;
342
+ export default prindiv;
343
+ export { prindiv };
344
+
345
+ // Para CommonJS (compatibilidad)
346
+ if (typeof module !== 'undefined') {
347
+ module.exports = prindiv;
348
+ }
346
349
 
347
350
 
348
351
 
@@ -351,4 +354,3 @@
351
354
 
352
355
 
353
356
 
354
-
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "easyprintand",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Easily print the content of a DIV",
5
- "main": "EasyprintAnd.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
5
+ "main": "index.js",
6
+ "exports": {
7
+ "import": "./index.js",
8
+ "require": "./index.js"
8
9
  },
10
+ "type": "module",
9
11
  "author": "AndresLopez",
10
12
  "license": "ISC"
11
13
  }