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

@boost/common

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/common - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

lib/decorators/Bind.d.ts

17

CHANGELOG.md

@@ -6,2 +6,19 @@ # Change Log

## 2.1.0 - 2020-07-29
#### 🚀 Updates
- **[Project]** Add PNPM workspaces support. ([a8df8c9](https://github.com/milesj/boost/commit/a8df8c9))
- Add `@Bind` decorator. ([052e9c4](https://github.com/milesj/boost/commit/052e9c4))
- Add `@Debounce` decorator. ([3a6596f](https://github.com/milesj/boost/commit/3a6596f))
- Add `@Deprecate` decorator. ([ab2b26b](https://github.com/milesj/boost/commit/ab2b26b))
- Add `@Memoize` decorator. ([5bdeb55](https://github.com/milesj/boost/commit/5bdeb55))
- Add `@Throttle` decorator. ([a15c125](https://github.com/milesj/boost/commit/a15c125))
**Note:** Version bump only for package @boost/common
# 2.0.0 - 2020-07-14

@@ -8,0 +25,0 @@

1

lib/index.d.ts

@@ -15,2 +15,3 @@ /**

export * from './constants';
export * from './decorators';
export * from './helpers';

@@ -17,0 +18,0 @@ export * from './types';

@@ -53,3 +53,4 @@ "use strict";

__exportStar(require("./constants"), exports);
__exportStar(require("./decorators"), exports);
__exportStar(require("./helpers"), exports);
__exportStar(require("./types"), exports);

1

lib/Path.d.ts

@@ -6,3 +6,2 @@ import { FilePath, PortablePath } from './types';

private internalPath;
private stats;
constructor(...parts: PortablePath[]);

@@ -9,0 +8,0 @@ /**

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

this.internalPath = '';
this.stats = null;
// Always use forward slashes for better interop

@@ -14,0 +13,0 @@ this.internalPath = path_1.default.normalize(path_1.default.join(...parts.map(String))).replace(/\\/gu, Path.SEP);

"use strict";
/* eslint-disable @typescript-eslint/member-ordering */
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -10,2 +17,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const Path_1 = __importDefault(require("./Path"));
const decorators_1 = require("./decorators");
class Project {

@@ -44,5 +52,7 @@ constructor(root = process.cwd()) {

*/
// eslint-disable-next-line complexity
getWorkspaceGlobs(options = {}) {
const pkgPath = this.root.append('package.json');
const lernaPath = this.root.append('lerna.json');
const pnpmPath = this.root.append('pnpm-workspace.yaml');
const workspacePaths = [];

@@ -68,2 +78,9 @@ // Yarn

}
// PNPM
if (workspacePaths.length === 0 && pnpmPath.exists()) {
const pnpm = parseFile_1.default(pnpmPath);
if (Array.isArray(pnpm.packages)) {
workspacePaths.push(...pnpm.packages);
}
}
if (options.relative) {

@@ -80,12 +97,14 @@ return workspacePaths;

return fast_glob_1.default
.sync(this.getWorkspaceGlobs({
relative: true,
}).map((ws) => `${ws}/package.json`), {
.sync(this.getWorkspaceGlobs({ relative: true }), {
absolute: true,
cwd: this.root.path(),
onlyDirectories: true,
})
.map((filePath) => ({
metadata: this.createWorkspaceMetadata(filePath),
package: parseFile_1.default(filePath),
}));
.map((pkgPath) => {
const filePath = new Path_1.default(pkgPath, 'package.json');
return {
metadata: this.createWorkspaceMetadata(filePath),
package: parseFile_1.default(filePath),
};
});
}

@@ -104,2 +123,11 @@ /**

}
__decorate([
decorators_1.Memoize()
], Project.prototype, "getWorkspaceGlobs", null);
__decorate([
decorators_1.Memoize()
], Project.prototype, "getWorkspacePackages", null);
__decorate([
decorators_1.Memoize()
], Project.prototype, "getWorkspacePackagePaths", null);
exports.default = Project;

@@ -110,2 +110,7 @@ import { Blueprint, Predicates } from 'optimal';

}
declare global {
interface TypedPropertyDescriptor<T> {
initializer?: Function;
}
}
//# sourceMappingURL=types.d.ts.map
{
"name": "@boost/common",
"version": "2.0.0",
"version": "2.1.0",
"release": "1594765247526",

@@ -37,3 +37,3 @@ "description": "Common utilities.",

},
"gitHead": "501cfc8418d89ea534572bfe6d3d4340c559e03c"
"gitHead": "fcbd70d657c873083d0c739128c0cc1b16978be2"
}

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

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