@common-stack/core
Advanced tools
Comparing version 5.0.2-alpha.1 to 5.0.2-alpha.2
class FieldError { | ||
errors; | ||
constructor() { | ||
@@ -3,0 +4,0 @@ this.errors = {}; |
/* eslint-disable no-underscore-dangle */ | ||
/* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
function getEnvironment() { | ||
var _a; | ||
// Browser or web-based mobile environment | ||
@@ -9,3 +8,3 @@ // @ts-ignore: Object is possibly 'undefined'. | ||
// @ts-ignore: Object is possibly 'undefined'. | ||
return ((_a = window.process) === null || _a === void 0 ? void 0 : _a.APP_ENV) || (window === null || window === void 0 ? void 0 : window.__ENV__); | ||
return window.process?.APP_ENV || window?.__ENV__; | ||
} | ||
@@ -12,0 +11,0 @@ // Node.js environment |
{ | ||
"name": "@common-stack/core", | ||
"version": "5.0.2-alpha.1", | ||
"description": "Common core for higher packages to depend on", | ||
"license": "ISC", | ||
"author": "CDMBase LLC", | ||
"type": "module", | ||
"main": "lib/index.js", | ||
"module": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "yarn build:clean && yarn build:lib", | ||
"build:clean": "rimraf lib", | ||
"build:lib": "rollup -c rollup.config.mjs", | ||
"build:lib:watch": "yarn build:lib -- --watch", | ||
"jest": "./node_modules/.bin/jest", | ||
"prepublish": "yarn build", | ||
"test": "cross-env ENV_FILE=../../config/test/test.env jest", | ||
"test:debug": "npm test -- --runInBand", | ||
"test:watch": "npm test -- --watch", | ||
"watch": "yarn build:lib:watch" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"typescript": { | ||
"definition": "lib/index.d.ts" | ||
}, | ||
"gitHead": "a46dba2c7142ade2513ae997eb0a2a143344d6d5" | ||
"name": "@common-stack/core", | ||
"version": "5.0.2-alpha.2", | ||
"description": "Common core for higher packages to depend on", | ||
"license": "ISC", | ||
"author": "CDMBase LLC", | ||
"type": "module", | ||
"main": "lib/index.js", | ||
"module": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "yarn build:clean && yarn build:lib", | ||
"build:clean": "rimraf lib", | ||
"build:lib": "rollup -c rollup.config.mjs", | ||
"build:lib:watch": "yarn build:lib -- --watch", | ||
"jest": "./node_modules/.bin/jest", | ||
"prepublish": "yarn build", | ||
"test": "cross-env ENV_FILE=../../config/test/test.env jest", | ||
"test:debug": "npm test -- --runInBand", | ||
"test:watch": "npm test -- --watch", | ||
"watch": "yarn build:lib:watch" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"typescript": { | ||
"definition": "lib/index.d.ts" | ||
}, | ||
"gitHead": "bd9fa5fc0189c149cc8052acab726b3cd53e8700" | ||
} |
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
7625