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

@frui.ts/helpers

Package Overview
Dependencies
Maintainers
5
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frui.ts/helpers - npm Package Compare versions

Comparing version 0.17.0-generator.2 to 1.0.0-alpha.1

2

dist/bound.d.ts
export default function bound(target: any, propertyKey: string, descriptor: PropertyDescriptor): {
configurable: boolean;
get(): any;
get(): () => any;
};

@@ -12,3 +12,3 @@ "use strict";

get: function () {
if (definingProperty || this === target.prototype || this.hasOwnProperty(propertyKey)) {
if (definingProperty || this === target.prototype || Object.prototype.hasOwnProperty.call(this, propertyKey)) {
return fn;

@@ -15,0 +15,0 @@ }

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

export declare function bind<T>(func: T & Function, target: any): T;
export declare function bind<T extends Function>(func: T, target: any): T;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bind = void 0;
function bind(func, target) {

@@ -4,0 +5,0 @@ return func.bind(target);

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ManualPromise = exports.groupBy = exports.createMap = exports.combineClassNames = exports.bound = void 0;
var bound_1 = require("./bound");
exports.bound = bound_1.default;
Object.defineProperty(exports, "bound", { enumerable: true, get: function () { return __importDefault(bound_1).default; } });
var combineClassNames_1 = require("./combineClassNames");
exports.combineClassNames = combineClassNames_1.default;
Object.defineProperty(exports, "combineClassNames", { enumerable: true, get: function () { return __importDefault(combineClassNames_1).default; } });
var createMap_1 = require("./createMap");
exports.createMap = createMap_1.default;
__export(require("./functionHelpers"));
Object.defineProperty(exports, "createMap", { enumerable: true, get: function () { return __importDefault(createMap_1).default; } });
__exportStar(require("./disposable"), exports);
__exportStar(require("./functionHelpers"), exports);
var groupBy_1 = require("./groupBy");
exports.groupBy = groupBy_1.default;
Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return __importDefault(groupBy_1).default; } });
var manualPromise_1 = require("./manualPromise");
exports.ManualPromise = manualPromise_1.default;
__export(require("./nameof"));
__export(require("./observableHelpers"));
__export(require("./typeHelpers"));
Object.defineProperty(exports, "ManualPromise", { enumerable: true, get: function () { return __importDefault(manualPromise_1).default; } });
__exportStar(require("./nameof"), exports);
__exportStar(require("./observableHelpers"), exports);
__exportStar(require("./typeHelpers"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

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

export default class ManualPromise<T = any> {
export default class ManualPromise<T = unknown> {
promise: Promise<T>;

@@ -7,4 +7,5 @@ status: "new" | "resolved" | "rejected";

constructor();
resolve(result?: T | PromiseLike<T>): void;
resolve(result: T | PromiseLike<T>): void;
resolve(): void;
reject(reason: any): void;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nameof = function (name) { return name; };
exports.nameof = void 0;
var nameof = function (name) { return name; };
exports.nameof = nameof;
//# sourceMappingURL=nameof.js.map

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

import { BindingTarget } from "./types";
export declare function ensureObservableProperty<K, V>(target: Map<K, V>, property: K, value: V): void;
export declare function ensureObservableProperty(target: {}, property: string, value: any): void;
export declare function ensureObservableProperty(target: BindingTarget, property: string, value: any): void;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ensureObservableProperty = void 0;
var mobx_1 = require("mobx");

@@ -4,0 +5,0 @@ function ensureObservableProperty(target, property, value) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isMap = exports.isSet = void 0;
function isSet(item) {
return item && typeof item.add === "function" && typeof item.has === "function" && typeof item.delete === "function";
return !!item && typeof item.add === "function" && typeof item.has === "function" && typeof item.delete === "function";
}
exports.isSet = isSet;
function isMap(item) {
return item && typeof item.add === "function" && typeof item.has === "function" && typeof item.delete === "function";
return !!item && typeof item.add === "function" && typeof item.has === "function" && typeof item.delete === "function";
}
exports.isMap = isMap;
//# sourceMappingURL=typeHelpers.js.map

@@ -0,3 +1,4 @@

export declare type BindingTarget = Map<any, any> | Record<string, any>;
export declare type PropertyName<TTarget> = keyof TTarget & string;
export declare type BindingProperty<TTarget> = TTarget extends Map<infer K, any> ? K : PropertyName<TTarget>;
export declare type PropertyType<TTarget extends Map<any, any> | {}, TProperty extends BindingProperty<TTarget>, TRestrict = any> = (TTarget extends Map<any, infer V> ? V : TTarget[TProperty]) & TRestrict;
export declare type PropertyType<TTarget extends BindingTarget, TProperty extends BindingProperty<TTarget>, TRestrict = any> = (TTarget extends Map<any, infer V> ? V : TTarget[TProperty]) & TRestrict;

@@ -6,3 +6,3 @@ {

},
"version": "0.17.0-generator.2",
"version": "1.0.0-alpha.1",
"description": "Frui.ts helper functions",

@@ -40,3 +40,3 @@ "keywords": [

},
"gitHead": "826d4eeca379d5d758641e928e810b4ac5ee90c2"
"gitHead": "debcc8b7993b1b0708853dddb9d29dc2a5727477"
}

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

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

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