@sparted/shared-library 1.0.3 → 1.0.5

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.
@@ -2,16 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _tslib = require('../_virtual/_tslib.js');
6
5
  var getCdnFromS3Url_util = require('./utils/get-cdn-from-s3-url.util.js');
6
+ var getCdnUrl_util = require('./utils/get-cdn-url.util.js');
7
7
 
8
- const imgixTransformationQueries = (_a) => {
9
- var { fit } = _a, rest = _tslib.__rest(_a, ["fit"]);
10
- return [
11
- '?auto=compress,format',
12
- ...Object.entries(Object.assign(Object.assign({}, (fit !== undefined && fit === 'crop' ? { fit } : {})), rest)).map(([k, v]) => `&${k}=${v}`),
13
- ].join('');
14
- };
8
+ const imgixTransformationQueries = ({ fit, devicePixelRatio, height, width, quality, }) => [
9
+ '?auto=compress,format',
10
+ fit === 'crop' ? '&fit=crop' : '',
11
+ Number.isFinite(devicePixelRatio) ? `&dpr=${devicePixelRatio}` : '',
12
+ Number.isFinite(height) ? `&h=${height}` : '',
13
+ Number.isFinite(width) ? `&w=${width}` : '',
14
+ quality !== undefined && quality >= 0 && quality <= 100
15
+ ? `&q=${quality}`
16
+ : '',
17
+ ].join('');
15
18
  const twicpicsTransformationQueries = (params) => {
16
19
  if (params.fit !== undefined) {
17
20
  if (params.width === undefined || params.height === undefined) {
@@ -35,14 +38,17 @@ const twicpicsTransformationQueries = (params) => {
35
38
  * @returns \{ getCdnUrl, transformationQueries \}
36
39
  */
37
40
  const createCdn = ({ type, domain, instanceMapper }) => {
38
- const getCdnUrl = (instanceId, path) => `${domain}${instanceMapper(instanceId)}${path}`;
41
+ const getCdnUrl = getCdnUrl_util.getCdnUrlFactory({
42
+ domain,
43
+ instanceMapper,
44
+ transformationQueries: type === 'imgix'
45
+ ? imgixTransformationQueries
46
+ : twicpicsTransformationQueries,
47
+ });
39
48
  return {
40
49
  getCdnUrl,
41
50
  getCdnFromS3Url: getCdnFromS3Url_util.getCdnFromS3UrlFactory({
42
51
  getCdnUrl,
43
- transformationQueries: type === 'imgix'
44
- ? imgixTransformationQueries
45
- : twicpicsTransformationQueries,
46
52
  }),
47
53
  };
48
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"cdn.factory.js","sources":["../../src/cdn/cdn.factory.ts"],"sourcesContent":["import type { CreateCdn, GetCdnUrl, TransformationQueries } from './types';\nimport { getCdnFromS3UrlFactory } from './utils/get-cdn-from-s3-url.util';\n\nexport const imgixTransformationQueries: TransformationQueries = ({ fit, ...rest }) => [\n '?auto=compress,format',\n ...Object.entries({\n ...(fit !== undefined && fit === 'crop' ? { fit } : {}),\n ...rest,\n }).map(([k, v]) => `&${k}=${v}`),\n].join('');\n\nexport const twicpicsTransformationQueries: TransformationQueries = (\n params,\n) => {\n if (params.fit !== undefined) {\n if (params.width === undefined || params.height === undefined) {\n // eslint-disable-next-line no-console\n console.error('⚠️ The Twicpics api needs a width and a height.');\n return '';\n }\n return `?twic=v1/${params.fit}=${params.width}x${params.height}`;\n }\n if (params.width !== undefined) {\n const resizeHeight = params.height !== undefined ? `x${params.height}` : '';\n return `?twic=v1/resize=${params.width}${resizeHeight}`;\n }\n return '';\n};\n\n/**\n *\n * @param type cdn provider: 'twicpics' | 'imgix'\n * @param domain provider domain\n * @param instanceMapper domain + the result of the instanceMapper will form the base path\n * @returns \\{ getCdnUrl, transformationQueries \\}\n */\nexport const createCdn: CreateCdn = ({ type, domain, instanceMapper }) => {\n const getCdnUrl: GetCdnUrl = (instanceId, path) => `${domain}${instanceMapper(instanceId)}${path}`;\n\n return {\n getCdnUrl,\n getCdnFromS3Url: getCdnFromS3UrlFactory({\n getCdnUrl,\n transformationQueries:\n type === 'imgix'\n ? imgixTransformationQueries\n : twicpicsTransformationQueries,\n }),\n };\n};\n"],"names":["__rest","getCdnFromS3UrlFactory"],"mappings":";;;;;;;AAGa,MAAA,0BAA0B,GAA0B,CAAC,EAAgB,KAAI;AAApB,IAAA,IAAA,EAAE,GAAG,EAAW,GAAA,EAAA,EAAN,IAAI,GAAAA,aAAA,CAAA,EAAA,EAAd,OAAgB,CAAF,CAAA;IAAO,OAAA;QACrF,uBAAuB;AACvB,QAAA,GAAG,MAAM,CAAC,OAAO,kCACX,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,MAAM,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAC,EACpD,IAAI,CACP,CAAA,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAA,CAAA,EAAI,CAAC,CAAI,CAAA,EAAA,CAAC,EAAE,CAAC;AACjC,KAAA,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;EAAC;AAEE,MAAA,6BAA6B,GAA0B,CAClE,MAAM,KACJ;AACF,IAAA,IAAI,MAAM,CAAC,GAAG,KAAK,SAAS,EAAE;QAC5B,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;;AAE7D,YAAA,OAAO,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;AAClE,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,OAAO,CAAY,SAAA,EAAA,MAAM,CAAC,GAAG,CAAI,CAAA,EAAA,MAAM,CAAC,KAAK,CAAI,CAAA,EAAA,MAAM,CAAC,MAAM,EAAE,CAAC;AAClE,KAAA;AACD,IAAA,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE;AAC9B,QAAA,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,KAAK,SAAS,GAAG,CAAI,CAAA,EAAA,MAAM,CAAC,MAAM,CAAA,CAAE,GAAG,EAAE,CAAC;AAC5E,QAAA,OAAO,mBAAmB,MAAM,CAAC,KAAK,CAAG,EAAA,YAAY,EAAE,CAAC;AACzD,KAAA;AACD,IAAA,OAAO,EAAE,CAAC;AACZ,EAAE;AAEF;;;;;;AAMG;AACI,MAAM,SAAS,GAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,KAAI;AACvE,IAAA,MAAM,SAAS,GAAc,CAAC,UAAU,EAAE,IAAI,KAAK,GAAG,MAAM,CAAA,EAAG,cAAc,CAAC,UAAU,CAAC,CAAG,EAAA,IAAI,EAAE,CAAC;IAEnG,OAAO;QACL,SAAS;QACT,eAAe,EAAEC,2CAAsB,CAAC;YACtC,SAAS;YACT,qBAAqB,EACnB,IAAI,KAAK,OAAO;AACd,kBAAE,0BAA0B;AAC5B,kBAAE,6BAA6B;SACpC,CAAC;KACH,CAAC;AACJ;;;;;;"}
1
+ {"version":3,"file":"cdn.factory.js","sources":["../../src/cdn/cdn.factory.ts"],"sourcesContent":["import type { CreateCdn, TransformationQueries } from './types';\nimport { getCdnFromS3UrlFactory } from './utils/get-cdn-from-s3-url.util';\nimport { getCdnUrlFactory } from './utils/get-cdn-url.util';\n\nexport const imgixTransformationQueries: TransformationQueries = ({\n fit,\n devicePixelRatio,\n height,\n width,\n quality,\n}) => [\n '?auto=compress,format',\n fit === 'crop' ? '&fit=crop' : '',\n Number.isFinite(devicePixelRatio) ? `&dpr=${devicePixelRatio}` : '',\n Number.isFinite(height) ? `&h=${height}` : '',\n Number.isFinite(width) ? `&w=${width}` : '',\n quality !== undefined && quality >= 0 && quality <= 100\n ? `&q=${quality}`\n : '',\n].join('');\n\nexport const twicpicsTransformationQueries: TransformationQueries = (\n params,\n) => {\n if (params.fit !== undefined) {\n if (params.width === undefined || params.height === undefined) {\n // eslint-disable-next-line no-console\n console.error('⚠️ The Twicpics api needs a width and a height.');\n return '';\n }\n return `?twic=v1/${params.fit}=${params.width}x${params.height}`;\n }\n if (params.width !== undefined) {\n const resizeHeight = params.height !== undefined ? `x${params.height}` : '';\n return `?twic=v1/resize=${params.width}${resizeHeight}`;\n }\n return '';\n};\n\n/**\n *\n * @param type cdn provider: 'twicpics' | 'imgix'\n * @param domain provider domain\n * @param instanceMapper domain + the result of the instanceMapper will form the base path\n * @returns \\{ getCdnUrl, transformationQueries \\}\n */\nexport const createCdn: CreateCdn = ({ type, domain, instanceMapper }) => {\n const getCdnUrl = getCdnUrlFactory({\n domain,\n instanceMapper,\n transformationQueries:\n type === 'imgix'\n ? imgixTransformationQueries\n : twicpicsTransformationQueries,\n });\n\n return {\n getCdnUrl,\n getCdnFromS3Url: getCdnFromS3UrlFactory({\n getCdnUrl,\n }),\n };\n};\n"],"names":["getCdnUrlFactory","getCdnFromS3UrlFactory"],"mappings":";;;;;;;AAIa,MAAA,0BAA0B,GAA0B,CAAC,EAChE,GAAG,EACH,gBAAgB,EAChB,MAAM,EACN,KAAK,EACL,OAAO,GACR,KAAK;IACJ,uBAAuB;IACvB,GAAG,KAAK,MAAM,GAAG,WAAW,GAAG,EAAE;AACjC,IAAA,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAG,CAAA,KAAA,EAAQ,gBAAgB,CAAA,CAAE,GAAG,EAAE;AACnE,IAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAA,GAAA,EAAM,MAAM,CAAA,CAAE,GAAG,EAAE;AAC7C,IAAA,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAA,GAAA,EAAM,KAAK,CAAA,CAAE,GAAG,EAAE;IAC3C,OAAO,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,IAAI,GAAG;UACnD,CAAM,GAAA,EAAA,OAAO,CAAE,CAAA;AACjB,UAAE,EAAE;AACP,CAAA,CAAC,IAAI,CAAC,EAAE,EAAE;AAEE,MAAA,6BAA6B,GAA0B,CAClE,MAAM,KACJ;AACF,IAAA,IAAI,MAAM,CAAC,GAAG,KAAK,SAAS,EAAE;QAC5B,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;;AAE7D,YAAA,OAAO,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;AAClE,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,OAAO,CAAY,SAAA,EAAA,MAAM,CAAC,GAAG,CAAI,CAAA,EAAA,MAAM,CAAC,KAAK,CAAI,CAAA,EAAA,MAAM,CAAC,MAAM,EAAE,CAAC;AAClE,KAAA;AACD,IAAA,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE;AAC9B,QAAA,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,KAAK,SAAS,GAAG,CAAI,CAAA,EAAA,MAAM,CAAC,MAAM,CAAA,CAAE,GAAG,EAAE,CAAC;AAC5E,QAAA,OAAO,mBAAmB,MAAM,CAAC,KAAK,CAAG,EAAA,YAAY,EAAE,CAAC;AACzD,KAAA;AACD,IAAA,OAAO,EAAE,CAAC;AACZ,EAAE;AAEF;;;;;;AAMG;AACI,MAAM,SAAS,GAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,KAAI;IACvE,MAAM,SAAS,GAAGA,+BAAgB,CAAC;QACjC,MAAM;QACN,cAAc;QACd,qBAAqB,EACnB,IAAI,KAAK,OAAO;AACd,cAAE,0BAA0B;AAC5B,cAAE,6BAA6B;AACpC,KAAA,CAAC,CAAC;IAEH,OAAO;QACL,SAAS;QACT,eAAe,EAAEC,2CAAsB,CAAC;YACtC,SAAS;SACV,CAAC;KACH,CAAC;AACJ;;;;;;"}
@@ -3,18 +3,21 @@ export declare type Transformation = {
3
3
  fit?: 'crop' | 'contain';
4
4
  width?: number;
5
5
  height?: number;
6
+ devicePixelRatio?: number;
7
+ quality?: number;
6
8
  };
7
9
  export declare type CdnParams = {
8
10
  asThumbnail?: boolean;
9
11
  transformation?: Transformation;
10
12
  };
11
13
  export declare type TransformationQueries = (params: Transformation) => string;
12
- export declare type GetCdnUrl = (instanceId: string, path: `/${string}`) => string;
14
+ export declare type GetCdnUrl = (instanceId: string, path: `/${string}`, params?: CdnParams) => string;
13
15
  export declare type GetCdnFromS3Url = (url: string, params?: CdnParams) => string;
16
+ export declare type InstanceMapper = (instanceId: string) => string;
14
17
  export declare type CdnConfig = {
15
18
  type: 'twicpics' | 'imgix';
16
19
  domain: `https://${string}`;
17
- instanceMapper: (instanceId: string) => string;
20
+ instanceMapper: InstanceMapper;
18
21
  };
19
22
  export declare type Cdn = {
20
23
  getCdnUrl: GetCdnUrl;
@@ -1,7 +1,6 @@
1
- import type { GetCdnFromS3Url, GetCdnUrl, TransformationQueries } from '../types';
1
+ import type { GetCdnFromS3Url, GetCdnUrl } from '../types';
2
2
  declare type FactoryConfig = {
3
3
  getCdnUrl: GetCdnUrl;
4
- transformationQueries: TransformationQueries;
5
4
  };
6
5
  export declare function getCdnFromS3UrlFactory(config: FactoryConfig): GetCdnFromS3Url;
7
6
  export {};
@@ -4,17 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var extractInfoFromUrl_util = require('./extract-info-from-url.util.js');
6
6
 
7
- const DEFAULT_THUMBNAIL_CONFIG = { width: 300, height: 300 };
8
7
  function getCdnFromS3UrlFactory(config) {
9
- return (url, params = {}) => {
10
- const { getCdnUrl, transformationQueries } = config;
8
+ return (url, params) => {
9
+ const { getCdnUrl } = config;
11
10
  const info = extractInfoFromUrl_util.extractInfoFromUrl(url);
12
11
  if (info === undefined) {
13
12
  return url;
14
13
  }
15
14
  const { instanceId, path } = info;
16
- const { transformation = params.asThumbnail ? DEFAULT_THUMBNAIL_CONFIG : {}, } = params;
17
- return `${getCdnUrl(instanceId, path)}${transformationQueries(transformation)}`;
15
+ return getCdnUrl(instanceId, path, params);
18
16
  };
19
17
  }
20
18
 
@@ -1 +1 @@
1
- {"version":3,"file":"get-cdn-from-s3-url.util.js","sources":["../../../src/cdn/utils/get-cdn-from-s3-url.util.ts"],"sourcesContent":["import type {\n GetCdnFromS3Url,\n GetCdnUrl,\n Transformation,\n TransformationQueries,\n} from '../types';\nimport { extractInfoFromUrl } from './extract-info-from-url.util';\n\nconst DEFAULT_THUMBNAIL_CONFIG: Transformation = { width: 300, height: 300 };\n\ntype FactoryConfig = {\n getCdnUrl: GetCdnUrl;\n transformationQueries: TransformationQueries;\n};\n\nexport function getCdnFromS3UrlFactory(\n config: FactoryConfig,\n): GetCdnFromS3Url {\n return (url, params = {}) => {\n const { getCdnUrl, transformationQueries } = config;\n\n const info = extractInfoFromUrl(url);\n if (info === undefined) {\n return url;\n }\n const { instanceId, path } = info;\n\n const {\n transformation = params.asThumbnail ? DEFAULT_THUMBNAIL_CONFIG : {},\n } = params;\n\n return `${getCdnUrl(instanceId, path)}${transformationQueries(\n transformation,\n )}`;\n };\n}\n"],"names":["extractInfoFromUrl"],"mappings":";;;;;;AAQA,MAAM,wBAAwB,GAAmB,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAOvE,SAAU,sBAAsB,CACpC,MAAqB,EAAA;AAErB,IAAA,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE,KAAI;AAC1B,QAAA,MAAM,EAAE,SAAS,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;AAEpD,QAAA,MAAM,IAAI,GAAGA,0CAAkB,CAAC,GAAG,CAAC,CAAC;QACrC,IAAI,IAAI,KAAK,SAAS,EAAE;AACtB,YAAA,OAAO,GAAG,CAAC;AACZ,SAAA;AACD,QAAA,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;AAElC,QAAA,MAAM,EACJ,cAAc,GAAG,MAAM,CAAC,WAAW,GAAG,wBAAwB,GAAG,EAAE,GACpE,GAAG,MAAM,CAAC;AAEX,QAAA,OAAO,CAAG,EAAA,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA,EAAG,qBAAqB,CAC3D,cAAc,CACf,EAAE,CAAC;AACN,KAAC,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"get-cdn-from-s3-url.util.js","sources":["../../../src/cdn/utils/get-cdn-from-s3-url.util.ts"],"sourcesContent":["import type { GetCdnFromS3Url, GetCdnUrl } from '../types';\nimport { extractInfoFromUrl } from './extract-info-from-url.util';\n\ntype FactoryConfig = {\n getCdnUrl: GetCdnUrl;\n};\n\nexport function getCdnFromS3UrlFactory(config: FactoryConfig): GetCdnFromS3Url {\n return (url, params) => {\n const { getCdnUrl } = config;\n\n const info = extractInfoFromUrl(url);\n if (info === undefined) {\n return url;\n }\n const { instanceId, path } = info;\n\n return getCdnUrl(instanceId, path, params);\n };\n}\n"],"names":["extractInfoFromUrl"],"mappings":";;;;;;AAOM,SAAU,sBAAsB,CAAC,MAAqB,EAAA;AAC1D,IAAA,OAAO,CAAC,GAAG,EAAE,MAAM,KAAI;AACrB,QAAA,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;AAE7B,QAAA,MAAM,IAAI,GAAGA,0CAAkB,CAAC,GAAG,CAAC,CAAC;QACrC,IAAI,IAAI,KAAK,SAAS,EAAE;AACtB,YAAA,OAAO,GAAG,CAAC;AACZ,SAAA;AACD,QAAA,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QAElC,OAAO,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC7C,KAAC,CAAC;AACJ;;;;"}
@@ -0,0 +1,8 @@
1
+ import type { GetCdnUrl, InstanceMapper, TransformationQueries } from '../types';
2
+ declare type FactoryConfig = {
3
+ domain: `https://${string}`;
4
+ instanceMapper: InstanceMapper;
5
+ transformationQueries: TransformationQueries;
6
+ };
7
+ export declare const getCdnUrlFactory: (config: FactoryConfig) => GetCdnUrl;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const DEFAULT_THUMBNAIL_CONFIG = { width: 300, height: 300 };
6
+ const getCdnUrlFactory = (config) => (instanceId, path, params = {}) => {
7
+ const { domain, instanceMapper, transformationQueries } = config;
8
+ const { transformation = params.asThumbnail ? DEFAULT_THUMBNAIL_CONFIG : {}, } = params;
9
+ return `${domain}${instanceMapper(instanceId)}${path}${transformationQueries(transformation)}`;
10
+ };
11
+
12
+ exports.getCdnUrlFactory = getCdnUrlFactory;
13
+ //# sourceMappingURL=get-cdn-url.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-cdn-url.util.js","sources":["../../../src/cdn/utils/get-cdn-url.util.ts"],"sourcesContent":["import type {\n GetCdnUrl,\n InstanceMapper,\n Transformation,\n TransformationQueries,\n} from '../types';\n\nconst DEFAULT_THUMBNAIL_CONFIG: Transformation = { width: 300, height: 300 };\n\ntype FactoryConfig = {\n domain: `https://${string}`;\n instanceMapper: InstanceMapper;\n transformationQueries: TransformationQueries;\n};\n\nexport const getCdnUrlFactory = (config: FactoryConfig): GetCdnUrl => (instanceId, path, params = {}) => {\n const { domain, instanceMapper, transformationQueries } = config;\n\n const {\n transformation = params.asThumbnail ? DEFAULT_THUMBNAIL_CONFIG : {},\n } = params;\n\n return `${domain}${instanceMapper(\n instanceId,\n )}${path}${transformationQueries(transformation)}`;\n};\n"],"names":[],"mappings":";;;;AAOA,MAAM,wBAAwB,GAAmB,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAQhE,MAAA,gBAAgB,GAAG,CAAC,MAAqB,KAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,EAAE,KAAI;IACtG,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;AAEjE,IAAA,MAAM,EACJ,cAAc,GAAG,MAAM,CAAC,WAAW,GAAG,wBAAwB,GAAG,EAAE,GACpE,GAAG,MAAM,CAAC;AAEX,IAAA,OAAO,CAAG,EAAA,MAAM,CAAG,EAAA,cAAc,CAC/B,UAAU,CACX,CAAG,EAAA,IAAI,GAAG,qBAAqB,CAAC,cAAc,CAAC,EAAE,CAAC;AACrD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparted/shared-library",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "repository": "git@github.com:Sparted/shared-library.git",
5
5
  "author": "Thomas <duprethomasfr@gmail.com>",
6
6
  "license": "MIT",