Skip to content

Commit beb45df

Browse files
committed
version 1.1 release
1 parent b7d4d50 commit beb45df

5 files changed

Lines changed: 120 additions & 10 deletions

File tree

angular-httpshooter.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,3 @@
290290

291291
})();
292292

293-
294-
(function(){
295-
'use strict';
296-
})();
297-
298-

angular-httpshooter.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-httpshooter",
33
"description": "An angular js factory which shoots http calls asynchronously.",
4-
"main": "index.js",
4+
"main": "angular-httpshooter.min.js",
55
"authors": [
66
"siddarthvader (siddharthjn93@gmail.com)"
77
],

npm-debug.log

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
0 info it worked if it ends with ok
2+
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
3+
2 info using npm@3.10.5
4+
3 info using node@v5.6.0
5+
4 verbose publish [ '.' ]
6+
5 silly cache add args [ '.', null ]
7+
6 verbose cache add spec .
8+
7 silly cache add parsed spec Result {
9+
7 silly cache add raw: '.',
10+
7 silly cache add scope: null,
11+
7 silly cache add escapedName: null,
12+
7 silly cache add name: null,
13+
7 silly cache add rawSpec: '.',
14+
7 silly cache add spec: '/Users/acetonewebdev4/Desktop/siddarthvader/angular-httpshooter',
15+
7 silly cache add type: 'directory' }
16+
8 verbose addLocalDirectory /Users/acetonewebdev4/.npm/angular-httpshooter/1.0.1/package.tgz not in flight; packing
17+
9 verbose correctMkdir /Users/acetonewebdev4/.npm correctMkdir not in flight; initializing
18+
10 info lifecycle angular-httpshooter@1.0.1~prepublish: angular-httpshooter@1.0.1
19+
11 silly lifecycle angular-httpshooter@1.0.1~prepublish: no script for prepublish, continuing
20+
12 verbose tar pack [ '/Users/acetonewebdev4/.npm/angular-httpshooter/1.0.1/package.tgz',
21+
12 verbose tar pack '/Users/acetonewebdev4/Desktop/siddarthvader/angular-httpshooter' ]
22+
13 verbose tarball /Users/acetonewebdev4/.npm/angular-httpshooter/1.0.1/package.tgz
23+
14 verbose folder /Users/acetonewebdev4/Desktop/siddarthvader/angular-httpshooter
24+
15 verbose addLocalTarball adding from inside cache /Users/acetonewebdev4/.npm/angular-httpshooter/1.0.1/package.tgz
25+
16 verbose correctMkdir /Users/acetonewebdev4/.npm correctMkdir not in flight; initializing
26+
17 silly cache afterAdd angular-httpshooter@1.0.1
27+
18 verbose afterAdd /Users/acetonewebdev4/.npm/angular-httpshooter/1.0.1/package/package.json not in flight; writing
28+
19 verbose correctMkdir /Users/acetonewebdev4/.npm correctMkdir not in flight; initializing
29+
20 verbose afterAdd /Users/acetonewebdev4/.npm/angular-httpshooter/1.0.1/package/package.json written
30+
21 silly publish { name: 'angular-httpshooter',
31+
21 silly publish version: '1.0.1',
32+
21 silly publish description: 'An angular js factory which shoots http calls asynchronously.',
33+
21 silly publish main: 'index.js',
34+
21 silly publish scripts: { test: 'echo "Error: no test specified" && exit 1' },
35+
21 silly publish repository:
36+
21 silly publish { type: 'git',
37+
21 silly publish url: 'git+https://github.com/siddarthvader/angular-httpshooter.git' },
38+
21 silly publish keywords:
39+
21 silly publish [ 'loader',
40+
21 silly publish 'httploader',
41+
21 silly publish 'spinners',
42+
21 silly publish 'blockUI',
43+
21 silly publish 'angular',
44+
21 silly publish 'async',
45+
21 silly publish 'http',
46+
21 silly publish 'calls' ],
47+
21 silly publish author: { name: 'siddarthvader', url: 'siddharthjn93@gmail.com' },
48+
21 silly publish license: 'MIT',
49+
21 silly publish bugs: { url: 'https://github.com/siddarthvader/angular-httpshooter/issues' },
50+
21 silly publish homepage: 'https://github.com/siddarthvader/angular-httpshooter#readme',
51+
21 silly publish readme: '# Angular-httpshooter\n> A factory written in angular 1.0+ which makes/shoots http calls asynchronously.\n\nAngular-httpshooter makes all your api calls asynchronous, idea behind it to make the connection between server and client single threaded, it means shooting only one call at a point of time and wait for the response from server to launch the next call.\n\n\n> It blocks duplicate calls on the basis or either `url` or `data`, you can configure it according to your need.\n\nIt is based on `promise` chaining, it maintains a `queue` and push every call into it and then treat them on the basis of `FIFO`. it makes a promise for every `http` call and `reject`/`resolve` promise on the basis of response from server;\n\n> Angular-httpshooter is here to provide enhanced support to maintain ACID property of DB.\n\nAlmost all new databases handle it on their level and serialize read/write calls using lock-based protocols and other measures, but it is always preferred that client handles the concurrency on its level.\n\n>> NOTE: it will only matches the calls which are yet to take place, past calls are removed from queue as soon as the server returns response.\n\n\n> ![Example network panel](http://i.imgur.com/7i9FSkZ.png)\n\n\n\n## Features\n\n* One api/server call in action at one point of time.\n* it blocks duplicate server calls which generally happens when user press some button twice, read options for more details.\n* \'timeout\' defines the max-time wait limit, it server does not respond before timeout limit, it rejects the promise and you will get 599 status in error block.\n* it releases two events on $rootScope `HTTP_CALL_STARTED` and `HTTP_CALL_STOPPED`, also sends config objects with events, you can catch this event and do many things. e.g. show loader or block UI from interaction.\n\n\n## Use Angular-httpshooter in your webapp\n\ninstall using npm\n```bash\nnpm install angular-httpshooter --save\n```\n\ninstall using bower\n```bash\nbower install angular-httpshooter media-all --save\n```\n\nclone the git repo\n\n```bash\ngit clone https://github.com/siddarthvader/angular-httpshooter.github\n```\n\nOnce you have downloded the package you will have to inject the dependency in your angular app.\n\nIn your Module\n````bash\n app.module(\'angularApp\',[\'angular-httpshooter\']);\n````\n\nIn your Controller\n````bash\n app.controller(\'appCtrl\',[\'$httpshooter\',function($httpshooter){\n\n $httpshooter.queue({\n method:\'POST\',\n url:\'http://example.com/postData\',\n data:data,\n headers:headers \n },timeout).then(function(data){\n // if server returns success response\n console.log(data);// will be main response returned from server, stripped of all other data\n },function(data){\n // if server returns error response\n })\n\n }]);\n````\n\nYes it is as simple as this.\n\n\n\n## Options\n\nHere are defaults values and possible values that can be passed to the factory for further processing.\n\n````bash\n| Property | Acceptable options | Default options |\n|-----------|---------------------------------|-----------------|\n| Method | get,post,delete,head,put,patch | none |\n| url | <string> | none |\n| data | <object> | none |\n| headers | <object> | none |\n| timeout | time in miliseconds | 36000ms |\n\n````\n\n## Events\n \n\n ````bash\n $rootScope.$on(\'HTTP_CALL_STARTED\', function (event,data) {\n console.log(data.url) // url of http call in action\n console.log(data.data) // data of http call\n console.log(data.headers) // headers of http call\n\n // basically you get whole config object in here, including a promise\n // you can start a loader here, or freeze UI or can do anything\n });\n\n $rootScope.$on(\'HTTP_CALL_STOPPED\', function (event,data) {\n // same data as above event\n\n // you can stop a loader here, or enable submit button or anything else\n });\n\n\n ````\n\n\n## Customization\n\nHere are the default values of params used in factory, you can configure them, like this:\n\n````bash\napp.config(function(shootConfig) {\n angular.extend(shootConfig, {\n defaultTimeOut:36000 // miliseconds\n blockDuplicateCalls: true,\n compareDuplicateParam:{\n url:true,\n data:false\n }\n });\n})\n````\n\n* **defaultTimeOut** : default value 36000ms, you can change it if you want to.\n\n* **blockDuplicateCalls** : default value `true`, change if you want to allow all calls to reach server.\n\n* **compareDuplicateParam.url** : default value `true`, if `true` factory matches the calls on the basis of `url` string.\n\n* **compareDuplicateParam.data** : default value `false`, if `true` factory matches the calls on the basis on `data` object\n\n\n## Licence\n\nMIT\n\n### Feel free to fork or report issues, I am here to help. \\m/',
52+
21 silly publish readmeFilename: 'README.md',
53+
21 silly publish gitHead: 'b7d4d50def152d9ff5b75c5b290b10dc9afd8889',
54+
21 silly publish _id: 'angular-httpshooter@1.0.1',
55+
21 silly publish _shasum: '85e12ef2b881e943a394f023a221fffe7742c1c1',
56+
21 silly publish _from: '.' }
57+
22 verbose getPublishConfig undefined
58+
23 silly mapToRegistry name angular-httpshooter
59+
24 silly mapToRegistry using default registry
60+
25 silly mapToRegistry registry https://registry.npmjs.org/
61+
26 silly mapToRegistry data Result {
62+
26 silly mapToRegistry raw: 'angular-httpshooter',
63+
26 silly mapToRegistry scope: null,
64+
26 silly mapToRegistry escapedName: 'angular-httpshooter',
65+
26 silly mapToRegistry name: 'angular-httpshooter',
66+
26 silly mapToRegistry rawSpec: '',
67+
26 silly mapToRegistry spec: 'latest',
68+
26 silly mapToRegistry type: 'tag' }
69+
27 silly mapToRegistry uri https://registry.npmjs.org/angular-httpshooter
70+
28 verbose publish registryBase https://registry.npmjs.org/
71+
29 silly publish uploading /Users/acetonewebdev4/.npm/angular-httpshooter/1.0.1/package.tgz
72+
30 verbose request uri https://registry.npmjs.org/angular-httpshooter
73+
31 verbose request sending authorization for write operation
74+
32 info attempt registry request try #1 at 1:18:29 PM
75+
33 verbose request using bearer token for auth
76+
34 verbose request id bce5241d9202697e
77+
35 http request PUT https://registry.npmjs.org/angular-httpshooter
78+
36 http 403 https://registry.npmjs.org/angular-httpshooter
79+
37 verbose headers { 'content-type': 'application/json',
80+
37 verbose headers 'cache-control': 'max-age=300',
81+
37 verbose headers 'content-length': '95',
82+
37 verbose headers 'accept-ranges': 'bytes',
83+
37 verbose headers date: 'Sun, 08 Jan 2017 07:48:32 GMT',
84+
37 verbose headers via: '1.1 varnish',
85+
37 verbose headers connection: 'keep-alive',
86+
37 verbose headers 'x-served-by': 'cache-ams4147-AMS',
87+
37 verbose headers 'x-cache': 'MISS',
88+
37 verbose headers 'x-cache-hits': '0',
89+
37 verbose headers 'x-timer': 'S1483861711.420631,VS0,VE940',
90+
37 verbose headers vary: 'Accept-Encoding' }
91+
38 verbose request invalidating /Users/acetonewebdev4/.npm/registry.npmjs.org/angular-httpshooter on PUT
92+
39 error publish Failed PUT 403
93+
40 verbose stack Error: "You cannot publish over the previously published version 1.0.1." : angular-httpshooter
94+
40 verbose stack at makeError (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:264:12)
95+
40 verbose stack at CachingRegistryClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:252:14)
96+
40 verbose stack at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:172:14)
97+
40 verbose stack at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:200:22)
98+
40 verbose stack at emitTwo (events.js:100:13)
99+
40 verbose stack at Request.emit (events.js:185:7)
100+
40 verbose stack at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1067:10)
101+
40 verbose stack at emitOne (events.js:95:20)
102+
40 verbose stack at Request.emit (events.js:182:7)
103+
40 verbose stack at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:988:12)
104+
41 verbose statusCode 403
105+
42 verbose pkgid angular-httpshooter
106+
43 verbose cwd /Users/acetonewebdev4/Desktop/siddarthvader/angular-httpshooter
107+
44 error Darwin 16.0.0
108+
45 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish"
109+
46 error node v5.6.0
110+
47 error npm v3.10.5
111+
48 error code E403
112+
49 error "You cannot publish over the previously published version 1.0.1." : angular-httpshooter
113+
50 error If you need help, you may report this error at:
114+
50 error <https://github.com/npm/npm/issues>
115+
51 verbose exit [ 1, true ]

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "angular-httpshooter",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "An angular js factory which shoots http calls asynchronously.",
5-
"main": "index.js",
5+
"main": "angular-httpshooter.min.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
@@ -26,4 +26,4 @@
2626
"url": "https://github.com/siddarthvader/angular-httpshooter/issues"
2727
},
2828
"homepage": "https://github.com/siddarthvader/angular-httpshooter#readme"
29-
}
29+
}

0 commit comments

Comments
 (0)