@teambit/pnpm 0.0.881 → 0.0.883

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.
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getProxyConfig = getProxyConfig;
7
-
8
7
  function getProxyConfig(config) {
9
8
  const httpProxy = config.httpProxy;
10
9
  const httpsProxy = config.httpsProxy || httpProxy;
@@ -1 +1 @@
1
- {"version":3,"names":["getProxyConfig","config","httpProxy","httpsProxy","proxyConfig","noProxy","rawConfig","noproxy"],"sources":["get-proxy-config.ts"],"sourcesContent":["import { PackageManagerProxyConfig } from '@teambit/dependency-resolver';\nimport { Config } from '@pnpm/config';\n\nexport function getProxyConfig(config: Config): PackageManagerProxyConfig {\n const httpProxy = config.httpProxy;\n const httpsProxy = config.httpsProxy || httpProxy;\n const proxyConfig: PackageManagerProxyConfig = {\n httpProxy,\n httpsProxy,\n noProxy: config.rawConfig.noproxy,\n };\n return proxyConfig;\n}\n\nexport type ProxyConfig = {\n httpProxy?: string;\n httpsProxy?: string;\n noProxy?: boolean | string;\n};\n"],"mappings":";;;;;;;AAGO,SAASA,cAAT,CAAwBC,MAAxB,EAAmE;EACxE,MAAMC,SAAS,GAAGD,MAAM,CAACC,SAAzB;EACA,MAAMC,UAAU,GAAGF,MAAM,CAACE,UAAP,IAAqBD,SAAxC;EACA,MAAME,WAAsC,GAAG;IAC7CF,SAD6C;IAE7CC,UAF6C;IAG7CE,OAAO,EAAEJ,MAAM,CAACK,SAAP,CAAiBC;EAHmB,CAA/C;EAKA,OAAOH,WAAP;AACD"}
1
+ {"version":3,"names":["getProxyConfig","config","httpProxy","httpsProxy","proxyConfig","noProxy","rawConfig","noproxy"],"sources":["get-proxy-config.ts"],"sourcesContent":["import { PackageManagerProxyConfig } from '@teambit/dependency-resolver';\nimport { Config } from '@pnpm/config';\n\nexport function getProxyConfig(config: Config): PackageManagerProxyConfig {\n const httpProxy = config.httpProxy;\n const httpsProxy = config.httpsProxy || httpProxy;\n const proxyConfig: PackageManagerProxyConfig = {\n httpProxy,\n httpsProxy,\n noProxy: config.rawConfig.noproxy,\n };\n return proxyConfig;\n}\n\nexport type ProxyConfig = {\n httpProxy?: string;\n httpsProxy?: string;\n noProxy?: boolean | string;\n};\n"],"mappings":";;;;;;AAGO,SAASA,cAAc,CAACC,MAAc,EAA6B;EACxE,MAAMC,SAAS,GAAGD,MAAM,CAACC,SAAS;EAClC,MAAMC,UAAU,GAAGF,MAAM,CAACE,UAAU,IAAID,SAAS;EACjD,MAAME,WAAsC,GAAG;IAC7CF,SAAS;IACTC,UAAU;IACVE,OAAO,EAAEJ,MAAM,CAACK,SAAS,CAACC;EAC5B,CAAC;EACD,OAAOH,WAAW;AACpB"}
@@ -1,78 +1,57 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.getRegistries = getRegistries;
9
-
10
8
  function _defineProperty2() {
11
9
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
-
13
10
  _defineProperty2 = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  function _credentialsByUri() {
21
16
  const data = _interopRequireDefault(require("credentials-by-uri"));
22
-
23
17
  _credentialsByUri = function () {
24
18
  return data;
25
19
  };
26
-
27
20
  return data;
28
21
  }
29
-
30
22
  function _utils() {
31
23
  const data = require("@teambit/legacy/dist/utils");
32
-
33
24
  _utils = function () {
34
25
  return data;
35
26
  };
36
-
37
27
  return data;
38
28
  }
39
-
40
29
  function _lodash() {
41
30
  const data = require("lodash");
42
-
43
31
  _lodash = function () {
44
32
  return data;
45
33
  };
46
-
47
34
  return data;
48
35
  }
49
-
50
36
  function _nerfDart() {
51
37
  const data = _interopRequireDefault(require("nerf-dart"));
52
-
53
38
  _nerfDart = function () {
54
39
  return data;
55
40
  };
56
-
57
41
  return data;
58
42
  }
59
-
60
43
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
61
-
62
44
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2().default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
63
-
64
45
  function getRegistries(config) {
65
46
  const registriesMap = {};
66
47
  Object.keys(config.registries).forEach(regName => {
67
48
  const uri = config.registries[regName];
68
49
  let credentials = (0, _credentialsByUri().default)(config.rawConfig, uri);
69
50
  let originalAuthConfig = getOriginalAuthConfigByUri(config.rawConfig, uri);
70
-
71
51
  if ((0, _lodash().isEmpty)(credentials)) {
72
52
  credentials = (0, _credentialsByUri().default)(config.rawConfig, switchTrailingSlash(uri));
73
53
  originalAuthConfig = getOriginalAuthConfigByUri(config.rawConfig, switchTrailingSlash(uri));
74
54
  }
75
-
76
55
  registriesMap[regName] = _objectSpread({
77
56
  uri,
78
57
  alwaysAuth: !!credentials.alwaysAuth,
@@ -80,9 +59,9 @@ function getRegistries(config) {
80
59
  }, originalAuthConfig);
81
60
  });
82
61
  return registriesMap;
83
- } // based on https://github.com/pnpm/credentials-by-uri/blob/master/index.js
84
-
62
+ }
85
63
 
64
+ // based on https://github.com/pnpm/credentials-by-uri/blob/master/index.js
86
65
  function getOriginalAuthConfigByUri(config, uri) {
87
66
  const nerfed = (0, _nerfDart().default)(uri);
88
67
  const defnerf = (0, _nerfDart().default)(config.registry);
@@ -94,34 +73,31 @@ function getOriginalAuthConfigByUri(config, uri) {
94
73
  originalAuthValue: creds.originalAuthValue || defaultCredentials.originalAuthValue
95
74
  };
96
75
  }
97
-
98
76
  function getScopedCredentials(nerfed, scope, config) {
99
- const token = config[`${scope}_authToken`]; // Check for bearer token
100
-
77
+ const token = config[`${scope}_authToken`];
78
+ // Check for bearer token
101
79
  if (token) {
102
80
  return {
103
81
  originalAuthType: `authToken`,
104
82
  originalAuthValue: token
105
83
  };
106
84
  }
85
+ const auth = config[`${scope}_auth`];
107
86
 
108
- const auth = config[`${scope}_auth`]; // Check for basic auth token
109
-
87
+ // Check for basic auth token
110
88
  if (auth) {
111
89
  return {
112
90
  originalAuthType: `auth`,
113
91
  originalAuthValue: auth
114
92
  };
115
- } // Check for username/password auth
116
-
93
+ }
117
94
 
95
+ // Check for username/password auth
118
96
  let username;
119
97
  let password;
120
-
121
98
  if (config[`${scope}username`]) {
122
99
  username = config[`${scope}username`];
123
100
  }
124
-
125
101
  if (config[`${scope}_password`]) {
126
102
  if (scope === '') {
127
103
  password = config[`${scope}_password`];
@@ -129,25 +105,21 @@ function getScopedCredentials(nerfed, scope, config) {
129
105
  password = Buffer.from(config[`${scope}_password`], 'base64').toString('utf8');
130
106
  }
131
107
  }
132
-
133
108
  if (username && password) {
134
109
  return {
135
110
  originalAuthType: `user-pass`,
136
111
  originalAuthValue: `${username}:${password}`
137
112
  };
138
113
  }
139
-
140
114
  return {
141
115
  originalAuthType: '',
142
116
  originalAuthValue: ''
143
117
  };
144
118
  }
145
-
146
119
  function switchTrailingSlash(uri) {
147
120
  if (!uri.endsWith('/')) {
148
121
  return `${uri}/`;
149
122
  }
150
-
151
123
  return (0, _utils().stripTrailingChar)(uri, '/');
152
124
  }
153
125
 
@@ -1 +1 @@
1
- {"version":3,"names":["getRegistries","config","registriesMap","Object","keys","registries","forEach","regName","uri","credentials","getCredentialsByURI","rawConfig","originalAuthConfig","getOriginalAuthConfigByUri","isEmpty","switchTrailingSlash","alwaysAuth","authHeaderValue","nerfed","toNerfDart","defnerf","registry","creds","getScopedCredentials","defaultCredentials","originalAuthType","originalAuthValue","scope","token","auth","username","password","Buffer","from","toString","endsWith","stripTrailingChar"],"sources":["get-registries.ts"],"sourcesContent":["import getCredentialsByURI from 'credentials-by-uri';\nimport { RegistriesMap } from '@teambit/dependency-resolver';\nimport { stripTrailingChar } from '@teambit/legacy/dist/utils';\nimport { Config } from '@pnpm/config';\nimport { isEmpty } from 'lodash';\nimport toNerfDart from 'nerf-dart';\n\ntype OriginalAuthConfig = {\n originalAuthType: string;\n originalAuthValue: string;\n};\n\nexport function getRegistries(config: Config): RegistriesMap {\n const registriesMap: RegistriesMap = {};\n\n Object.keys(config.registries).forEach((regName) => {\n const uri = config.registries[regName];\n let credentials = getCredentialsByURI(config.rawConfig, uri);\n let originalAuthConfig = getOriginalAuthConfigByUri(config.rawConfig, uri);\n if (isEmpty(credentials)) {\n credentials = getCredentialsByURI(config.rawConfig, switchTrailingSlash(uri));\n originalAuthConfig = getOriginalAuthConfigByUri(config.rawConfig, switchTrailingSlash(uri));\n }\n registriesMap[regName] = {\n uri,\n alwaysAuth: !!credentials.alwaysAuth,\n authHeaderValue: credentials.authHeaderValue,\n ...originalAuthConfig,\n };\n });\n return registriesMap;\n}\n\n// based on https://github.com/pnpm/credentials-by-uri/blob/master/index.js\nfunction getOriginalAuthConfigByUri(config: Record<string, any>, uri: string): OriginalAuthConfig {\n const nerfed = toNerfDart(uri);\n const defnerf = toNerfDart(config.registry);\n\n const creds = getScopedCredentials(nerfed, `${nerfed}:`, config);\n if (nerfed !== defnerf) return creds;\n const defaultCredentials = getScopedCredentials(nerfed, '', config);\n return {\n originalAuthType: creds.originalAuthType || defaultCredentials.originalAuthType,\n originalAuthValue: creds.originalAuthValue || defaultCredentials.originalAuthValue,\n };\n}\n\nfunction getScopedCredentials(nerfed: string, scope: string, config: Record<string, any>): OriginalAuthConfig {\n const token = config[`${scope}_authToken`];\n // Check for bearer token\n if (token) {\n return {\n originalAuthType: `authToken`,\n originalAuthValue: token,\n };\n }\n\n const auth = config[`${scope}_auth`];\n\n // Check for basic auth token\n if (auth) {\n return {\n originalAuthType: `auth`,\n originalAuthValue: auth,\n };\n }\n\n // Check for username/password auth\n let username;\n let password;\n if (config[`${scope}username`]) {\n username = config[`${scope}username`];\n }\n if (config[`${scope}_password`]) {\n if (scope === '') {\n password = config[`${scope}_password`];\n } else {\n password = Buffer.from(config[`${scope}_password`], 'base64').toString('utf8');\n }\n }\n\n if (username && password) {\n return {\n originalAuthType: `user-pass`,\n originalAuthValue: `${username}:${password}`,\n };\n }\n\n return {\n originalAuthType: '',\n originalAuthValue: '',\n };\n}\n\nfunction switchTrailingSlash(uri: string): string {\n if (!uri.endsWith('/')) {\n return `${uri}/`;\n }\n return stripTrailingChar(uri, '/');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;;;;;AAOO,SAASA,aAAT,CAAuBC,MAAvB,EAAsD;EAC3D,MAAMC,aAA4B,GAAG,EAArC;EAEAC,MAAM,CAACC,IAAP,CAAYH,MAAM,CAACI,UAAnB,EAA+BC,OAA/B,CAAwCC,OAAD,IAAa;IAClD,MAAMC,GAAG,GAAGP,MAAM,CAACI,UAAP,CAAkBE,OAAlB,CAAZ;IACA,IAAIE,WAAW,GAAG,IAAAC,2BAAA,EAAoBT,MAAM,CAACU,SAA3B,EAAsCH,GAAtC,CAAlB;IACA,IAAII,kBAAkB,GAAGC,0BAA0B,CAACZ,MAAM,CAACU,SAAR,EAAmBH,GAAnB,CAAnD;;IACA,IAAI,IAAAM,iBAAA,EAAQL,WAAR,CAAJ,EAA0B;MACxBA,WAAW,GAAG,IAAAC,2BAAA,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,GAAG5B,MAAM,CAAE,GAAE0B,KAAM,OAAV,CAAnB,CAV4G,CAY5G;;EACA,IAAIE,IAAJ,EAAU;IACR,OAAO;MACLJ,gBAAgB,EAAG,MADd;MAELC,iBAAiB,EAAEG;IAFd,CAAP;EAID,CAlB2G,CAoB5G;;;EACA,IAAIC,QAAJ;EACA,IAAIC,QAAJ;;EACA,IAAI9B,MAAM,CAAE,GAAE0B,KAAM,UAAV,CAAV,EAAgC;IAC9BG,QAAQ,GAAG7B,MAAM,CAAE,GAAE0B,KAAM,UAAV,CAAjB;EACD;;EACD,IAAI1B,MAAM,CAAE,GAAE0B,KAAM,WAAV,CAAV,EAAiC;IAC/B,IAAIA,KAAK,KAAK,EAAd,EAAkB;MAChBI,QAAQ,GAAG9B,MAAM,CAAE,GAAE0B,KAAM,WAAV,CAAjB;IACD,CAFD,MAEO;MACLI,QAAQ,GAAGC,MAAM,CAACC,IAAP,CAAYhC,MAAM,CAAE,GAAE0B,KAAM,WAAV,CAAlB,EAAyC,QAAzC,EAAmDO,QAAnD,CAA4D,MAA5D,CAAX;IACD;EACF;;EAED,IAAIJ,QAAQ,IAAIC,QAAhB,EAA0B;IACxB,OAAO;MACLN,gBAAgB,EAAG,WADd;MAELC,iBAAiB,EAAG,GAAEI,QAAS,IAAGC,QAAS;IAFtC,CAAP;EAID;;EAED,OAAO;IACLN,gBAAgB,EAAE,EADb;IAELC,iBAAiB,EAAE;EAFd,CAAP;AAID;;AAED,SAASX,mBAAT,CAA6BP,GAA7B,EAAkD;EAChD,IAAI,CAACA,GAAG,CAAC2B,QAAJ,CAAa,GAAb,CAAL,EAAwB;IACtB,OAAQ,GAAE3B,GAAI,GAAd;EACD;;EACD,OAAO,IAAA4B,0BAAA,EAAkB5B,GAAlB,EAAuB,GAAvB,CAAP;AACD"}
1
+ {"version":3,"names":["getRegistries","config","registriesMap","Object","keys","registries","forEach","regName","uri","credentials","getCredentialsByURI","rawConfig","originalAuthConfig","getOriginalAuthConfigByUri","isEmpty","switchTrailingSlash","alwaysAuth","authHeaderValue","nerfed","toNerfDart","defnerf","registry","creds","getScopedCredentials","defaultCredentials","originalAuthType","originalAuthValue","scope","token","auth","username","password","Buffer","from","toString","endsWith","stripTrailingChar"],"sources":["get-registries.ts"],"sourcesContent":["import getCredentialsByURI from 'credentials-by-uri';\nimport { RegistriesMap } from '@teambit/dependency-resolver';\nimport { stripTrailingChar } from '@teambit/legacy/dist/utils';\nimport { Config } from '@pnpm/config';\nimport { isEmpty } from 'lodash';\nimport toNerfDart from 'nerf-dart';\n\ntype OriginalAuthConfig = {\n originalAuthType: string;\n originalAuthValue: string;\n};\n\nexport function getRegistries(config: Config): RegistriesMap {\n const registriesMap: RegistriesMap = {};\n\n Object.keys(config.registries).forEach((regName) => {\n const uri = config.registries[regName];\n let credentials = getCredentialsByURI(config.rawConfig, uri);\n let originalAuthConfig = getOriginalAuthConfigByUri(config.rawConfig, uri);\n if (isEmpty(credentials)) {\n credentials = getCredentialsByURI(config.rawConfig, switchTrailingSlash(uri));\n originalAuthConfig = getOriginalAuthConfigByUri(config.rawConfig, switchTrailingSlash(uri));\n }\n registriesMap[regName] = {\n uri,\n alwaysAuth: !!credentials.alwaysAuth,\n authHeaderValue: credentials.authHeaderValue,\n ...originalAuthConfig,\n };\n });\n return registriesMap;\n}\n\n// based on https://github.com/pnpm/credentials-by-uri/blob/master/index.js\nfunction getOriginalAuthConfigByUri(config: Record<string, any>, uri: string): OriginalAuthConfig {\n const nerfed = toNerfDart(uri);\n const defnerf = toNerfDart(config.registry);\n\n const creds = getScopedCredentials(nerfed, `${nerfed}:`, config);\n if (nerfed !== defnerf) return creds;\n const defaultCredentials = getScopedCredentials(nerfed, '', config);\n return {\n originalAuthType: creds.originalAuthType || defaultCredentials.originalAuthType,\n originalAuthValue: creds.originalAuthValue || defaultCredentials.originalAuthValue,\n };\n}\n\nfunction getScopedCredentials(nerfed: string, scope: string, config: Record<string, any>): OriginalAuthConfig {\n const token = config[`${scope}_authToken`];\n // Check for bearer token\n if (token) {\n return {\n originalAuthType: `authToken`,\n originalAuthValue: token,\n };\n }\n\n const auth = config[`${scope}_auth`];\n\n // Check for basic auth token\n if (auth) {\n return {\n originalAuthType: `auth`,\n originalAuthValue: auth,\n };\n }\n\n // Check for username/password auth\n let username;\n let password;\n if (config[`${scope}username`]) {\n username = config[`${scope}username`];\n }\n if (config[`${scope}_password`]) {\n if (scope === '') {\n password = config[`${scope}_password`];\n } else {\n password = Buffer.from(config[`${scope}_password`], 'base64').toString('utf8');\n }\n }\n\n if (username && password) {\n return {\n originalAuthType: `user-pass`,\n originalAuthValue: `${username}:${password}`,\n };\n }\n\n return {\n originalAuthType: '',\n originalAuthValue: '',\n };\n}\n\nfunction switchTrailingSlash(uri: string): string {\n if (!uri.endsWith('/')) {\n return `${uri}/`;\n }\n return stripTrailingChar(uri, '/');\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAmC;AAAA;AAO5B,SAASA,aAAa,CAACC,MAAc,EAAiB;EAC3D,MAAMC,aAA4B,GAAG,CAAC,CAAC;EAEvCC,MAAM,CAACC,IAAI,CAACH,MAAM,CAACI,UAAU,CAAC,CAACC,OAAO,CAAEC,OAAO,IAAK;IAClD,MAAMC,GAAG,GAAGP,MAAM,CAACI,UAAU,CAACE,OAAO,CAAC;IACtC,IAAIE,WAAW,GAAG,IAAAC,2BAAmB,EAACT,MAAM,CAACU,SAAS,EAAEH,GAAG,CAAC;IAC5D,IAAII,kBAAkB,GAAGC,0BAA0B,CAACZ,MAAM,CAACU,SAAS,EAAEH,GAAG,CAAC;IAC1E,IAAI,IAAAM,iBAAO,EAACL,WAAW,CAAC,EAAE;MACxBA,WAAW,GAAG,IAAAC,2BAAmB,EAACT,MAAM,CAAC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AM,OAAM,CAAC;;EAEpC;EACA,IAAIE,IAAI,EAAE;IACR,OAAO;MACLJ,gBAAgB,EAAG,MAAK;MACxBC,iBAAiB,EAAEG;IACrB,CAAC;EACH;;EAEA;EACA,IAAIC,QAAQ;EACZ,IAAIC,QAAQ;EACZ,IAAI9B,MAAM,CAAE,GAAE0B,KAAM,UAAS,CAAC,EAAE;IAC9BG,QAAQ,GAAG7B,MAAM,CAAE,GAAE0B,KAAM,UAAS,CAAC;EACvC;EACA,IAAI1B,MAAM,CAAE,GAAE0B,KAAM,WAAU,CAAC,EAAE;IAC/B,IAAIA,KAAK,KAAK,EAAE,EAAE;MAChBI,QAAQ,GAAG9B,MAAM,CAAE,GAAE0B,KAAM,WAAU,CAAC;IACxC,CAAC,MAAM;MACLI,QAAQ,GAAGC,MAAM,CAACC,IAAI,CAAChC,MAAM,CAAE,GAAE0B,KAAM,WAAU,CAAC,EAAE,QAAQ,CAAC,CAACO,QAAQ,CAAC,MAAM,CAAC;IAChF;EACF;EAEA,IAAIJ,QAAQ,IAAIC,QAAQ,EAAE;IACxB,OAAO;MACLN,gBAAgB,EAAG,WAAU;MAC7BC,iBAAiB,EAAG,GAAEI,QAAS,IAAGC,QAAS;IAC7C,CAAC;EACH;EAEA,OAAO;IACLN,gBAAgB,EAAE,EAAE;IACpBC,iBAAiB,EAAE;EACrB,CAAC;AACH;AAEA,SAASX,mBAAmB,CAACP,GAAW,EAAU;EAChD,IAAI,CAACA,GAAG,CAAC2B,QAAQ,CAAC,GAAG,CAAC,EAAE;IACtB,OAAQ,GAAE3B,GAAI,GAAE;EAClB;EACA,OAAO,IAAA4B,0BAAiB,EAAC5B,GAAG,EAAE,GAAG,CAAC;AACpC"}
package/dist/index.js CHANGED
@@ -15,14 +15,11 @@ Object.defineProperty(exports, "default", {
15
15
  return _pnpm().PnpmAspect;
16
16
  }
17
17
  });
18
-
19
18
  function _pnpm() {
20
19
  const data = require("./pnpm.aspect");
21
-
22
20
  _pnpm = function () {
23
21
  return data;
24
22
  };
25
-
26
23
  return data;
27
24
  }
28
25
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type { PnpmMain } from './pnpm.main.runtime';\nexport type { PnpmUI } from './pnpm.ui.runtime';\nexport { PnpmAspect as default, PnpmAspect } from './pnpm.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type { PnpmMain } from './pnpm.main.runtime';\nexport type { PnpmUI } from './pnpm.ui.runtime';\nexport { PnpmAspect as default, PnpmAspect } from './pnpm.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.logConverter = logConverter;
7
-
8
7
  function logConverter(logger) {
9
8
  return log => {
10
9
  // TODO: think whether to use this or delegate output to the package manager.
@@ -1 +1 @@
1
- {"version":3,"names":["logConverter","logger","log","level","debug","toString","warn","error"],"sources":["log-converter.ts"],"sourcesContent":["import { LogBase } from '@pnpm/logger';\nimport { Logger } from '@teambit/logger';\n\nexport function logConverter(logger: Logger) {\n return (log: LogBase) => {\n // TODO: think whether to use this or delegate output to the package manager.\n if (log.level === 'debug') logger.debug(log.toString());\n if (log.level === 'warn') logger.warn(log.toString());\n if (log.level === 'debug') logger.debug(log.toString());\n if (log.level === 'error') logger.error(log.toString());\n };\n}\n"],"mappings":";;;;;;;AAGO,SAASA,YAAT,CAAsBC,MAAtB,EAAsC;EAC3C,OAAQC,GAAD,IAAkB;IACvB;IACA,IAAIA,GAAG,CAACC,KAAJ,KAAc,OAAlB,EAA2BF,MAAM,CAACG,KAAP,CAAaF,GAAG,CAACG,QAAJ,EAAb;IAC3B,IAAIH,GAAG,CAACC,KAAJ,KAAc,MAAlB,EAA0BF,MAAM,CAACK,IAAP,CAAYJ,GAAG,CAACG,QAAJ,EAAZ;IAC1B,IAAIH,GAAG,CAACC,KAAJ,KAAc,OAAlB,EAA2BF,MAAM,CAACG,KAAP,CAAaF,GAAG,CAACG,QAAJ,EAAb;IAC3B,IAAIH,GAAG,CAACC,KAAJ,KAAc,OAAlB,EAA2BF,MAAM,CAACM,KAAP,CAAaL,GAAG,CAACG,QAAJ,EAAb;EAC5B,CAND;AAOD"}
1
+ {"version":3,"names":["logConverter","logger","log","level","debug","toString","warn","error"],"sources":["log-converter.ts"],"sourcesContent":["import { LogBase } from '@pnpm/logger';\nimport { Logger } from '@teambit/logger';\n\nexport function logConverter(logger: Logger) {\n return (log: LogBase) => {\n // TODO: think whether to use this or delegate output to the package manager.\n if (log.level === 'debug') logger.debug(log.toString());\n if (log.level === 'warn') logger.warn(log.toString());\n if (log.level === 'debug') logger.debug(log.toString());\n if (log.level === 'error') logger.error(log.toString());\n };\n}\n"],"mappings":";;;;;;AAGO,SAASA,YAAY,CAACC,MAAc,EAAE;EAC3C,OAAQC,GAAY,IAAK;IACvB;IACA,IAAIA,GAAG,CAACC,KAAK,KAAK,OAAO,EAAEF,MAAM,CAACG,KAAK,CAACF,GAAG,CAACG,QAAQ,EAAE,CAAC;IACvD,IAAIH,GAAG,CAACC,KAAK,KAAK,MAAM,EAAEF,MAAM,CAACK,IAAI,CAACJ,GAAG,CAACG,QAAQ,EAAE,CAAC;IACrD,IAAIH,GAAG,CAACC,KAAK,KAAK,OAAO,EAAEF,MAAM,CAACG,KAAK,CAACF,GAAG,CAACG,QAAQ,EAAE,CAAC;IACvD,IAAIH,GAAG,CAACC,KAAK,KAAK,OAAO,EAAEF,MAAM,CAACM,KAAK,CAACL,GAAG,CAACG,QAAQ,EAAE,CAAC;EACzD,CAAC;AACH"}