@foxglove/rosmsg
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@foxglove/rosmsg", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ROS1 and ROS2 message definition parser", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
"author": { | ||
"name": "Foxglove Technologies", | ||
"email": "support@foxglove.dev" | ||
"name": "Foxglove Technologies Inc", | ||
"email": "contact@foxglove.dev" | ||
}, | ||
@@ -28,0 +28,0 @@ "homepage": "https://github.com/foxglove/rosmsg", |
@@ -363,2 +363,22 @@ // This file incorporates work covered by the following copyright and | ||
}); | ||
it("allows numbers in package names", () => { | ||
expect( | ||
parse(` | ||
abc1/Foo2 value0 | ||
========== | ||
MSG: abc1/Foo2 | ||
int32 data | ||
`), | ||
).toEqual([ | ||
{ | ||
definitions: [{ isArray: false, isComplex: true, name: "value0", type: "abc1/Foo2" }], | ||
name: undefined, | ||
}, | ||
{ | ||
definitions: [{ isArray: false, isComplex: false, name: "data", type: "int32" }], | ||
name: "abc1/Foo2", | ||
}, | ||
]); | ||
}); | ||
}); |
@@ -346,2 +346,25 @@ // This file incorporates work covered by the following copyright and | ||
it("allows numbers in package names", () => { | ||
expect( | ||
parse( | ||
` | ||
abc1/Foo2 value0 | ||
========== | ||
MSG: abc1/Foo2 | ||
int32 data | ||
`, | ||
{ ros2: true }, | ||
), | ||
).toEqual([ | ||
{ | ||
definitions: [{ isArray: false, isComplex: true, name: "value0", type: "abc1/Foo2" }], | ||
name: undefined, | ||
}, | ||
{ | ||
definitions: [{ isArray: false, isComplex: false, name: "data", type: "int32" }], | ||
name: "abc1/Foo2", | ||
}, | ||
]); | ||
}); | ||
it("parses default values", () => { | ||
@@ -348,0 +371,0 @@ const messageDefinition = ` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
211993
2835
1