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 3.0.0 to 3.1.0

dts/VirtualPath.d.ts

1

dts/index.d.ts

@@ -18,4 +18,5 @@ /**

export * from './types';
export * from './VirtualPath';
export * from '@boost/decorators';
export type { Blueprint, DeepPartial, Schemas } from 'optimal';
//# sourceMappingURL=index.d.ts.map

4

dts/ModulePath.d.ts

@@ -6,4 +6,4 @@ import { ModuleID, Pathable, PortablePath } from './types';

export declare class ModulePath implements Pathable {
private internalPath;
private isNormalized;
protected internalPath: string;
protected isNormalized: boolean;
constructor(...parts: PortablePath[]);

@@ -10,0 +10,0 @@ /**

import { FilePath, Pathable, PortablePath } from './types';
/**
* An immutable class for operating on file system paths.
* Will normalize path separators based on the operating system,
* "/" on Linux/MacOS, and "\\" on Windows.
*/

@@ -8,4 +10,4 @@ export declare class Path implements Pathable {

static SEP: string;
private internalPath;
private isNormalized;
protected internalPath: string;
protected isNormalized: boolean;
constructor(...parts: PortablePath[]);

@@ -12,0 +14,0 @@ /**

@@ -6,2 +6,78 @@ 'use strict';

});
function _asyncIterator(iterable) {
var method,
async,
sync,
retry = 2;
if (typeof Symbol !== "undefined") {
async = Symbol.asyncIterator;
sync = Symbol.iterator;
}
while (retry--) {
if (async && (method = iterable[async]) != null) {
return method.call(iterable);
}
if (sync && (method = iterable[sync]) != null) {
return new AsyncFromSyncIterator(method.call(iterable));
}
async = "@@asyncIterator";
sync = "@@iterator";
}
throw new TypeError("Object is not async iterable");
}
function AsyncFromSyncIterator(s) {
AsyncFromSyncIterator = function (s) {
this.s = s;
this.n = s.next;
};
AsyncFromSyncIterator.prototype = {
s: null,
n: null,
next: function () {
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
},
return: function (value) {
var ret = this.s.return;
if (ret === undefined) {
return Promise.resolve({
value: value,
done: true
});
}
return AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
},
throw: function (value) {
var thr = this.s.return;
if (thr === undefined) return Promise.reject(value);
return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
}
};
function AsyncFromSyncIteratorContinuation(r) {
if (Object(r) !== r) {
return Promise.reject(new TypeError(r + " is not an object."));
}
var done = r.done;
return Promise.resolve(r.value).then(function (value) {
return {
value: value,
done: done
};
});
}
return new AsyncFromSyncIterator(s);
}
var REACT_ELEMENT_TYPE;

@@ -172,16 +248,2 @@

function _asyncIterator(iterable) {
var method;
if (typeof Symbol !== "undefined") {
if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
}
if (method == null) method = iterable["@@asyncIterator"];
if (method == null) method = iterable["@@iterator"];
if (method == null) throw new TypeError("Object is not async iterable");
return method.call(iterable);
}
function _AwaitValue(value) {

@@ -761,3 +823,3 @@ this.wrapped = value;

function _get(target, property, receiver) {
function _get() {
if (typeof Reflect !== "undefined" && Reflect.get) {

@@ -773,3 +835,3 @@ _get = Reflect.get;

if (desc.get) {
return desc.get.call(receiver);
return desc.get.call(arguments.length < 3 ? target : receiver);
}

@@ -781,3 +843,3 @@

return _get(target, property, receiver || target);
return _get.apply(this, arguments);
}

@@ -784,0 +846,0 @@

@@ -33,2 +33,4 @@ 'use strict';

const VirtualPath = require('./VirtualPath.js');
const decorators = require('@boost/decorators');

@@ -75,2 +77,3 @@

exports.yaml = yaml$1;
exports.VirtualPath = VirtualPath.VirtualPath;
exports.createBlueprint = createBlueprint.createBlueprint;

@@ -77,0 +80,0 @@ exports.deepFreeze = deepFreeze.deepFreeze;

@@ -20,2 +20,4 @@ 'use strict';

* An immutable class for operating on file system paths.
* Will normalize path separators based on the operating system,
* "/" on Linux/MacOS, and "\\" on Windows.
*/

@@ -22,0 +24,0 @@

{
"name": "@boost/common",
"version": "3.0.0",
"version": "3.1.0",
"release": "1594765247526",

@@ -67,3 +67,3 @@ "description": "A collection of common utilities, classes, and helpers.",

},
"gitHead": "3934541f918ab3c6a1b53e34f302121ccdd23b83"
"gitHead": "7004d65394cb7c69b6bd28dcc64a2052bc13b0f2"
}

@@ -19,3 +19,4 @@ /**

export * from './types';
export * from './VirtualPath';
export * from '@boost/decorators';
export type { Blueprint, DeepPartial, Schemas } from 'optimal';

@@ -8,5 +8,5 @@ import path from 'path';

export class ModulePath implements Pathable {
private internalPath: string = '';
protected internalPath: string = '';
private isNormalized: boolean = false;
protected isNormalized: boolean = false;

@@ -13,0 +13,0 @@ constructor(...parts: PortablePath[]) {

@@ -7,2 +7,4 @@ import fs from 'fs';

* An immutable class for operating on file system paths.
* Will normalize path separators based on the operating system,
* "/" on Linux/MacOS, and "\\" on Windows.
*/

@@ -14,5 +16,5 @@ export class Path implements Pathable {

private internalPath: string = '';
protected internalPath: string = '';
private isNormalized: boolean = false;
protected isNormalized: boolean = false;

@@ -19,0 +21,0 @@ constructor(...parts: PortablePath[]) {

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