@forest-fire/utility
Advanced tools
Comparing version 0.59.2 to 0.59.3
@@ -24,2 +24,19 @@ 'use strict'; | ||
var AuthApiType; | ||
(function (AuthApiType) { | ||
AuthApiType["admin"] = "admin"; | ||
AuthApiType["client"] = "client"; | ||
AuthApiType["noAuth"] = "noAuth"; | ||
})(AuthApiType || (AuthApiType = {})); | ||
/** | ||
* this is a work in progress, but is meant to eventually be a complete | ||
* list of possible values for the `providerId` property in identifying | ||
* "providers" supported in Firebase's Auth API. | ||
*/ | ||
var FirebaseAuthProvider; | ||
(function (FirebaseAuthProvider) { | ||
FirebaseAuthProvider["anonymous"] = "anonymous"; | ||
FirebaseAuthProvider["emailAndPassword"] = "emailAndPassword"; | ||
})(FirebaseAuthProvider || (FirebaseAuthProvider = {})); | ||
function isMockConfig(config) { | ||
@@ -36,2 +53,6 @@ return config && config.mocking === true; | ||
} | ||
/** The database connection was established using the Admin SDK */ | ||
// export function isRestSdk(db: IAbstractedDatabase) { | ||
// return db.apiKind === ApiKind.rest; | ||
// } | ||
@@ -68,2 +89,18 @@ /** | ||
var NetworkDelay; | ||
(function (NetworkDelay) { | ||
/** can be fast but can be very, very slow */ | ||
NetworkDelay["lifi"] = "lifi"; | ||
/** consistent but slow */ | ||
NetworkDelay["mobile2g"] = "mobile2g"; | ||
/** consistent but relatively slow */ | ||
NetworkDelay["mobile3g"] = "mobile3g"; | ||
/** consistent and decent performance */ | ||
NetworkDelay["mobile4g"] = "mobile4g"; | ||
/** fast and consistent */ | ||
NetworkDelay["wifi"] = "wifi"; | ||
/** faster than reasonable (1 to 5ms) ... for when you want perf over realism */ | ||
NetworkDelay["lazer"] = "lazer"; | ||
})(NetworkDelay || (NetworkDelay = {})); | ||
/** | ||
@@ -70,0 +107,0 @@ * Takes as input a variety of possible formats and converts it into |
@@ -20,2 +20,19 @@ class FireError extends Error { | ||
var AuthApiType; | ||
(function (AuthApiType) { | ||
AuthApiType["admin"] = "admin"; | ||
AuthApiType["client"] = "client"; | ||
AuthApiType["noAuth"] = "noAuth"; | ||
})(AuthApiType || (AuthApiType = {})); | ||
/** | ||
* this is a work in progress, but is meant to eventually be a complete | ||
* list of possible values for the `providerId` property in identifying | ||
* "providers" supported in Firebase's Auth API. | ||
*/ | ||
var FirebaseAuthProvider; | ||
(function (FirebaseAuthProvider) { | ||
FirebaseAuthProvider["anonymous"] = "anonymous"; | ||
FirebaseAuthProvider["emailAndPassword"] = "emailAndPassword"; | ||
})(FirebaseAuthProvider || (FirebaseAuthProvider = {})); | ||
function isMockConfig(config) { | ||
@@ -32,2 +49,6 @@ return config && config.mocking === true; | ||
} | ||
/** The database connection was established using the Admin SDK */ | ||
// export function isRestSdk(db: IAbstractedDatabase) { | ||
// return db.apiKind === ApiKind.rest; | ||
// } | ||
@@ -64,2 +85,18 @@ /** | ||
var NetworkDelay; | ||
(function (NetworkDelay) { | ||
/** can be fast but can be very, very slow */ | ||
NetworkDelay["lifi"] = "lifi"; | ||
/** consistent but slow */ | ||
NetworkDelay["mobile2g"] = "mobile2g"; | ||
/** consistent but relatively slow */ | ||
NetworkDelay["mobile3g"] = "mobile3g"; | ||
/** consistent and decent performance */ | ||
NetworkDelay["mobile4g"] = "mobile4g"; | ||
/** fast and consistent */ | ||
NetworkDelay["wifi"] = "wifi"; | ||
/** faster than reasonable (1 to 5ms) ... for when you want perf over realism */ | ||
NetworkDelay["lazer"] = "lazer"; | ||
})(NetworkDelay || (NetworkDelay = {})); | ||
/** | ||
@@ -66,0 +103,0 @@ * Takes as input a variety of possible formats and converts it into |
{ | ||
"name": "@forest-fire/utility", | ||
"version": "0.59.2", | ||
"version": "0.59.3", | ||
"description": "Utility functions that are shared across the monorepo", | ||
@@ -31,19 +31,19 @@ "module": "dist/es/index.js", | ||
"devDependencies": { | ||
"@forest-fire/types": "^0.59.2", | ||
"@forest-fire/types": "^0.59.3", | ||
"@types/chai": "^4.2.11", | ||
"@types/mocha": "^7.0.2", | ||
"chai": "^4.2.0", | ||
"mocha": "^7.1.1", | ||
"@types/mocha": "^8.2.2", | ||
"chai": "^4.3.4", | ||
"mocha": "^8.4.0", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^15.0.0", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^8.10.1", | ||
"typescript": "^3.9.2" | ||
"ts-node": "10", | ||
"typescript": "^4.3.2" | ||
}, | ||
"dependencies": { | ||
"common-types": "^1.14.3", | ||
"common-types": "^1.25.0", | ||
"is-gzip": "^2.0.0" | ||
}, | ||
"license": "MIT", | ||
"gitHead": "1e0916f929205a8b9c1d519f6880c38ad420beb3" | ||
"gitHead": "f1e9c8369d9f717da11f4d9f6c1bf6c18f220f08" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
28122
637
1
Updatedcommon-types@^1.25.0