@segment/analytics-node
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,3 +5,3 @@ "use strict"; | ||
// This file is generated. | ||
exports.version = '1.1.1'; | ||
exports.version = '1.1.2'; | ||
//# sourceMappingURL=version.js.map |
// This file is generated. | ||
export const version = '1.1.1'; | ||
export const version = '1.1.2'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const version = "1.1.1"; | ||
export declare const version = "1.1.2"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "@segment/analytics-node", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "./dist/cjs/index.js", | ||
@@ -39,3 +39,3 @@ "module": "./dist/esm/index.js", | ||
"@lukeed/uuid": "^2.0.0", | ||
"@segment/analytics-core": "1.3.1", | ||
"@segment/analytics-core": "1.3.2", | ||
"buffer": "^6.0.3", | ||
@@ -42,0 +42,0 @@ "node-fetch": "^2.6.7", |
@@ -59,3 +59,3 @@ # @segment/analytics-node | ||
## Settings & Configuration | ||
## Settings & Configuration | ||
See the documentation: https://segment.com/docs/connections/sources/catalog/libraries/server/node/#configuration | ||
@@ -71,3 +71,4 @@ | ||
## Usage in AWS Lambda | ||
## Usage in non-node runtimes | ||
### Usage in AWS Lambda | ||
- [AWS lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.html) is challenging for typically non-response-blocking async activites like tracking or logging, since the runtime terminates / freezes after a response is emitted. | ||
@@ -102,3 +103,3 @@ | ||
## Usage in Vercel Edge Functions | ||
### Usage in Vercel Edge Functions | ||
```ts | ||
@@ -109,3 +110,3 @@ import { Analytics } from '@segment/analytics-node'; | ||
export const analytics = new Analytics({ | ||
writeKey: 'DjTUVRhleGaZX31JQpj6XIAaprCIb25W', | ||
writeKey: '<MY_WRITE_KEY>', | ||
maxEventsInBatch: 1, | ||
@@ -127,3 +128,3 @@ }) | ||
## Usage in Cloudflare Workers | ||
### Usage in Cloudflare Workers | ||
```ts | ||
@@ -146,3 +147,3 @@ import { Analytics, Context } from '@segment/analytics-node'; | ||
); | ||
... | ||
@@ -149,0 +150,0 @@ return new Response(...) |
// This file is generated. | ||
export const version = '1.1.1' | ||
export const version = '1.1.2' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180578
151
+ Added@segment/analytics-core@1.3.2(transitive)
- Removed@segment/analytics-core@1.3.1(transitive)