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

sveld

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sveld - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

lib/path.d.ts

4

CHANGELOG.md

@@ -13,2 +13,6 @@ # Changelog

## [0.11.1](https://github.com/carbon-design-system/sveld/releases/tag/v0.11.1) - 2021-12-31
- replace backslashes with forward slashes in COMPONENT_API.json `filePath` values
## [0.11.0](https://github.com/carbon-design-system/sveld/releases/tag/v0.11.0) - 2021-12-16

@@ -15,0 +19,0 @@

6

lib/rollup-plugin.js

@@ -62,2 +62,3 @@ "use strict";

var svelte_preprocess_1 = require("svelte-preprocess");
var path_1 = require("./path");
function pluginSveld(opts) {

@@ -105,6 +106,3 @@ var result;

var moduleName = path.parse(file).name.replace(/\-/g, "");
var source = "./" + path.relative(dir, file);
if (path.sep !== "/") {
source = source.split(path.sep).join("/");
}
var source = (0, path_1.normalizeSeparators)("./" + path.relative(dir, file));
if (exports[moduleName]) {

@@ -111,0 +109,0 @@ exports[moduleName].source = source;

@@ -51,2 +51,3 @@ "use strict";

var path = require("path");
var path_1 = require("../path");
var Writer_1 = require("./Writer");

@@ -63,3 +64,3 @@ function writeJson(components, options) {

var moduleName = _a[0], component = _a[1];
return (__assign(__assign({}, component), { filePath: path.join(options.inputDir, path.normalize(component.filePath)) }));
return (__assign(__assign({}, component), { filePath: (0, path_1.normalizeSeparators)(path.join(options.inputDir, path.normalize(component.filePath))) }));
}).sort(function (a, b) {

@@ -66,0 +67,0 @@ if (a.moduleName < b.moduleName)

{
"name": "sveld",
"version": "0.11.0",
"version": "0.11.1",
"license": "Apache-2.0",

@@ -14,3 +14,3 @@ "description": "Generate TypeScript definitions for your Svelte components.",

"test:integration": "node tests/integration",
"format": "prettier --write '{src,tests}/**/*.{ts,svelte}'",
"format": "prettier --write \"{src,tests}/**/*.{ts,svelte}\"",
"prepack": "run-s build test"

@@ -17,0 +17,0 @@ },

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