@rendr-view/with-preset 0.0.1-alpha.0
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.
- package/.eslintrc.js +8 -0
- package/dist/_bundles/with-preset.d.ts +13 -0
- package/dist/_bundles/with-preset.js +58 -0
- package/dist/_bundles/with-preset.js.map +1 -0
- package/dist/lib/index.d.ts +10 -0
- package/dist/lib/index.js +56 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib-esm/index.d.ts +10 -0
- package/dist/lib-esm/index.js +51 -0
- package/dist/lib-esm/index.js.map +1 -0
- package/package.json +17 -0
- package/src/index.tsx +55 -0
- package/tsconfig.json +8 -0
- package/yarn-error.log +48 -0
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare module "index" {
|
|
3
|
+
import React from "react";
|
|
4
|
+
type PresetLoader = (preset: string, props: any) => any;
|
|
5
|
+
export interface Props {
|
|
6
|
+
preset: string;
|
|
7
|
+
}
|
|
8
|
+
export interface WithPresetOptions {
|
|
9
|
+
delimiter?: string;
|
|
10
|
+
}
|
|
11
|
+
function withPreset<T>(Component: any, presetLoader: PresetLoader, options?: WithPresetOptions): React.FunctionComponent<T & Props>;
|
|
12
|
+
export default withPreset;
|
|
13
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25
|
+
};
|
|
26
|
+
define("index", ["require", "exports", "react"], function (require, exports, react_1) {
|
|
27
|
+
"use strict";
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
react_1 = __importDefault(react_1);
|
|
30
|
+
var DEFAULT_OPTIONS = {
|
|
31
|
+
delimiter: " "
|
|
32
|
+
};
|
|
33
|
+
function splitPresetString(preset, delimiter) {
|
|
34
|
+
if (delimiter === void 0) { delimiter = " "; }
|
|
35
|
+
return preset
|
|
36
|
+
.split(delimiter)
|
|
37
|
+
.map(function (str) { return str.trim(); })
|
|
38
|
+
.filter(function (str) { return !!str; });
|
|
39
|
+
}
|
|
40
|
+
function modifyPropsForPreset(presetLoader, preset, props, options) {
|
|
41
|
+
if (!preset || !presetLoader) {
|
|
42
|
+
return props;
|
|
43
|
+
}
|
|
44
|
+
var presetArray = splitPresetString(preset, options.delimiter);
|
|
45
|
+
return presetArray.reduce(function (prevProps, currentPreset) {
|
|
46
|
+
return presetLoader(currentPreset, prevProps);
|
|
47
|
+
}, props);
|
|
48
|
+
}
|
|
49
|
+
function withPreset(Component, presetLoader, options) {
|
|
50
|
+
if (options === void 0) { options = DEFAULT_OPTIONS; }
|
|
51
|
+
return function (_a) {
|
|
52
|
+
var preset = _a.preset, props = __rest(_a, ["preset"]);
|
|
53
|
+
return (react_1.default.createElement(Component, __assign({}, modifyPropsForPreset(presetLoader, preset, props, options))));
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.default = withPreset;
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=with-preset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-preset.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYA,IAAM,eAAe,GAAG;QACtB,SAAS,EAAE,GAAG;KACf,CAAC;IAEF,SAAS,iBAAiB,CAAC,MAAc,EAAE,SAAe;QAAf,0BAAA,EAAA,eAAe;QACxD,OAAO,MAAM;aACV,KAAK,CAAC,SAAS,CAAC;aAChB,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC;aACtB,MAAM,CAAC,UAAA,GAAG,IAAI,OAAA,CAAC,CAAC,GAAG,EAAL,CAAK,CAAC,CAAC;IAC1B,CAAC;IAED,SAAS,oBAAoB,CAC3B,YAA0B,EAC1B,MAAc,EACd,KAAU,EACV,OAA0B;QAE1B,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE;YAC5B,OAAO,KAAK,CAAC;SACd;QAED,IAAM,WAAW,GAAG,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAEjE,OAAO,WAAW,CAAC,MAAM,CAAC,UAAC,SAAS,EAAE,aAAa;YACjD,OAAO,YAAY,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;QAChD,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC;IAED,SAAS,UAAU,CACjB,SAAc,EACd,YAA0B,EAC1B,OAA4C;QAA5C,wBAAA,EAAA,yBAA4C;QAE5C,OAAO,UAAC,EAA+B;YAA7B,IAAA,MAAM,YAAA,EAAK,KAAK,cAAlB,UAAoB,CAAF;YACxB,OAAO,CACL,8BAAC,SAAS,eACJ,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EACnD,CACd,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;IAED,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type PresetLoader = (preset: string, props: any) => any;
|
|
3
|
+
export interface Props {
|
|
4
|
+
preset: string;
|
|
5
|
+
}
|
|
6
|
+
export interface WithPresetOptions {
|
|
7
|
+
delimiter?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function withPreset<T>(Component: any, presetLoader: PresetLoader, options?: WithPresetOptions): React.FunctionComponent<T & Props>;
|
|
10
|
+
export default withPreset;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var DEFAULT_OPTIONS = {
|
|
30
|
+
delimiter: " "
|
|
31
|
+
};
|
|
32
|
+
function splitPresetString(preset, delimiter) {
|
|
33
|
+
if (delimiter === void 0) { delimiter = " "; }
|
|
34
|
+
return preset
|
|
35
|
+
.split(delimiter)
|
|
36
|
+
.map(function (str) { return str.trim(); })
|
|
37
|
+
.filter(function (str) { return !!str; });
|
|
38
|
+
}
|
|
39
|
+
function modifyPropsForPreset(presetLoader, preset, props, options) {
|
|
40
|
+
if (!preset || !presetLoader) {
|
|
41
|
+
return props;
|
|
42
|
+
}
|
|
43
|
+
var presetArray = splitPresetString(preset, options.delimiter);
|
|
44
|
+
return presetArray.reduce(function (prevProps, currentPreset) {
|
|
45
|
+
return presetLoader(currentPreset, prevProps);
|
|
46
|
+
}, props);
|
|
47
|
+
}
|
|
48
|
+
function withPreset(Component, presetLoader, options) {
|
|
49
|
+
if (options === void 0) { options = DEFAULT_OPTIONS; }
|
|
50
|
+
return function (_a) {
|
|
51
|
+
var preset = _a.preset, props = __rest(_a, ["preset"]);
|
|
52
|
+
return (react_1.default.createElement(Component, __assign({}, modifyPropsForPreset(presetLoader, preset, props, options))));
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.default = withPreset;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAY1B,IAAM,eAAe,GAAG;IACtB,SAAS,EAAE,GAAG;CACf,CAAC;AAEF,SAAS,iBAAiB,CAAC,MAAc,EAAE,SAAe;IAAf,0BAAA,EAAA,eAAe;IACxD,OAAO,MAAM;SACV,KAAK,CAAC,SAAS,CAAC;SAChB,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC;SACtB,MAAM,CAAC,UAAA,GAAG,IAAI,OAAA,CAAC,CAAC,GAAG,EAAL,CAAK,CAAC,CAAC;AAC1B,CAAC;AAED,SAAS,oBAAoB,CAC3B,YAA0B,EAC1B,MAAc,EACd,KAAU,EACV,OAA0B;IAE1B,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE;QAC5B,OAAO,KAAK,CAAC;KACd;IAED,IAAM,WAAW,GAAG,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEjE,OAAO,WAAW,CAAC,MAAM,CAAC,UAAC,SAAS,EAAE,aAAa;QACjD,OAAO,YAAY,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAChD,CAAC,EAAE,KAAK,CAAC,CAAC;AACZ,CAAC;AAED,SAAS,UAAU,CACjB,SAAc,EACd,YAA0B,EAC1B,OAA4C;IAA5C,wBAAA,EAAA,yBAA4C;IAE5C,OAAO,UAAC,EAA+B;QAA7B,IAAA,MAAM,YAAA,EAAK,KAAK,cAAlB,UAAoB,CAAF;QACxB,OAAO,CACL,8BAAC,SAAS,eACJ,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EACnD,CACd,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type PresetLoader = (preset: string, props: any) => any;
|
|
3
|
+
export interface Props {
|
|
4
|
+
preset: string;
|
|
5
|
+
}
|
|
6
|
+
export interface WithPresetOptions {
|
|
7
|
+
delimiter?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function withPreset<T>(Component: any, presetLoader: PresetLoader, options?: WithPresetOptions): React.FunctionComponent<T & Props>;
|
|
10
|
+
export default withPreset;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from "react";
|
|
24
|
+
var DEFAULT_OPTIONS = {
|
|
25
|
+
delimiter: " "
|
|
26
|
+
};
|
|
27
|
+
function splitPresetString(preset, delimiter) {
|
|
28
|
+
if (delimiter === void 0) { delimiter = " "; }
|
|
29
|
+
return preset
|
|
30
|
+
.split(delimiter)
|
|
31
|
+
.map(function (str) { return str.trim(); })
|
|
32
|
+
.filter(function (str) { return !!str; });
|
|
33
|
+
}
|
|
34
|
+
function modifyPropsForPreset(presetLoader, preset, props, options) {
|
|
35
|
+
if (!preset || !presetLoader) {
|
|
36
|
+
return props;
|
|
37
|
+
}
|
|
38
|
+
var presetArray = splitPresetString(preset, options.delimiter);
|
|
39
|
+
return presetArray.reduce(function (prevProps, currentPreset) {
|
|
40
|
+
return presetLoader(currentPreset, prevProps);
|
|
41
|
+
}, props);
|
|
42
|
+
}
|
|
43
|
+
function withPreset(Component, presetLoader, options) {
|
|
44
|
+
if (options === void 0) { options = DEFAULT_OPTIONS; }
|
|
45
|
+
return function (_a) {
|
|
46
|
+
var preset = _a.preset, props = __rest(_a, ["preset"]);
|
|
47
|
+
return (React.createElement(Component, __assign({}, modifyPropsForPreset(presetLoader, preset, props, options))));
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export default withPreset;
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,IAAM,eAAe,GAAG;IACtB,SAAS,EAAE,GAAG;CACf,CAAC;AAEF,SAAS,iBAAiB,CAAC,MAAc,EAAE,SAAe;IAAf,0BAAA,EAAA,eAAe;IACxD,OAAO,MAAM;SACV,KAAK,CAAC,SAAS,CAAC;SAChB,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC;SACtB,MAAM,CAAC,UAAA,GAAG,IAAI,OAAA,CAAC,CAAC,GAAG,EAAL,CAAK,CAAC,CAAC;AAC1B,CAAC;AAED,SAAS,oBAAoB,CAC3B,YAA0B,EAC1B,MAAc,EACd,KAAU,EACV,OAA0B;IAE1B,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE;QAC5B,OAAO,KAAK,CAAC;KACd;IAED,IAAM,WAAW,GAAG,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEjE,OAAO,WAAW,CAAC,MAAM,CAAC,UAAC,SAAS,EAAE,aAAa;QACjD,OAAO,YAAY,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAChD,CAAC,EAAE,KAAK,CAAC,CAAC;AACZ,CAAC;AAED,SAAS,UAAU,CACjB,SAAc,EACd,YAA0B,EAC1B,OAA4C;IAA5C,wBAAA,EAAA,yBAA4C;IAE5C,OAAO,UAAC,EAA+B;QAA7B,IAAA,MAAM,YAAA,EAAK,KAAK,cAAlB,UAAoB,CAAF;QACxB,OAAO,CACL,oBAAC,SAAS,eACJ,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EACnD,CACd,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,eAAe,UAAU,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rendr-view/with-preset",
|
|
3
|
+
"version": "0.0.1-alpha.0",
|
|
4
|
+
"main": "dist/lib/index.js",
|
|
5
|
+
"typing": "dist/lib/index.d.ts",
|
|
6
|
+
"module": "dist/lib-esm/index.js",
|
|
7
|
+
"jsnext:main": "dist/lib-esm/index.js",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"private": false,
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc && tsc -m es6 --outDir dist/lib-esm && tsc -m amd --outFile dist/_bundles/with-preset.js"
|
|
15
|
+
},
|
|
16
|
+
"gitHead": "18b75dc20d125e1979e8758a4ec35d6fa6a71cff"
|
|
17
|
+
}
|
package/src/index.tsx
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
type PresetLoader = (preset: string, props: any) => any;
|
|
4
|
+
|
|
5
|
+
export interface Props {
|
|
6
|
+
preset: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface WithPresetOptions {
|
|
10
|
+
delimiter?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const DEFAULT_OPTIONS = {
|
|
14
|
+
delimiter: " "
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
function splitPresetString(preset: string, delimiter = " "): string[] {
|
|
18
|
+
return preset
|
|
19
|
+
.split(delimiter)
|
|
20
|
+
.map(str => str.trim())
|
|
21
|
+
.filter(str => !!str);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function modifyPropsForPreset(
|
|
25
|
+
presetLoader: PresetLoader,
|
|
26
|
+
preset: string,
|
|
27
|
+
props: any,
|
|
28
|
+
options: WithPresetOptions
|
|
29
|
+
) {
|
|
30
|
+
if (!preset || !presetLoader) {
|
|
31
|
+
return props;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const presetArray = splitPresetString(preset, options.delimiter);
|
|
35
|
+
|
|
36
|
+
return presetArray.reduce((prevProps, currentPreset) => {
|
|
37
|
+
return presetLoader(currentPreset, prevProps);
|
|
38
|
+
}, props);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function withPreset<T>(
|
|
42
|
+
Component: any,
|
|
43
|
+
presetLoader: PresetLoader,
|
|
44
|
+
options: WithPresetOptions = DEFAULT_OPTIONS
|
|
45
|
+
): React.FunctionComponent<T & Props> {
|
|
46
|
+
return ({ preset, ...props }: T & Props) => {
|
|
47
|
+
return (
|
|
48
|
+
<Component
|
|
49
|
+
{...modifyPropsForPreset(presetLoader, preset, props, options)}
|
|
50
|
+
></Component>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export default withPreset;
|
package/tsconfig.json
ADDED
package/yarn-error.log
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Arguments:
|
|
2
|
+
/Users/simondavies/.nvm/versions/node/v16.10.0/bin/node /Users/simondavies/.nvm/versions/node/v16.10.0/bin/yarn install --mutex network:42424 --non-interactive
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
/Users/simondavies/Projects/rendr-view-demo/packages/with-preset/node_modules/.bin:/Users/simondavies/Projects/rendr-view-demo/packages/node_modules/.bin:/Users/simondavies/Projects/rendr-view-demo/node_modules/.bin:/Users/simondavies/Projects/node_modules/.bin:/Users/simondavies/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/simondavies/.nvm/versions/node/v16.10.0/bin:/var/folders/s7/6pj4bjh91l52crty67g99gvc0000gn/T/yarn--1653066437134-0.3446241057043724:/Users/simondavies/Projects/rendr-view-demo/node_modules/.bin:/Users/simondavies/.config/yarn/link/node_modules/.bin:/Users/simondavies/.yarn/bin:/Users/simondavies/.nvm/versions/node/v16.10.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/simondavies/.nvm/versions/node/v16.10.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/simondavies/.nvm/versions/node/v16.10.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/simondavies/.nvm/versions/node/v16.10.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/simondavies/.nvm/versions/node/v16.10.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.18
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
16.10.0
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
darwin arm64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
Error: https://registry.yarnpkg.com/@rendr-view%2fwith-error-handler: Not found
|
|
18
|
+
at Request.params.callback [as _callback] (/Users/simondavies/.nvm/versions/node/v16.10.0/lib/node_modules/yarn/lib/cli.js:66138:18)
|
|
19
|
+
at Request.self.callback (/Users/simondavies/.nvm/versions/node/v16.10.0/lib/node_modules/yarn/lib/cli.js:140883:22)
|
|
20
|
+
at Request.emit (node:events:390:28)
|
|
21
|
+
at Request.<anonymous> (/Users/simondavies/.nvm/versions/node/v16.10.0/lib/node_modules/yarn/lib/cli.js:141855:10)
|
|
22
|
+
at Request.emit (node:events:390:28)
|
|
23
|
+
at IncomingMessage.<anonymous> (/Users/simondavies/.nvm/versions/node/v16.10.0/lib/node_modules/yarn/lib/cli.js:141777:12)
|
|
24
|
+
at Object.onceWrapper (node:events:509:28)
|
|
25
|
+
at IncomingMessage.emit (node:events:402:35)
|
|
26
|
+
at endReadableNT (node:internal/streams/readable:1343:12)
|
|
27
|
+
at processTicksAndRejections (node:internal/process/task_queues:83:21)
|
|
28
|
+
|
|
29
|
+
npm manifest:
|
|
30
|
+
{
|
|
31
|
+
"name": "@rendr-view/with-preset",
|
|
32
|
+
"version": "0.0.0",
|
|
33
|
+
"main": "dist/lib/index.js",
|
|
34
|
+
"typing": "dist/lib/index.d.ts",
|
|
35
|
+
"module": "dist/lib-esm/index.js",
|
|
36
|
+
"jsnext:main": "dist/lib-esm/index.js",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"private": true,
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@rendr-view/with-error-handler": "^0.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
yarn manifest:
|
|
45
|
+
No manifest
|
|
46
|
+
|
|
47
|
+
Lockfile:
|
|
48
|
+
No lockfile
|