Remove .js extention in require() use. Close #71

This commit is contained in:
Vitaly Puzrin 2016-02-17 10:48:46 +03:00
parent 99a2e4efdc
commit 50cd07afc4
8 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
'use strict'
var pako = require('../../../index.js');
var pako = require('../../../');
exports.run = function(data, level) {
return pako.deflate(data.typed, {

View file

@ -1,6 +1,6 @@
'use strict'
var pako = require('../../../index.js');
var pako = require('../../../');
exports.run = function(data) {
return pako.inflate(data.deflateString, {

View file

@ -1,6 +1,6 @@
'use strict'
var pako = require('../../../index.js');
var pako = require('../../../');
exports.run = function(data) {
return pako.inflate(data.deflateTyped, {

View file

@ -2,7 +2,7 @@
var fs = require('fs');
var path = require('path');
var pako = require('../index.js');
var pako = require('../');
var data = new Uint8Array(fs.readFileSync(path.join(__dirname, '/samples/lorem_1mb.txt')));

View file

@ -1,7 +1,7 @@
'use strict';
var zlib_deflate = require('./zlib/deflate.js');
var zlib_deflate = require('./zlib/deflate');
var utils = require('./utils/common');
var strings = require('./utils/strings');
var msg = require('./zlib/messages');

View file

@ -1,7 +1,7 @@
'use strict';
var zlib_inflate = require('./zlib/inflate.js');
var zlib_inflate = require('./zlib/inflate');
var utils = require('./utils/common');
var strings = require('./utils/strings');
var c = require('./zlib/constants');

View file

@ -12,7 +12,7 @@ var path = require('path');
var c = require('../lib/zlib/constants');
var msg = require('../lib/zlib/messages');
var zlib_deflate = require('../lib/zlib/deflate.js');
var zlib_deflate = require('../lib/zlib/deflate');
var ZStream = require('../lib/zlib/zstream');
var pako = require('../index');

View file

@ -11,7 +11,7 @@ var assert = require('assert');
var c = require('../lib/zlib/constants');
var msg = require('../lib/zlib/messages');
//var zlib_stream = require('../lib/zlib/zstream');
var zlib_inflate = require('../lib/zlib/inflate.js');
var zlib_inflate = require('../lib/zlib/inflate');
var inflate_table = require('../lib/zlib/inftrees');
var pako = require('../index');