Skip to content

Commit c90c782

Browse files
committed
Fix package json
1 parent 6a396dc commit c90c782

File tree

3 files changed

+50
-50
lines changed

3 files changed

+50
-50
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
{
2-
"Name": "@segment/analytics.js-integration-adlearn-open-platform",
3-
"Description": "The Adlearn Open Platform analytics.js integration.",
4-
"Version": "2.0.0",
5-
"Keywords": [
2+
"name": "@segment/analytics.js-integration-adlearn-open-platform",
3+
"description": "The Adlearn Open Platform analytics.js integration.",
4+
"version": "2.0.0",
5+
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",
88
"segment",
99
"adlearn"
1010
],
11-
"Main": "lib/index.js",
12-
"Scripts": {
11+
"main": "lib/index.js",
12+
"scripts": {
1313
"test": "make test"
1414
},
15-
"Author": "Segment \u003c[email protected]\u003e",
16-
"License": "SEE LICENSE IN LICENSE",
17-
"Homepage": "https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/adlearn-open-platform#readme",
18-
"Bugs": {
19-
"URL": "https://github.com/segmentio/analytics.js-integrations/issues"
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/segmentio/analytics.js-integrations.git"
2018
},
21-
"Repository": {
22-
"Type": "git",
23-
"URL": "git+https://github.com/segmentio/analytics.js-integrations.git"
19+
"author": "Segment <[email protected]>",
20+
"license": "SEE LICENSE IN LICENSE",
21+
"bugs": {
22+
"url": "https://github.com/segmentio/analytics.js-integrations/issues"
2423
},
25-
"Dependencies": {
24+
"homepage": "https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/adlearn-open-platform#readme",
25+
"dependencies": {
2626
"@ndhoule/each": "^2.0.1",
2727
"@segment/analytics.js-integration": "^2.0.1"
2828
},
29-
"DevDependencies": {
29+
"devDependencies": {
3030
"@segment/analytics.js-core": "^3.0.0",
3131
"@segment/analytics.js-integration-tester": "^3.1.0",
3232
"@segment/clear-env": "^1.0.0",
@@ -51,4 +51,4 @@
5151
"phantomjs-prebuilt": "^2.1.7",
5252
"watchify": "^3.7.0"
5353
}
54-
}
54+
}

integrations/adometry/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"Name": "@segment/analytics.js-integration-adometry",
3-
"Description": "The Adometry analytics.js integration.",
4-
"Version": "2.0.0",
5-
"Keywords": [
2+
"name": "@segment/analytics.js-integration-adometry",
3+
"description": "The Adometry analytics.js integration.",
4+
"version": "2.0.0",
5+
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",
88
"segment",
99
"adometry"
1010
],
11-
"Main": "lib/index.js",
12-
"Scripts": {
11+
"main": "lib/index.js",
12+
"scripts": {
1313
"test": "make test"
1414
},
15-
"Author": "Segment \u003c[email protected]\u003e",
16-
"License": "SEE LICENSE IN LICENSE",
17-
"Homepage": "https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/adometry#readme",
18-
"Bugs": {
19-
"URL": "https://github.com/segmentio/analytics.js-integrations/issues"
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/segmentio/analytics.js-integrations.git"
2018
},
21-
"Repository": {
22-
"Type": "git",
23-
"URL": "git+https://github.com/segmentio/analytics.js-integrations.git"
19+
"author": "Segment <[email protected]>",
20+
"license": "SEE LICENSE IN LICENSE",
21+
"bugs": {
22+
"url": "https://github.com/segmentio/analytics.js-integrations/issues"
2423
},
25-
"Dependencies": {
24+
"homepage": "https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/adometry#readme",
25+
"dependencies": {
2626
"@ndhoule/each": "^2.0.1",
2727
"@ndhoule/entries": "^2.0.0",
2828
"@ndhoule/extend": "^2.0.0",
@@ -31,7 +31,7 @@
3131
"@ndhoule/values": "^2.0.1",
3232
"@segment/analytics.js-integration": "^2.1.0"
3333
},
34-
"DevDependencies": {
34+
"devDependencies": {
3535
"@segment/analytics.js-core": "^3.0.0",
3636
"@segment/analytics.js-integration-tester": "^3.1.0",
3737
"@segment/clear-env": "^2.0.0",
@@ -58,4 +58,4 @@
5858
"proclaim": "^3.4.1",
5959
"watchify": "^3.7.0"
6060
}
61-
}
61+
}

operations/integration.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,33 @@ type Integration struct {
1818

1919
// Package is the representation of package.json
2020
type Package struct {
21-
Name string
22-
Description string
23-
Version string
24-
Keywords []string
25-
Main string
26-
Scripts Scripts
27-
Author string
28-
License string
29-
Homepage string
30-
Bugs Bugs
31-
Repository Repository
32-
Dependencies Dependencies
33-
DevDependencies Dependencies
21+
Name string `json:"name"`
22+
Description string `json:"description"`
23+
Version string `json:"version"`
24+
Keywords []string `json:"keywords"`
25+
Main string `json:"main"`
26+
Scripts Scripts `json:"scripts"`
27+
Author string `json:"author"`
28+
License string `json:"license"`
29+
Homepage string `json:"homepage"`
30+
Bugs Bugs `json:"bugs"`
31+
Repository Repository `json:"repository"`
32+
Dependencies Dependencies `json:"dependencies"`
33+
DevDependencies Dependencies `json:"devDependencies"`
3434
}
3535

3636
// Bugs from package.json
3737
type Bugs struct {
38-
URL string
38+
URL string `json:"url"`
3939
}
4040

4141
// Dependencies is a map of package:version
4242
type Dependencies map[string]string
4343

4444
// Repository from package.json
4545
type Repository struct {
46-
Type string
47-
URL string
46+
Type string `json:"type"`
47+
URL string `json:"url"`
4848
}
4949

5050
// Scripts from package.json

0 commit comments

Comments
 (0)