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

@sewing-kit/core

Package Overview
Dependencies
Maintainers
3
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sewing-kit/core - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0-alpha.1

build/cjs/_virtual/_rollupPluginBabelHelpers.js

13

build/cjs/base/dependencies.js

@@ -1,9 +0,6 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PackageJson = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
var _path = require("path");
var path = require('path');

@@ -13,3 +10,3 @@ class PackageJson {

try {
return new PackageJson(require((0, _path.join)(root, 'package.json')));
return new PackageJson(require(path.join(root, 'package.json')));
} catch {

@@ -54,2 +51,2 @@ return undefined;

exports.PackageJson = PackageJson;
exports.PackageJson = PackageJson;

@@ -1,16 +0,13 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FileSystem = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
var _path = require("path");
var path = require('path');
var fsExtra = require('fs-extra');
var glob = require('glob');
var _fsExtra = require("fs-extra");
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _glob = _interopRequireDefault(require("glob"));
var glob__default = /*#__PURE__*/_interopDefaultLegacy(glob);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
class FileSystem {

@@ -22,3 +19,3 @@ constructor(root) {

async read(file) {
return (0, _fsExtra.readFile)(this.resolvePath(file), 'utf8');
return fsExtra.readFile(this.resolvePath(file), 'utf8');
}

@@ -28,4 +25,4 @@

const resolved = this.resolvePath(file);
await (0, _fsExtra.mkdirp)((0, _path.dirname)(resolved));
await (0, _fsExtra.writeFile)(resolved, contents);
await fsExtra.mkdirp(path.dirname(resolved));
await fsExtra.writeFile(resolved, contents);
}

@@ -35,4 +32,4 @@

const resolved = this.resolvePath(file);
await (0, _fsExtra.mkdirp)((0, _path.dirname)(resolved));
await (0, _fsExtra.appendFile)(resolved, contents);
await fsExtra.mkdirp(path.dirname(resolved));
await fsExtra.appendFile(resolved, contents);
}

@@ -42,3 +39,3 @@

const resolved = this.resolvePath(file);
await (0, _fsExtra.remove)(resolved);
await fsExtra.remove(resolved);
}

@@ -49,3 +46,3 @@

const resolvedTo = this.resolvePath(to);
await (0, _fsExtra.copy)(resolvedFrom, resolvedTo, options);
await fsExtra.copy(resolvedFrom, resolvedTo, options);
}

@@ -66,3 +63,3 @@

async glob(pattern, options = {}) {
return _glob.default.sync(pattern, { ...options,
return glob__default['default'].sync(pattern, { ...options,
cwd: this.root,

@@ -78,7 +75,11 @@ absolute: true

resolvePath(...paths) {
return (0, _path.resolve)(this.root, ...paths);
return path.resolve(this.root, ...paths);
}
relativePath(path$1) {
return path.relative(this.root, path$1);
}
}
exports.FileSystem = FileSystem;
exports.FileSystem = FileSystem;

@@ -1,15 +0,9 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.toId = toId;
exports.Base = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
var _fs = require("./fs.js");
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
var fs = require('./fs.js');
var dependencies = require('./dependencies.js');
var _dependencies = require("./dependencies.js");
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class Base {

@@ -20,14 +14,14 @@ constructor({

}) {
_defineProperty(this, "name", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "name", void 0);
_defineProperty(this, "root", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "root", void 0);
_defineProperty(this, "fs", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "fs", void 0);
_defineProperty(this, "packageJson", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "packageJson", void 0);
this.name = name;
this.root = root;
this.fs = new _fs.FileSystem(root);
this.packageJson = _dependencies.PackageJson.load(this.root);
this.fs = new fs.FileSystem(root);
this.packageJson = dependencies.PackageJson.load(this.root);
}

@@ -79,7 +73,7 @@

}
function toId(name) {
return name.split(/[-_]/g).map(part => `${part[0].toLocaleUpperCase()}${part.slice(1)}`).join('');
}
exports.Base = Base;
function toId(name) {
return name.split(/[-_]/g).map(part => `${part[0].toLocaleUpperCase()}${part.slice(1)}`).join('');
}
exports.toId = toId;

@@ -1,10 +0,6 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isDiagnosticError = isDiagnosticError;
exports.DiagnosticError = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js');

@@ -15,7 +11,4 @@ const ID = Symbol.for('SewingKit.DiagnosticError'); // We could use instanceof to detect this, but this convenience protects

function isDiagnosticError(value) {
var _ref;
return Boolean((_ref = value) === null || _ref === void 0 ? void 0 : _ref[ID]);
return Boolean(value === null || value === void 0 ? void 0 : value[ID]);
}
class DiagnosticError extends Error {

@@ -29,9 +22,9 @@ constructor({

_defineProperty(this, ID, true);
_rollupPluginBabelHelpers.defineProperty(this, ID, true);
_defineProperty(this, "suggestion", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "suggestion", void 0);
_defineProperty(this, "title", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "title", void 0);
_defineProperty(this, "content", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "content", void 0);

@@ -45,2 +38,3 @@ this.title = title;

exports.DiagnosticError = DiagnosticError;
exports.DiagnosticError = DiagnosticError;
exports.isDiagnosticError = isDiagnosticError;

@@ -1,103 +0,43 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "Runtime", {
Object.defineProperty(exports, '__esModule', { value: true });
var types = require('./types.js');
var _package = require('./package.js');
var webApp = require('./web-app.js');
var service = require('./service.js');
var workspace = require('./workspace.js');
var errors = require('./errors.js');
var target = require('./target.js');
Object.defineProperty(exports, 'LogLevel', {
enumerable: true,
get: function () {
return _types.Runtime;
return types.LogLevel;
}
});
Object.defineProperty(exports, "ProjectKind", {
Object.defineProperty(exports, 'ProjectKind', {
enumerable: true,
get: function () {
return _types.ProjectKind;
return types.ProjectKind;
}
});
Object.defineProperty(exports, "LogLevel", {
Object.defineProperty(exports, 'Runtime', {
enumerable: true,
get: function () {
return _types.LogLevel;
return types.Runtime;
}
});
Object.defineProperty(exports, "Package", {
enumerable: true,
get: function () {
return _package.Package;
}
});
Object.defineProperty(exports, "PackageBinary", {
enumerable: true,
get: function () {
return _package.PackageBinary;
}
});
Object.defineProperty(exports, "PackageEntry", {
enumerable: true,
get: function () {
return _package.PackageEntry;
}
});
Object.defineProperty(exports, "WebApp", {
enumerable: true,
get: function () {
return _webApp.WebApp;
}
});
Object.defineProperty(exports, "ServiceWorker", {
enumerable: true,
get: function () {
return _webApp.ServiceWorker;
}
});
Object.defineProperty(exports, "Service", {
enumerable: true,
get: function () {
return _service.Service;
}
});
Object.defineProperty(exports, "Workspace", {
enumerable: true,
get: function () {
return _workspace.Workspace;
}
});
Object.defineProperty(exports, "DiagnosticError", {
enumerable: true,
get: function () {
return _errors.DiagnosticError;
}
});
Object.defineProperty(exports, "isDiagnosticError", {
enumerable: true,
get: function () {
return _errors.isDiagnosticError;
}
});
Object.defineProperty(exports, "TargetBuilder", {
enumerable: true,
get: function () {
return _target.TargetBuilder;
}
});
Object.defineProperty(exports, "TargetRuntime", {
enumerable: true,
get: function () {
return _target.TargetRuntime;
}
});
var _types = require("./types.js");
var _package = require("./package.js");
var _webApp = require("./web-app.js");
var _service = require("./service.js");
var _workspace = require("./workspace.js");
var _errors = require("./errors.js");
var _target = require("./target.js");
exports.Package = _package.Package;
exports.PackageBinary = _package.PackageBinary;
exports.PackageEntry = _package.PackageEntry;
exports.ServiceWorker = webApp.ServiceWorker;
exports.WebApp = webApp.WebApp;
exports.Service = service.Service;
exports.Workspace = workspace.Workspace;
exports.DiagnosticError = errors.DiagnosticError;
exports.isDiagnosticError = errors.isDiagnosticError;
exports.TargetBuilder = target.TargetBuilder;
exports.TargetRuntime = target.TargetRuntime;

@@ -1,14 +0,9 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Package = exports.PackageBinary = exports.PackageEntry = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
var _types = require("./types.js");
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js');
var types = require('./types.js');
var index = require('./base/index.js');
var _index = require("./base/index.js");
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class PackageEntry {

@@ -21,7 +16,7 @@ constructor({

}) {
_defineProperty(this, "root", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "root", void 0);
_defineProperty(this, "name", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "name", void 0);
_defineProperty(this, "runtimes", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "runtimes", void 0);

@@ -34,5 +29,2 @@ this.root = root;

}
exports.PackageEntry = PackageEntry;
class PackageBinary {

@@ -44,7 +36,7 @@ constructor({

}) {
_defineProperty(this, "name", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "name", void 0);
_defineProperty(this, "root", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "root", void 0);
_defineProperty(this, "aliases", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "aliases", void 0);

@@ -57,8 +49,5 @@ this.name = name;

}
exports.PackageBinary = PackageBinary;
class Package extends _index.Base {
class Package extends index.Base {
get id() {
return `Package.${(0, _index.toId)(this.name)}`;
return `Package.${index.toId(this.name)}`;
}

@@ -80,9 +69,9 @@

_defineProperty(this, "kind", _types.ProjectKind.Package);
_rollupPluginBabelHelpers.defineProperty(this, "kind", types.ProjectKind.Package);
_defineProperty(this, "runtimes", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "runtimes", void 0);
_defineProperty(this, "entries", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "entries", void 0);
_defineProperty(this, "binaries", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "binaries", void 0);

@@ -96,2 +85,4 @@ this.runtimes = runtimes;

exports.Package = Package;
exports.Package = Package;
exports.PackageBinary = PackageBinary;
exports.PackageEntry = PackageEntry;

@@ -1,17 +0,12 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Service = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
var _types = require("./types.js");
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js');
var types = require('./types.js');
var index = require('./base/index.js');
var _index = require("./base/index.js");
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class Service extends _index.Base {
class Service extends index.Base {
get id() {
return `Service.${(0, _index.toId)(this.name)}`;
return `Service.${index.toId(this.name)}`;
}

@@ -25,5 +20,5 @@

_defineProperty(this, "kind", _types.ProjectKind.Service);
_rollupPluginBabelHelpers.defineProperty(this, "kind", types.ProjectKind.Service);
_defineProperty(this, "entry", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "entry", void 0);

@@ -35,2 +30,2 @@ this.entry = entry;

exports.Service = Service;
exports.Service = Service;

@@ -1,16 +0,10 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LogLevel = exports.TargetBuilder = exports.TargetRuntime = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
var _types = require("./types.js");
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js');
var types = require('./types.js');
var webApp = require('./web-app.js');
var service = require('./service.js');
var _webApp = require("./web-app.js");
var _service = require("./service.js");
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class TargetRuntime {

@@ -20,8 +14,8 @@ static fromProject(project) {

if (project instanceof _service.Service) {
return new TargetRuntime([_types.Runtime.Node]);
if (project instanceof service.Service) {
return new TargetRuntime([types.Runtime.Node]);
}
if (project instanceof _webApp.WebApp) {
return new TargetRuntime([_types.Runtime.Browser]);
if (project instanceof webApp.WebApp) {
return new TargetRuntime([types.Runtime.Browser]);
}

@@ -43,3 +37,3 @@

constructor(runtimes) {
_defineProperty(this, "runtimes", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "runtimes", void 0);

@@ -54,5 +48,2 @@ this.runtimes = new Set(runtimes);

}
exports.TargetRuntime = TargetRuntime;
class TargetBuilder {

@@ -66,11 +57,11 @@ constructor({

}) {
_defineProperty(this, "default", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "default", void 0);
_defineProperty(this, "needs", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "needs", void 0);
_defineProperty(this, "project", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "project", void 0);
_defineProperty(this, "runtime", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "runtime", void 0);
_defineProperty(this, "options", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "options", void 0);

@@ -116,7 +107,4 @@ this.project = project;

}
exports.LogLevel = void 0;
exports.TargetBuilder = TargetBuilder;
let LogLevel;
exports.LogLevel = LogLevel;
(function (LogLevel) {

@@ -127,2 +115,5 @@ LogLevel[LogLevel["Errors"] = 0] = "Errors";

LogLevel[LogLevel["Debug"] = 3] = "Debug";
})(LogLevel || (exports.LogLevel = LogLevel = {}));
})(exports.LogLevel || (exports.LogLevel = {}));
exports.TargetBuilder = TargetBuilder;
exports.TargetRuntime = TargetRuntime;

@@ -1,10 +0,7 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LogLevel = exports.ProjectKind = exports.Runtime = void 0;
let Runtime;
exports.Runtime = Runtime;
Object.defineProperty(exports, '__esModule', { value: true });
exports.Runtime = void 0;
(function (Runtime) {

@@ -15,6 +12,5 @@ Runtime["Node"] = "node";

Runtime["WebWorker"] = "web-worker";
})(Runtime || (exports.Runtime = Runtime = {}));
})(exports.Runtime || (exports.Runtime = {}));
let ProjectKind;
exports.ProjectKind = ProjectKind;
exports.ProjectKind = void 0;

@@ -25,6 +21,5 @@ (function (ProjectKind) {

ProjectKind["Package"] = "package";
})(ProjectKind || (exports.ProjectKind = ProjectKind = {}));
})(exports.ProjectKind || (exports.ProjectKind = {}));
let LogLevel;
exports.LogLevel = LogLevel;
exports.LogLevel = void 0;

@@ -36,2 +31,2 @@ (function (LogLevel) {

LogLevel[LogLevel["Debug"] = 3] = "Debug";
})(LogLevel || (exports.LogLevel = LogLevel = {}));
})(exports.LogLevel || (exports.LogLevel = {}));

@@ -1,14 +0,9 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WebApp = exports.ServiceWorker = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
var _types = require("./types.js");
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js');
var types = require('./types.js');
var index = require('./base/index.js');
var _index = require("./base/index.js");
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class ServiceWorker {

@@ -18,3 +13,3 @@ constructor({

}) {
_defineProperty(this, "entry", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "entry", void 0);

@@ -25,8 +20,5 @@ this.entry = entry;

}
exports.ServiceWorker = ServiceWorker;
class WebApp extends _index.Base {
class WebApp extends index.Base {
get id() {
return `WebApp.${(0, _index.toId)(this.name)}`;
return `WebApp.${index.toId(this.name)}`;
}

@@ -41,7 +33,7 @@

_defineProperty(this, "kind", _types.ProjectKind.WebApp);
_rollupPluginBabelHelpers.defineProperty(this, "kind", types.ProjectKind.WebApp);
_defineProperty(this, "entry", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "entry", void 0);
_defineProperty(this, "serviceWorker", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "serviceWorker", void 0);

@@ -54,2 +46,3 @@ this.entry = entry;

exports.WebApp = WebApp;
exports.ServiceWorker = ServiceWorker;
exports.WebApp = WebApp;

@@ -1,13 +0,9 @@

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Workspace = void 0;
Object.defineProperty(exports, '__esModule', { value: true });
var _index = require("./base/index.js");
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js');
var index = require('./base/index.js');
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class Workspace extends _index.Base {
class Workspace extends index.Base {
get projects() {

@@ -25,7 +21,7 @@ return [...this.packages, ...this.webApps, ...this.services];

_defineProperty(this, "webApps", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "webApps", void 0);
_defineProperty(this, "packages", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "packages", void 0);
_defineProperty(this, "services", void 0);
_rollupPluginBabelHelpers.defineProperty(this, "services", void 0);

@@ -39,2 +35,2 @@ this.webApps = webApps;

exports.Workspace = Workspace;
exports.Workspace = Workspace;

@@ -17,3 +17,4 @@ import { CopyOptions } from 'fs-extra';

resolvePath(...paths: string[]): string;
relativePath(path: string): string;
}
//# sourceMappingURL=fs.d.ts.map
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -53,3 +50,6 @@ exports.FileSystem = void 0;

}
relativePath(path) {
return path_1.relative(this.root, path);
}
}
exports.FileSystem = FileSystem;
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,0 +3,0 @@ exports.Package = exports.PackageBinary = exports.PackageEntry = void 0;

"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,0 +3,0 @@ exports.Service = void 0;

"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,0 +3,0 @@ exports.WebApp = exports.ServiceWorker = void 0;

"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,0 +3,0 @@ exports.Workspace = void 0;

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

### Added
Add `relativePath` to FileSystem [[#160](https://github.com/Shopify/sewing-kit-next/pull/160)]
## [0.3.0] - 2021-04-14

@@ -12,0 +16,0 @@

MIT License
Copyright (c) 2019 Chris Sauve
Copyright (c) 2019-present Shopify

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

{
"name": "@sewing-kit/core",
"license": "MIT",
"version": "0.3.0",
"version": "0.4.0-alpha.1",
"sideEffects": false,

@@ -10,2 +10,5 @@ "publishConfig": {

},
"engines": {
"node": "^12.22.0 || >=14.17.0"
},
"scripts": {

@@ -20,3 +23,3 @@ "build": "tsc --p tsconfig.json"

},
"gitHead": "96bbda25e7461b4a484cfafdd79abde2e39dc12e"
"gitHead": "aabbbc30e295acfdb823e2e37c4b862e5c44b68e"
}

@@ -1,2 +0,2 @@

import {resolve, dirname} from 'path';
import {resolve, relative, dirname} from 'path';

@@ -68,2 +68,6 @@ import {

}
relativePath(path: string) {
return relative(this.root, path);
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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