@01/env 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});new Function("try {return this===window;}catch(e){ return false;}")();new Function("try {return this===self && typeof importScripts !== 'undefined';}catch(e){return false;}")();const r=typeof global<"u"&&typeof process<"u"&&typeof process.stdout<"u";function o(n,t){let e;return!r&&typeof window<"u"&&window.ENV?e=window.ENV&&window.ENV[n]:typeof process<"u"&&process.env&&(e=process.env[n]),e!==void 0?e:t}function u(n,t){const e=o(n);return e?parseInt(e):t}function s(n,t){const e=o(n);return e?parseFloat(e):t}function i(n,t){const e=o(n);return e?e.toLowerCase()==="true"||e==="1":t}function c(n,t){const e=o(n);if(e)try{return JSON.parse(e)}catch{}return t}exports.env=o;exports.envBoolean=i;exports.envFloat=s;exports.envInt=u;exports.envJson=c;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/runtime.ts","../../src/env.ts"],"sourcesContent":["//tslint:disable-next-line\nexport const isBrowser = new Function(\n 'try {return this===window;}catch(e){ return false;}'\n)()\n//tslint:disable-next-line\nexport const isWorker = new Function(\n \"try {return this===self && typeof importScripts !== 'undefined';}catch(e){return false;}\"\n)()\n//tslint:disable-next-line\nexport const isNode =\n typeof global !== 'undefined' &&\n typeof process !== 'undefined' &&\n typeof process.stdout !== 'undefined'\n","///<reference path=\"./types.d.ts\"/>\n/**\n * Created by n.vinayakan on 06.06.17.\n */\nimport { isNode } from './runtime'\n\ntype DefaultReturnType<T, U> = T extends U ? T : undefined\n\nexport function env<T extends string | undefined>(\n name: string,\n defaultValue?: T\n) {\n let value\n if (!isNode && typeof window !== 'undefined' && window.ENV) {\n value = window.ENV && window.ENV[name]\n } else if (typeof process !== 'undefined' && process.env) {\n value = process.env[name]\n }\n return value !== undefined\n ? value\n : (defaultValue as DefaultReturnType<T, string>)\n}\n\nexport function envInt<T extends number | undefined>(\n name: string,\n defaultValue?: T\n) {\n const envValue = env(name)\n return envValue\n ? parseInt(envValue)\n : (defaultValue as DefaultReturnType<T, number>)\n}\n\nexport function envFloat<T extends number | undefined>(\n name: string,\n defaultValue?: T\n) {\n const envValue = env(name)\n return envValue\n ? parseFloat(envValue)\n : (defaultValue as DefaultReturnType<T, number>)\n}\n\nexport function envBoolean<T extends boolean | undefined>(\n name: string,\n defaultValue?: T\n) {\n const envValue = env(name)\n return envValue\n ? envValue.toLowerCase() === 'true' || envValue === '1'\n : (defaultValue as DefaultReturnType<T, boolean>)\n}\n\nexport function envJson(name: string, defaultValue?: any): any {\n const envValue = env(name)\n if (envValue) {\n try {\n return JSON.parse(envValue)\n } catch (e) {}\n }\n return defaultValue\n}\n"],"names":["isNode","env","name","defaultValue","value","envInt","envValue","envFloat","envBoolean","envJson"],"mappings":"gFACyB,IAAI,SAC3B,qDACF,EAAA,EAEwB,IAAI,SAC1B,0FACF,EAAA,EAEO,MAAMA,EACX,OAAO,OAAW,KAClB,OAAO,QAAY,KACnB,OAAO,QAAQ,OAAW,ICJrB,SAASC,EACdC,EACAC,EACA,CACA,IAAIC,EACJ,MAAI,CAACJ,GAAU,OAAO,OAAW,KAAe,OAAO,IACrDI,EAAQ,OAAO,KAAO,OAAO,IAAIF,CAAI,EAC5B,OAAO,QAAY,KAAe,QAAQ,MACnDE,EAAQ,QAAQ,IAAIF,CAAI,GAEnBE,IAAU,OACbA,EACCD,CACP,CAEO,SAASE,EACdH,EACAC,EACA,CACA,MAAMG,EAAWL,EAAIC,CAAI,EACzB,OAAOI,EACH,SAASA,CAAQ,EAChBH,CACP,CAEO,SAASI,EACdL,EACAC,EACA,CACA,MAAMG,EAAWL,EAAIC,CAAI,EACzB,OAAOI,EACH,WAAWA,CAAQ,EAClBH,CACP,CAEO,SAASK,EACdN,EACAC,EACA,CACA,MAAMG,EAAWL,EAAIC,CAAI,EACzB,OAAOI,EACHA,EAAS,YAAA,IAAkB,QAAUA,IAAa,IACjDH,CACP,CAEO,SAASM,EAAQP,EAAcC,EAAyB,CAC7D,MAAMG,EAAWL,EAAIC,CAAI,EACzB,GAAII,EACF,GAAI,CACF,OAAO,KAAK,MAAMA,CAAQ,CAC5B,MAAY,CAAC,CAEf,OAAOH,CACT"}
package/dist/env.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="~/env" />
2
1
  type DefaultReturnType<T, U> = T extends U ? T : undefined;
3
2
  export declare function env<T extends string | undefined>(name: string, defaultValue?: T): string | DefaultReturnType<T, string>;
4
3
  export declare function envInt<T extends number | undefined>(name: string, defaultValue?: T): number | DefaultReturnType<T, number>;
package/dist/env.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":";AAMA,KAAK,iBAAiB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;AAE1D,wBAAgB,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,EAC9C,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,yCAWjB;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,EACjD,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,yCAMjB;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,EACnD,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,yCAMjB;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,SAAS,EACtD,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,2CAMjB;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,GAAG,CAQ7D"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAMA,KAAK,iBAAiB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;AAE1D,wBAAgB,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,EAC9C,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,yCAWjB;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,EACjD,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,yCAMjB;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,EACnD,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,yCAMjB;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,SAAS,EACtD,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,2CAMjB;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,GAAG,CAQ7D"}
@@ -0,0 +1,40 @@
1
+ new Function(
2
+ "try {return this===window;}catch(e){ return false;}"
3
+ )();
4
+ new Function(
5
+ "try {return this===self && typeof importScripts !== 'undefined';}catch(e){return false;}"
6
+ )();
7
+ const r = typeof global < "u" && typeof process < "u" && typeof process.stdout < "u";
8
+ function o(n, t) {
9
+ let e;
10
+ return !r && typeof window < "u" && window.ENV ? e = window.ENV && window.ENV[n] : typeof process < "u" && process.env && (e = process.env[n]), e !== void 0 ? e : t;
11
+ }
12
+ function s(n, t) {
13
+ const e = o(n);
14
+ return e ? parseInt(e) : t;
15
+ }
16
+ function i(n, t) {
17
+ const e = o(n);
18
+ return e ? parseFloat(e) : t;
19
+ }
20
+ function c(n, t) {
21
+ const e = o(n);
22
+ return e ? e.toLowerCase() === "true" || e === "1" : t;
23
+ }
24
+ function f(n, t) {
25
+ const e = o(n);
26
+ if (e)
27
+ try {
28
+ return JSON.parse(e);
29
+ } catch {
30
+ }
31
+ return t;
32
+ }
33
+ export {
34
+ o as env,
35
+ c as envBoolean,
36
+ i as envFloat,
37
+ s as envInt,
38
+ f as envJson
39
+ };
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/runtime.ts","../../src/env.ts"],"sourcesContent":["//tslint:disable-next-line\nexport const isBrowser = new Function(\n 'try {return this===window;}catch(e){ return false;}'\n)()\n//tslint:disable-next-line\nexport const isWorker = new Function(\n \"try {return this===self && typeof importScripts !== 'undefined';}catch(e){return false;}\"\n)()\n//tslint:disable-next-line\nexport const isNode =\n typeof global !== 'undefined' &&\n typeof process !== 'undefined' &&\n typeof process.stdout !== 'undefined'\n","///<reference path=\"./types.d.ts\"/>\n/**\n * Created by n.vinayakan on 06.06.17.\n */\nimport { isNode } from './runtime'\n\ntype DefaultReturnType<T, U> = T extends U ? T : undefined\n\nexport function env<T extends string | undefined>(\n name: string,\n defaultValue?: T\n) {\n let value\n if (!isNode && typeof window !== 'undefined' && window.ENV) {\n value = window.ENV && window.ENV[name]\n } else if (typeof process !== 'undefined' && process.env) {\n value = process.env[name]\n }\n return value !== undefined\n ? value\n : (defaultValue as DefaultReturnType<T, string>)\n}\n\nexport function envInt<T extends number | undefined>(\n name: string,\n defaultValue?: T\n) {\n const envValue = env(name)\n return envValue\n ? parseInt(envValue)\n : (defaultValue as DefaultReturnType<T, number>)\n}\n\nexport function envFloat<T extends number | undefined>(\n name: string,\n defaultValue?: T\n) {\n const envValue = env(name)\n return envValue\n ? parseFloat(envValue)\n : (defaultValue as DefaultReturnType<T, number>)\n}\n\nexport function envBoolean<T extends boolean | undefined>(\n name: string,\n defaultValue?: T\n) {\n const envValue = env(name)\n return envValue\n ? envValue.toLowerCase() === 'true' || envValue === '1'\n : (defaultValue as DefaultReturnType<T, boolean>)\n}\n\nexport function envJson(name: string, defaultValue?: any): any {\n const envValue = env(name)\n if (envValue) {\n try {\n return JSON.parse(envValue)\n } catch (e) {}\n }\n return defaultValue\n}\n"],"names":["isNode","env","name","defaultValue","value","envInt","envValue","envFloat","envBoolean","envJson"],"mappings":"AACyB,IAAI;AAAA,EAC3B;AACF,EAAA;AAEwB,IAAI;AAAA,EAC1B;AACF,EAAA;AAEO,MAAMA,IACX,OAAO,SAAW,OAClB,OAAO,UAAY,OACnB,OAAO,QAAQ,SAAW;ACJrB,SAASC,EACdC,GACAC,GACA;AACA,MAAIC;AACJ,SAAI,CAACJ,KAAU,OAAO,SAAW,OAAe,OAAO,MACrDI,IAAQ,OAAO,OAAO,OAAO,IAAIF,CAAI,IAC5B,OAAO,UAAY,OAAe,QAAQ,QACnDE,IAAQ,QAAQ,IAAIF,CAAI,IAEnBE,MAAU,SACbA,IACCD;AACP;AAEO,SAASE,EACdH,GACAC,GACA;AACA,QAAMG,IAAWL,EAAIC,CAAI;AACzB,SAAOI,IACH,SAASA,CAAQ,IAChBH;AACP;AAEO,SAASI,EACdL,GACAC,GACA;AACA,QAAMG,IAAWL,EAAIC,CAAI;AACzB,SAAOI,IACH,WAAWA,CAAQ,IAClBH;AACP;AAEO,SAASK,EACdN,GACAC,GACA;AACA,QAAMG,IAAWL,EAAIC,CAAI;AACzB,SAAOI,IACHA,EAAS,YAAA,MAAkB,UAAUA,MAAa,MACjDH;AACP;AAEO,SAASM,EAAQP,GAAcC,GAAyB;AAC7D,QAAMG,IAAWL,EAAIC,CAAI;AACzB,MAAII;AACF,QAAI;AACF,aAAO,KAAK,MAAMA,CAAQ;AAAA,IAC5B,QAAY;AAAA,IAAC;AAEf,SAAOH;AACT;"}
package/package.json CHANGED
@@ -1,30 +1,52 @@
1
1
  {
2
2
  "name": "@01/env",
3
- "version": "2.2.1",
3
+ "version": "2.3.1",
4
4
  "description": "A tiny env parser for nodejs and browser",
5
- "main": "dist/index.js",
6
- "typings": "dist/index.d.ts",
7
5
  "files": [
8
- "package.json",
9
- "dist"
6
+ "dist",
7
+ "package.json"
10
8
  ],
11
- "repository": "git@github.com:01alchemist/web-service-lib.git",
12
- "author": "Nidin Vinayakan <01@01alchemist.com>",
9
+ "main": "./dist/cjs/index.js",
10
+ "module": "./dist/esm/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/esm/index.js",
16
+ "require": "./dist/cjs/index.js",
17
+ "default": "./dist/cjs/index.js"
18
+ },
19
+ "./package.json": "./package.json"
20
+ },
21
+ "author": "01 Alchemist <01@01alchemist.com>",
13
22
  "keywords": [
14
23
  "nodejs",
15
24
  "env",
16
25
  "utils"
17
26
  ],
18
27
  "license": "MIT",
28
+ "publishConfig": {
29
+ "registry": "https://registry.npmjs.org"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/01alchemist/web-service-lib.git",
34
+ "directory": "packages/env"
35
+ },
19
36
  "scripts": {
37
+ "yalc:publish": "yalc publish --push --sig",
20
38
  "prettier": "prettier --write '**/*.{js,json,ts,gql,graphql}'",
21
39
  "lint": "prettier --check '**/*.{js,json,ts,gql,graphql}'",
22
40
  "watch": "nodemon --watch webpack.config.ts ../../scripts/webpack.js -- --config=webpack.config.ts --watch",
23
- "build": "NODE_ENV=production && tsc -p tsconfig.json && copyfiles package.json ./dist",
41
+ "dev.build": "NODE_ENV=production && vite build && yalc push",
42
+ "build": "NODE_ENV=production && vite build",
43
+ "yalc.retreat": "yalc retreat --all",
24
44
  "precommit": "lint-staged",
25
45
  "test": "NODE_ENV=test jest --ci --coverage --reporters=default --reporters=jest-junit --runInBand",
26
46
  "tdd": "NODE_ENV=test jest --coverage --watch",
27
- "clean": "rm -rf node_modules"
47
+ "clean": "rm -rf ./dist",
48
+ "publish-pkg2": "../../scripts/publish-package.js $PWD",
49
+ "publish-pkg": "npm publish"
28
50
  },
29
51
  "lint-staged": {
30
52
  "*.ts": [
@@ -32,5 +54,10 @@
32
54
  "git add"
33
55
  ]
34
56
  },
35
- "gitHead": "42a0f4b9b62fa95655a7d7f645ba73ad7d4d7c79"
57
+ "gitHead": "0bcce8606dca97ebe097828c94723a59cd766df4",
58
+ "devDependencies": {
59
+ "@01/core-tools": "^1.0.1",
60
+ "vite": "^5.0.0",
61
+ "vite-plugin-dts": "^3.6.0"
62
+ }
36
63
  }
package/dist/env.js DELETED
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.envJson = exports.envBoolean = exports.envFloat = exports.envInt = exports.env = void 0;
4
- ///<reference path="./env.d.ts"/>
5
- /**
6
- * Created by n.vinayakan on 06.06.17.
7
- */
8
- const runtime_1 = require("./runtime");
9
- function env(name, defaultValue) {
10
- let value;
11
- if (!runtime_1.isNode && typeof window !== 'undefined' && window.ENV) {
12
- value = window.ENV && window.ENV[name];
13
- }
14
- else if (typeof process !== 'undefined' && process.env) {
15
- value = process.env[name];
16
- }
17
- return value !== undefined
18
- ? value
19
- : defaultValue;
20
- }
21
- exports.env = env;
22
- function envInt(name, defaultValue) {
23
- const envValue = env(name);
24
- return envValue
25
- ? parseInt(envValue)
26
- : defaultValue;
27
- }
28
- exports.envInt = envInt;
29
- function envFloat(name, defaultValue) {
30
- const envValue = env(name);
31
- return envValue
32
- ? parseFloat(envValue)
33
- : defaultValue;
34
- }
35
- exports.envFloat = envFloat;
36
- function envBoolean(name, defaultValue) {
37
- const envValue = env(name);
38
- return envValue
39
- ? envValue.toLowerCase() === 'true' || envValue === '1'
40
- : defaultValue;
41
- }
42
- exports.envBoolean = envBoolean;
43
- function envJson(name, defaultValue) {
44
- const envValue = env(name);
45
- if (envValue) {
46
- try {
47
- return JSON.parse(envValue);
48
- }
49
- catch (e) { }
50
- }
51
- return defaultValue;
52
- }
53
- exports.envJson = envJson;
54
- //# sourceMappingURL=env.js.map
package/dist/env.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC;;GAEG;AACH,uCAAkC;AAIlC,SAAgB,GAAG,CACjB,IAAY,EACZ,YAAgB;IAEhB,IAAI,KAAK,CAAA;IACT,IAAI,CAAC,gBAAM,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;QAC3D,KAAK,GAAG,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IACxC,CAAC;SAAM,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QACzD,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAC3B,CAAC;IACD,OAAO,KAAK,KAAK,SAAS;QACxB,CAAC,CAAC,KAAK;QACP,CAAC,CAAE,YAA6C,CAAA;AACpD,CAAC;AAbD,kBAaC;AAED,SAAgB,MAAM,CACpB,IAAY,EACZ,YAAgB;IAEhB,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,CAAA;IAC1B,OAAO,QAAQ;QACb,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACpB,CAAC,CAAE,YAA6C,CAAA;AACpD,CAAC;AARD,wBAQC;AAED,SAAgB,QAAQ,CACtB,IAAY,EACZ,YAAgB;IAEhB,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,CAAA;IAC1B,OAAO,QAAQ;QACb,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;QACtB,CAAC,CAAE,YAA6C,CAAA;AACpD,CAAC;AARD,4BAQC;AAED,SAAgB,UAAU,CACxB,IAAY,EACZ,YAAgB;IAEhB,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,CAAA;IAC1B,OAAO,QAAQ;QACb,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,MAAM,IAAI,QAAQ,KAAK,GAAG;QACvD,CAAC,CAAE,YAA8C,CAAA;AACrD,CAAC;AARD,gCAQC;AAED,SAAgB,OAAO,CAAC,IAAY,EAAE,YAAkB;IACtD,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,CAAA;IAC1B,IAAI,QAAQ,EAAE,CAAC;QACb,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;QAC7B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;IAChB,CAAC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC;AARD,0BAQC"}
package/dist/index.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./env"), exports);
5
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAqB"}
package/dist/package.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "name": "@01/env",
3
- "version": "2.2.0",
4
- "description": "A tiny env parser for nodejs and browser",
5
- "main": "dist/index.js",
6
- "typings": "dist/index.d.ts",
7
- "files": [
8
- "package.json",
9
- "dist"
10
- ],
11
- "repository": "git@github.com:01alchemist/web-service-lib.git",
12
- "author": "Nidin Vinayakan <01@01alchemist.com>",
13
- "keywords": [
14
- "nodejs",
15
- "env",
16
- "utils"
17
- ],
18
- "license": "MIT",
19
- "scripts": {
20
- "prettier": "prettier --write '**/*.{js,json,ts,gql,graphql}'",
21
- "lint": "prettier --check '**/*.{js,json,ts,gql,graphql}'",
22
- "watch": "nodemon --watch webpack.config.ts ../../scripts/webpack.js -- --config=webpack.config.ts --watch",
23
- "build": "NODE_ENV=production && tsc -p tsconfig.json && copyfiles package.json ./dist",
24
- "precommit": "lint-staged",
25
- "test": "NODE_ENV=test jest --ci --coverage --reporters=default --reporters=jest-junit --runInBand",
26
- "tdd": "NODE_ENV=test jest --coverage --watch",
27
- "clean": "rm -rf node_modules"
28
- },
29
- "lint-staged": {
30
- "*.ts": [
31
- "prettier --write",
32
- "git add"
33
- ]
34
- },
35
- "gitHead": "0bcce8606dca97ebe097828c94723a59cd766df4"
36
- }
package/dist/runtime.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNode = exports.isWorker = exports.isBrowser = void 0;
4
- //tslint:disable-next-line
5
- exports.isBrowser = new Function('try {return this===window;}catch(e){ return false;}')();
6
- //tslint:disable-next-line
7
- exports.isWorker = new Function("try {return this===self && typeof importScripts !== 'undefined';}catch(e){return false;}")();
8
- //tslint:disable-next-line
9
- exports.isNode = typeof global !== 'undefined' &&
10
- typeof process !== 'undefined' &&
11
- typeof process.stdout !== 'undefined';
12
- //# sourceMappingURL=runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AACb,QAAA,SAAS,GAAG,IAAI,QAAQ,CACnC,qDAAqD,CACtD,EAAE,CAAA;AACH,0BAA0B;AACb,QAAA,QAAQ,GAAG,IAAI,QAAQ,CAClC,0FAA0F,CAC3F,EAAE,CAAA;AACH,0BAA0B;AACb,QAAA,MAAM,GACjB,OAAO,MAAM,KAAK,WAAW;IAC7B,OAAO,OAAO,KAAK,WAAW;IAC9B,OAAO,OAAO,CAAC,MAAM,KAAK,WAAW,CAAA"}