rollbar 2.26.4 → 2.26.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,14 +2,14 @@ name: Rollbar.js CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [master]
5
+ branches: [next/2.x/main]
6
6
  tags: [v*]
7
7
  pull_request:
8
- branches: [master]
8
+ branches: [next/2.x/main]
9
9
 
10
10
  jobs:
11
11
  build:
12
- runs-on: ubuntu-20.04
12
+ runs-on: ubuntu-22.04
13
13
 
14
14
  strategy:
15
15
  matrix:
package/CLAUDE.md ADDED
@@ -0,0 +1,28 @@
1
+ # Rollbar.js Development Guide
2
+
3
+ ## Build/Lint/Test Commands
4
+ - Build: `npm run build`
5
+ - Lint: `npm run lint`
6
+ - Test all: `npm run test`
7
+ - Test browser: `npm run test-browser`
8
+ - Test server: `npm run test-server`
9
+ - Single test: `./node_modules/.bin/karma start --single-run --files={path/to/test}`
10
+
11
+ ## Code Style
12
+ - Use ESLint with extends: `eslint:recommended`
13
+ - Single quotes for strings
14
+ - CamelCase for variables (properties excluded)
15
+ - Trailing commas for all multi-line objects/arrays
16
+ - Maximum complexity: 35
17
+ - Underscore prefix allowed for private methods/variables
18
+ - Prefix unused parameters with underscore: `function(data, _unused)`
19
+ - Use Prettier with default config for formatting
20
+
21
+ ## Error Handling
22
+ - Prefer try/catch blocks around risky operations
23
+ - Log errors through Rollbar's own logger system
24
+ - Scrub sensitive fields in error payloads (see package.json defaults)
25
+
26
+ ## TypeScript Support
27
+ - Type definitions in index.d.ts
28
+ - Add JSDoc types to enable intellisense when needed
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ Please report security issues to `security@rollbar.com`