version bump 1.3.1: prevent browserify require

Addresses js-xlsx GH issue 76
This commit is contained in:
SheetJS 2014-06-27 09:43:31 -04:00
parent 9e792fd4de
commit 883b83265a
8 changed files with 11 additions and 7 deletions

@ -33,6 +33,10 @@ lint:
jshint --show-non-errors $(TARGETS)
jscs $(TARGETS)
.PHONY: ctest
ctest:
bash ctest/fixtures.sh
.PHONY: cov cov-spin
cov: misc/coverage.html
cov-spin:

@ -712,7 +712,7 @@ describe('failures', function() {
```json>package.json
{
"name": "codepage",
"version": "1.3.0",
"version": "1.3.1",
"author": "SheetJS",
"description": "pure-JS library to handle codepages",
"keywords": [ "codepage", "iconv", "convert", "strings" ],

@ -4,7 +4,7 @@
"use strict";
if(typeof cptable === "undefined") {
if(typeof require !== "undefined"){
var cpt = require('./cptable');
var cpt = require('./cpt' + 'able');
if (typeof module !== 'undefined' && module.exports) module.exports = factory(cpt);
else root.cptable = factory(cpt);
} else throw new Error("cptable not found");

@ -802,7 +802,7 @@ if (typeof module !== 'undefined' && module.exports) module.exports = cptable;
"use strict";
if(typeof cptable === "undefined") {
if(typeof require !== "undefined"){
var cpt = require('./cptable');
var cpt = require('./cpt' + 'able');
if (typeof module !== 'undefined' && module.exports) module.exports = factory(cpt);
else root.cptable = factory(cpt);
} else throw new Error("cptable not found");

@ -6342,7 +6342,7 @@ if (typeof module !== 'undefined' && module.exports) module.exports = cptable;
"use strict";
if(typeof cptable === "undefined") {
if(typeof require !== "undefined"){
var cpt = require('./cptable');
var cpt = require('./cpt' + 'able');
if (typeof module !== 'undefined' && module.exports) module.exports = factory(cpt);
else root.cptable = factory(cpt);
} else throw new Error("cptable not found");

2
dist/cputils.js vendored

@ -4,7 +4,7 @@
"use strict";
if(typeof cptable === "undefined") {
if(typeof require !== "undefined"){
var cpt = require('./cptable');
var cpt = require('./cpt' + 'able');
if (typeof module !== 'undefined' && module.exports) module.exports = factory(cpt);
else root.cptable = factory(cpt);
} else throw new Error("cptable not found");

2
dist/sbcs.full.js vendored

@ -106,7 +106,7 @@ if (typeof module !== 'undefined' && module.exports) module.exports = cptable;
"use strict";
if(typeof cptable === "undefined") {
if(typeof require !== "undefined"){
var cpt = require('./cptable');
var cpt = require('./cpt' + 'able');
if (typeof module !== 'undefined' && module.exports) module.exports = factory(cpt);
else root.cptable = factory(cpt);
} else throw new Error("cptable not found");

@ -1,6 +1,6 @@
{
"name": "codepage",
"version": "1.3.0",
"version": "1.3.1",
"author": "SheetJS",
"description": "pure-JS library to handle codepages",
"keywords": [ "codepage", "iconv", "convert", "strings" ],