Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@volar/code-gen

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/code-gen - npm Package Compare versions

Comparing version 0.34.6 to 0.34.7

26

out/index.js

@@ -16,12 +16,5 @@ "use strict";

}
return this.mappings.map(mapping => ({
...mapping,
sourceRange: sourceRangeParser(mapping.data, mapping.sourceRange),
additional: mapping.additional
? mapping.additional.map(extraMapping => ({
...extraMapping,
sourceRange: sourceRangeParser(mapping.data, extraMapping.sourceRange),
}))
: undefined,
}));
return this.mappings.map(mapping => (Object.assign(Object.assign({}, mapping), { sourceRange: sourceRangeParser(mapping.data, mapping.sourceRange), additional: mapping.additional
? mapping.additional.map(extraMapping => (Object.assign(Object.assign({}, extraMapping), { sourceRange: sourceRangeParser(mapping.data, extraMapping.sourceRange) })))
: undefined })));
}

@@ -67,16 +60,9 @@ addCode(str, sourceRange, mode, data, extraSourceRanges) {

for (const mapping of b.getMappings()) {
a.addMapping2({
...mapping,
mappedRange: {
a.addMapping2(Object.assign(Object.assign({}, mapping), { mappedRange: {
start: mapping.mappedRange.start + aLength,
end: mapping.mappedRange.end + aLength,
},
additional: mapping.additional ? mapping.additional.map(mapping_2 => ({
...mapping_2,
mappedRange: {
}, additional: mapping.additional ? mapping.additional.map(mapping_2 => (Object.assign(Object.assign({}, mapping_2), { mappedRange: {
start: mapping_2.mappedRange.start + aLength,
end: mapping_2.mappedRange.end + aLength,
},
})) : undefined,
});
} }))) : undefined }));
}

@@ -83,0 +69,0 @@ a.addText(b.getText());

{
"name": "@volar/code-gen",
"version": "0.34.6",
"version": "0.34.7",
"main": "out/index.js",

@@ -16,5 +16,5 @@ "license": "MIT",

"dependencies": {
"@volar/source-map": "0.34.6"
"@volar/source-map": "0.34.7"
},
"gitHead": "26c74f112ce48ef1131b58e09cec2dd4b47fba6b"
"gitHead": "308b7dc440031c2f7adf0d4564f8cfd7417523e5"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc