@appsignal/core
Advanced tools
Comparing version 1.1.0-alpha.336 to 1.1.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Serializable = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -11,3 +12,3 @@ tslib_1.__exportStar(require("./utils/functional"), exports); | ||
var serializable_1 = require("./serializable"); | ||
exports.Serializable = serializable_1.Serializable; | ||
Object.defineProperty(exports, "Serializable", { enumerable: true, get: function () { return serializable_1.Serializable; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export declare class Serializable<T> { | ||
export declare class Serializable<T = [] | {}> { | ||
protected _data: T; | ||
@@ -3,0 +3,0 @@ constructor(data: T); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Serializable = void 0; | ||
var Serializable = (function () { | ||
@@ -4,0 +5,0 @@ function Serializable(data) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isAsync = void 0; | ||
exports.isAsync = function (fn) { return fn.constructor.name === "AsyncFunction"; }; | ||
//# sourceMappingURL=async.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getGlobalObject = exports.isNodeEnv = void 0; | ||
function isNodeEnv() { | ||
@@ -4,0 +5,0 @@ return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); |
@@ -1,2 +0,10 @@ | ||
export declare function compose<T>(...funcs: ((arg: T) => T)[]): (arg: T) => T; | ||
declare type Func<T extends any[], R> = (...a: T) => R; | ||
export declare function compose(): <R>(a: R) => R; | ||
export declare function compose<F extends Function>(f: F): F; | ||
export declare function compose<A, T extends any[], R>(f1: (a: A) => R, f2: Func<T, A>): Func<T, R>; | ||
export declare function compose<A, B, T extends any[], R>(f1: (b: B) => R, f2: (a: A) => B, f3: Func<T, A>): Func<T, R>; | ||
export declare function compose<A, B, C, T extends any[], R>(f1: (c: C) => R, f2: (b: B) => C, f3: (a: A) => B, f4: Func<T, A>): Func<T, R>; | ||
export declare function compose<R>(f1: (a: any) => R, ...funcs: Function[]): (...args: any[]) => R; | ||
export declare function compose<R>(...funcs: Function[]): (...args: any[]) => R; | ||
export {}; | ||
//# sourceMappingURL=functional.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.compose = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -9,2 +10,5 @@ function compose() { | ||
} | ||
if (funcs.length === 0) { | ||
return function (arg) { return arg; }; | ||
} | ||
if (funcs.length === 1) { | ||
@@ -11,0 +15,0 @@ return funcs[0]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toHashMap = exports.toHashMapString = void 0; | ||
function toHashMapString(obj) { | ||
@@ -4,0 +5,0 @@ if (!obj) |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getStacktrace = void 0; | ||
function getStacktrace(error) { | ||
@@ -4,0 +5,0 @@ if (typeof error.stacktrace !== "undefined" || |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.urlEncode = void 0; | ||
function urlEncode(object) { | ||
@@ -4,0 +5,0 @@ return Object.keys(object) |
@@ -1,2 +0,2 @@ | ||
export declare class Serializable<T> { | ||
export declare class Serializable<T = [] | {}> { | ||
protected _data: T; | ||
@@ -3,0 +3,0 @@ constructor(data: T); |
@@ -1,2 +0,10 @@ | ||
export declare function compose<T>(...funcs: ((arg: T) => T)[]): (arg: T) => T; | ||
declare type Func<T extends any[], R> = (...a: T) => R; | ||
export declare function compose(): <R>(a: R) => R; | ||
export declare function compose<F extends Function>(f: F): F; | ||
export declare function compose<A, T extends any[], R>(f1: (a: A) => R, f2: Func<T, A>): Func<T, R>; | ||
export declare function compose<A, B, T extends any[], R>(f1: (b: B) => R, f2: (a: A) => B, f3: Func<T, A>): Func<T, R>; | ||
export declare function compose<A, B, C, T extends any[], R>(f1: (c: C) => R, f2: (b: B) => C, f3: (a: A) => B, f4: Func<T, A>): Func<T, R>; | ||
export declare function compose<R>(f1: (a: any) => R, ...funcs: Function[]): (...args: any[]) => R; | ||
export declare function compose<R>(...funcs: Function[]): (...args: any[]) => R; | ||
export {}; | ||
//# sourceMappingURL=functional.d.ts.map |
@@ -7,2 +7,5 @@ import { __read, __spread } from "tslib"; | ||
} | ||
if (funcs.length === 0) { | ||
return function (arg) { return arg; }; | ||
} | ||
if (funcs.length === 1) { | ||
@@ -9,0 +12,0 @@ return funcs[0]; |
{ | ||
"name": "@appsignal/core", | ||
"version": "1.1.0-alpha.336+c098fe7", | ||
"version": "1.1.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -18,3 +18,3 @@ "module": "dist/esm/index.js", | ||
"link:yarn": "yarn link", | ||
"test": "jest --passWithNoTests", | ||
"test": "jest", | ||
"test:watch": "jest --watch" | ||
@@ -26,8 +26,6 @@ }, | ||
"dependencies": { | ||
"tslib": "^1.11.1" | ||
"@appsignal/types": "^1.0.0", | ||
"tslib": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@appsignal/types": "^1.0.0" | ||
}, | ||
"gitHead": "c098fe7601e86374dcc76e5b4474ec2f5405ca15" | ||
"gitHead": "56ad1ce0bf2c30c6d9d8aaad7f98e1a8eccc0ec4" | ||
} |
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
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
27877
0
293
1
0
2
+ Added@appsignal/types@^1.0.0
+ Added@appsignal/types@1.0.0(transitive)
+ Addedtslib@2.7.0(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.1