This project is now maintained at https://github.com/geoffdutton/amplitude
crookedneighbor / amplitude Goto Github PK
View Code? Open in Web Editor NEWA node wrapper for Amplitude analytics
A node wrapper for Amplitude analytics
This project is now maintained at https://github.com/geoffdutton/amplitude
Nock is a thorn in my side whenever I have to tweak something. Would be better to extract the superagent stuff into a request lib and then just stub the request in the tests.
Hello!
Why the module can't detect this default data?
http://joxi.ru/DmBgQVLTNNREx2
If i using Javascript library or Android SDK for Amplitude, no problem at all, but if i am trying to use this node.js module i can't see that data.
i was looking at adding this to a server app
var amplitude = new Amplitude('api-token', { user_id: 'some-user-id' });
but with that requirement it seems I would have to track a list of amplitude objects for each user on the system, and reuse them?
since the server is handling lots of users obviously, this seems weird - is this because it's a client side SDK that you've wrapped (which assumes just one user for a session)
it would be much more convenient if we could just send trackEvent( userId, data )
and not have to track and reuse the correct amplitude instances per user in order to send events.
another way is to create (init) a new amplitude object every time I want to track an event, but that seems very wasteful/leaky too.
Am I missing something in how to use this wrapper?
7.2.4
to 7.2.5
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 8 commits.
8b8bddd
Update docs/changelog.md and set new release id in docs/_config.yml
33f0b67
Add release documentation for v7.2.5
2b4bc7d
7.2.5
fb54e29
Update CHANGELOG.md and AUTHORS for new release
8ac68f3
Upgrade mochify to latest
add43e3
Upgrade @sinonjs/samsam to latest
d0c073c
don't call extends.nonEnum in spy.resetHistory (#1984)
f99e2ef
Use stable Chrome in Circle
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
My company uses this pretty extensively, so I'd be happy to spend time to keep it updated and moving forward.
@crookedneighbor Let me know what you think/have questions/etc.
It can be useful to pass an HttpsAgent to the constructor to control connection keep-alive.
It can significantly reduce the time for each request, especially if not sending in batches.
Does it make sense to you adding this feature?
βοΈ Greenkeeperβs updated Terms of Service will come into effect on April 6th, 2018.
Branch | Build failing π¨ |
---|---|
Dependency | publish-please |
Current Version | 2.3.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
publish-please is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 1 commits.
6e5bea1
Add support for a custom publishing command, fix postpublish script (#54)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Amplitude deprecates HTTP API v1.
https://help.amplitude.com/hc/en-us/articles/360032842391-HTTP-API-V2
Any plans to provide support for HTTP API v2?
Blade, any way you could publish a new version of the package to NPM with an updated package.json for superagent? The currently published version still references ^3.3.1 which produces the follow warning on install:
npm WARN deprecated [email protected]: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released.
The one in GitHub references ^5.0.7.
5.4.3
to 5.5.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
publish-please is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
Changelog: https://github.com/inikulin/publish-please/blob/master/CHANGELOG.md#550---2019-07-01
The new version differs by 19 commits.
f86f495
doc(git-tag-check): apply @motin suggestion
62d3ef4
doc(git-tag-check): update README
d85a4ab
test(publish-with-publish-please): fix test on CI with npm version 6.9.2
b487d88
test(publish-with-publish-please): try fix test on CI with npm version 6.9.2
0584c15
test(publish-with-publish-please): try fix test on CI with npm version 6.9.2
66c6bea
test(vulnerability-check): adapt test due to changes in results from npm audit
545d989
test(vulnerability-check): adapt test due to changes in results from npm audit
d64fd5f
fix(vulnerability-check): remove duplicated output
1247566
test(vulnerability-check): adapt test due to changes in results from npm audit
0738a3e
test(vulnerability-check): adapt test due to changes in results from npm audit
fa2ba9e
test(vulnerability-check): adapt test due to changes in results from npm audit
a53a537
test(vulnerability-check): adapt test due to changes in results from npm audit
2c0ab49
test(vulnerability-check): adapt test due to changes in results from npm audit
77463c9
test(vulnerability-check): add test due to changes in results from npm audit
ff095a6
test(vulnerability-check): adapt test due to changes in results from npm audit
There are 19 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
My code return empty, when I use the segmentation return data,
amplitude.track({
event_type: 'Enter Project',
}).then(function (result) {
console.log(result);
return response.status(200).json(result);
}).catch(function (error) {
return response.status(400).json(error);
});
Ca I pass user_id in eventSegmentation?
According to Amplitude they don't have a limit on the data you can pass....but if all properties are in the query string you can hit a limit.
Is there a reason the data isn't sent as POST fields?
7.3.0
to 7.3.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 6 commits.
3812a7d
Update docs/changelog.md and set new release id in docs/_config.yml
93bef55
Add release documentation for v7.3.1
e02c192
7.3.1
8ee1d35
Update CHANGELOG.md and AUTHORS for new release
bc53d82
Fix security issues
1a09166
Update @sinonjs/samsam to v3.3.1
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
6.1.4
to 6.2.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
--file
(@gabegorelick)global
or globals
(@pascalpp)_mocha
binary (@juergba)--timeout
/--slow
string values and duplicate arguments (@boneskull, @juergba)--watch
options (@geigerzaehler)--watch
mode behavior (@geigerzaehler)runWatch
into separate module (@geigerzaehler)mocha.min.js
file to stacktrace filter (@brian-lagerman)--exclude
to --ignore
and create alias (@boneskull)mocha.css
(@DanielRuf)The new version differs by 39 commits.
bd47776
Release v6.2.0
cc595af
update CHANGELOG.md for v6.2.0 [ci skip]
59d70ee
fix: remove duplicate line-height property (#3957)
f77cac4
fix: do not redeclare variable (#3956)
6201e42
Hide stacktrace when cli args are missing (#3963)
88f45d5
Don't re-initialize grep option on watch re-run (#3960)
5d4dd98
Fix No Files error when file is passed via --files (#3942)
15b96af
Collect test files later (#3953)
ccee5f1
Base reporter store ref to console.log (#3725)
47318a7
update @mocha/contributors to v1.0.4 (#3944)
c903147
More, improved integration tests for watching (#3929)
e341ea4
Update CI config files to use Node-12.x (#3919)
3064d25
update @mocha/docdash to v2.1.1 (#3945)
9ea45e7
do not fork if no node flags present (#3827)
d02a096
modify Mocha constructor to accept options.global or options.globals (#3914)
There are 39 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Great work and very useful, thank you!
The Amplitude identify API supports operations like $add, $append, etc.
Looks like it's possible to use the library for these operations also.
var event = {
userId: userid,
userProperties: {
$set: {
firstName: 'firstName',
lastName: 'lastName'
},
$add: { counter: 1 }
}
};
amplitude.identify(event);
6.0.2
to 6.1.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
options
parameter (@plroebuck).jsonc
extension (@sstephant)These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:
this.skip()
in "before each" hooks (@juergba)--allow-uncaught
for uncaught exceptions thrown inside hooks (@givanse)and some regressions:
Suite
cloning by copying root
property (@fatso83)The new version differs by 28 commits.
f4fc95a
Release v6.1.0
bd29dbd
update CHANGELOG for v6.1.0 [ci skip]
aaf2b72
Use cwd-relative pathname to load config file (#3829)
b079d24
upgrade deps as per npm audit fix; closes #3854
e87c689
Deprecate this.skip() for "after all" hooks (#3719)
81cfa90
Copy Suite property "root" when cloning; closes #3847 (#3848)
8aa2fc4
Fix issue 3714, hide pound icon showing on hover header on docs page (#3850)
586bf78
Update JS-YAML to address security issue (#3845)
d1024a3
Update doc examples "tests.html" (#3811)
1d570e0
Delete "/docs/example/chai.js"
ade8b90
runner.js: "self.test" undefined in Browser (#3835)
0098147
Replace findup-sync with find-up for faster startup (#3830)
d5ba121
Remove "package" flag from sample config file because it can only be passes as CLI arg (#3793)
a3089ad
update package-lock
75430ec
Upgrade yargs-parser dependency to avoid loading 2 copies of yargs
There are 28 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | mocha |
Current Version | 3.3.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As mocha is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
Mocha is now moving to a quicker release schedule: when non-breaking changes are merged, a release should happen that week.
This week's highlights:
allowUncaught
added to commandline as --allow-uncaught
(and bugfixed)--no-warnings
and --trace-warnings
flags (@sonicdoe)The new version differs by 9 commits0.
7554b31
Add Changelog for v3.4.0
9f7f7ed
Add --trace-warnings
flag
92561c8
Add --no-warnings
flag
ceee976
lint test/integration/fixtures/simple-reporter.js
dcfc094
Revert "use semistandard
directly"
93392dd
no special case for macOS running Karma locally
4d1d91d
--allow-uncaught cli option
fb1e083
fix allowUncaught in browser
4ed3fc5
Add license report and scan status
false
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.