Permalink
Browse files

node packaging fixed

  • Loading branch information...
1 parent 3033254 commit 2f7e03cd227fe18ef41ee347d4e94cbe14b297aa Peter Sergeant committed Aug 6, 2012
Showing with 77 additions and 75 deletions.
  1. +5 −3 CHANGES
  2. +30 −30 dist/ziprip-latest.js
  3. +2 −2 dist/ziprip-latest.min.js
  4. +0 −8 dist/ziprip.0.0.2.min.js
  5. +30 −30 dist/{ziprip.0.0.2.js → ziprip.0.0.3.js}
  6. +8 −0 dist/ziprip.0.0.3.min.js
  7. +2 −2 package.json
View
@@ -1,5 +1,7 @@
+0.0.3 - 6 Aug 2012
+ - Fixed minor node packaging issues
0.0.2 - 5 Aug 2012
- + Support GMail
- + Distribute as a monolithic node or otherwise file
+ + Support GMail
+ + Distribute as a monolithic node or otherwise file
0.0.1 - 4 Aug 2012
- + Initial release
+ + Initial release
View
@@ -1,4 +1,4 @@
-// ziprip.js - version 0.0.2 - docs: http://zipripjs.com/
+// ziprip.js - version 0.0.3 - docs: http://zipripjs.com/
// Copyright Peter Sergeant pete@clueball.com - MIT License
// This file is automatically generated, don't edit directly.
@@ -11,13 +11,13 @@
var libraries = {};
-var require = function (name) {
+var zrRequire = function (name) {
return libraries[name]();
}
// Imported from: src/address.js
-libraries['address'] = function () {
+libraries['./address'] = function () {
var exports = {};
// File contents begin
@@ -133,7 +133,7 @@ exports.addressFromFields = function (fields) {
// Imported from: src/addressFromString.js
-libraries['addressFromString'] = function () {
+libraries['./addressFromString'] = function () {
var exports = {};
// File contents begin
@@ -339,7 +339,7 @@ exports.addressFromString = function ( toolkit, text ) {
// Imported from: src/cleanAddress_en.js
-libraries['cleanAddress_en'] = function () {
+libraries['./cleanAddress_en'] = function () {
var exports = {};
// File contents begin
@@ -387,7 +387,7 @@ exports.cleanAddress = function (atomsOriginal) {
// Imported from: src/domToText.js
-libraries['domToText'] = function () {
+libraries['./domToText'] = function () {
var exports = {};
// File contents begin
@@ -477,7 +477,7 @@ exports.domToText = function ( dom, toolkit ) {
// Imported from: src/extractUsing.js
-libraries['extractUsing'] = function () {
+libraries['./extractUsing'] = function () {
var exports = {};
// File contents begin
@@ -532,7 +532,7 @@ exports.extractUsing = function ( dom, url, toolkit, stash, extractors ) {
// Imported from: src/extractorFromText.js
-libraries['extractorFromText'] = function () {
+libraries['./extractorFromText'] = function () {
var exports = {};
// File contents begin
@@ -552,7 +552,7 @@ exports.extractor = function ( dom, url, toolkit, stash ) {
// Imported from: src/extractorGoogle.js
-libraries['extractorGoogle'] = function () {
+libraries['./extractorGoogle'] = function () {
var exports = {};
// File contents begin
@@ -744,7 +744,7 @@ exports.extractor = function ( dom, url, toolkit, stash ) {
// Imported from: src/extractorHVCard.js
-libraries['extractorHVCard'] = function () {
+libraries['./extractorHVCard'] = function () {
var exports = {};
// File contents begin
@@ -823,7 +823,7 @@ exports.extractor = function ( dom, url, toolkit, stash ) {
// Imported from: src/json2.js
-libraries['json2'] = function () {
+libraries['./json2'] = function () {
var exports = {};
// File contents begin
@@ -1169,7 +1169,7 @@ exports.json = zrJSON;
// Imported from: src/jsuri.js
-libraries['jsuri'] = function () {
+libraries['./jsuri'] = function () {
var exports = {};
// File contents begin
/*!
@@ -1658,7 +1658,7 @@ exports.uri = function (uriString) {
// Imported from: src/nodeToText.js
-libraries['nodeToText'] = function () {
+libraries['./nodeToText'] = function () {
var exports = {};
// File contents begin
@@ -1685,7 +1685,7 @@ exports.nodeToText = function ( elem ) {
// Imported from: src/sizzle.js
-libraries['sizzle'] = function () {
+libraries['./sizzle'] = function () {
var exports = {};
// File contents begin
/*!
@@ -3168,7 +3168,7 @@ return Sizzle;
// Imported from: src/toolkit.js
-libraries['toolkit'] = function () {
+libraries['./toolkit'] = function () {
var exports = {};
// File contents begin
// This is the default toolkit. This is the mechanism for changing bits of
@@ -3177,32 +3177,32 @@ libraries['toolkit'] = function () {
// Accepts a found address, and returns a copy that's simplified and/or cleaned
// for geocoding. The default is entirely English-language specific...
-exports.cleanAddress = require('cleanAddress_en')['cleanAddress'];
+exports.cleanAddress = zrRequire('./cleanAddress_en')['cleanAddress'];
// Accepts a DOM node and tries to get its text content in a nice way
-exports.nodeToText = require('nodeToText')['nodeToText'];
+exports.nodeToText = zrRequire('./nodeToText')['nodeToText'];
// Accepts a DOM representing a whole page, and tries converting it to text
-exports.domToText = require('domToText')['domToText'];
+exports.domToText = zrRequire('./domToText')['domToText'];
// Given plain-text, tries to find addresses in it. Quite a few of the routines
// rely on this - it's probably the main clever part of the whole library - the
// generic extractor is a thin wrapper around it
-exports.addressFromString = require('addressFromString')['addressFromString'];
+exports.addressFromString = zrRequire('./addressFromString')['addressFromString'];
// JSON wrangler. Expected to support as least 'parse' and 'stringify'
-exports.json = require('json2')['json'];
+exports.json = zrRequire('./json2')['json'];
// Sizzle and its loader
-var sizzle = require('sizzle');
+var sizzle = zrRequire('./sizzle');
exports.sz = sizzle['sz'];
exports.loadSizzle = sizzle['loadSizzle'];
// jsuri
-exports.uri = require('jsuri')['uri'];
+exports.uri = zrRequire('./jsuri')['uri'];
// Create a new address container for passing back to the caller
-var address = require('address');
+var address = zrRequire('./address');
exports.address = address['address'];
exports.addressFromFields = address['addressFromFields'];
// File contents end
@@ -3211,7 +3211,7 @@ exports.addressFromFields = address['addressFromFields'];
// Imported from: src/ziprip.js
-libraries['ziprip'] = function () {
+libraries['./ziprip'] = function () {
var exports = {};
// File contents begin
@@ -3224,18 +3224,18 @@ libraries['ziprip'] = function () {
//
// Load the toolkit
-exports._zipripToolkit = require('toolkit');
+exports._zipripToolkit = zrRequire('./toolkit');
// Extractors to load
var extractorModules = ['Google','HVCard','FromText'];
var extractors = [];
for (var i = 0; i < extractorModules.length; i++) {
- var extractor = require('extractor' + extractorModules[i])['extractor'];
+ var extractor = zrRequire('./extractor' + extractorModules[i])['extractor'];
extractors.push( extractor );
}
// Load the lower-level extraction interface
-var extractUsing = require('extractUsing')['extractUsing'];
+var extractUsing = zrRequire('./extractUsing')['extractUsing'];
exports.extract = function ( dom, url ) {
return extractUsing( dom, url, exports._zipripToolkit, {}, extractors);
@@ -3252,11 +3252,11 @@ exports.version = "0.0.1";
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
- exports = module.exports = require('ziprip');
+ exports = module.exports = zrRequire('./ziprip');
}
- exports.ziprip = require('ziprip');
+ exports.ziprip = zrRequire('./ziprip');
} else {
- this['ziprip'] = require('ziprip');
+ this['ziprip'] = zrRequire('./ziprip');
}
}).call(this);

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 2f7e03c

Please sign in to comment.