diff --git a/Makefile b/Makefile index 0aaca9f..5e27387 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,8 @@ install: @npm install build: install - $(shell npm bin)/rollup src/http-browser.js --format umd --output dist/browser.js -n $http - $(shell npm bin)/rollup src/http-fetch.js --format umd --output dist/fetch.js -n $http + $(shell npm bin)/rollup src/http-browser.js --format umd --output dist/browser.js -n \$$http + $(shell npm bin)/rollup src/http-fetch.js --format umd --output dist/fetch.js -n \$$http $(shell npm bin)/rollup src/wrapper.js --format cjs --output dist/wrapper.js cp src/http-node.js dist/http-node.js diff --git a/dist/browser.js b/dist/browser.js index 51f2057..df67120 100644 --- a/dist/browser.js +++ b/dist/browser.js @@ -1,7 +1,7 @@ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : - (global.ttp = factory()); + (global.$http = factory()); }(this, (function () { 'use strict'; var isType = function (type, o) { diff --git a/dist/fetch.js b/dist/fetch.js index 8b0523d..433fd1c 100644 --- a/dist/fetch.js +++ b/dist/fetch.js @@ -1,7 +1,7 @@ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : - (global.ttp = factory()); + (global.$http = factory()); }(this, (function () { 'use strict'; var isType = function (type, o) { diff --git a/dist/package.json b/dist/package.json index 6337ad4..a056d96 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,6 +1,6 @@ { "name": "http-rest", - "version": "0.1.72", + "version": "0.1.73", "description": "http jstool example", "main": "http-node.js", "scripts": {