@pax2pay/model-banking 0.1.176 → 0.1.178

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/Supplier/index.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { isly } from "isly"
2
+
1
3
  export type Supplier = typeof Supplier.names[number]
2
4
 
3
5
  export namespace Supplier {
4
- export function is(value: any | Supplier): value is Supplier {
5
- return value && names.includes(value)
6
- }
7
6
  export const names = ["paxgiro", "clearbank"] as const
7
+ export const type = isly.string<Supplier>(names)
8
+ export const is = type.is
8
9
  }
@@ -0,0 +1,11 @@
1
+ import { isly } from "isly"
2
+ import { Amounts } from "../../Amounts"
3
+
4
+ export interface Conditions {
5
+ minimum?: Amounts
6
+ }
7
+
8
+ export namespace Conditions {
9
+ export const type = isly.object<Conditions>({ minimum: Amounts.type.optional() })
10
+ export const is = type.is
11
+ }
@@ -3,6 +3,7 @@ import { isly } from "isly"
3
3
  import { Realm } from "../../Realm"
4
4
  import { Supplier } from "../../Supplier"
5
5
  import { Category } from "./Category"
6
+ import { Conditions } from "./Conditions"
6
7
 
7
8
  export interface Creatable {
8
9
  name: string
@@ -10,6 +11,7 @@ export interface Creatable {
10
11
  supplier: Supplier
11
12
  currencies: isoly.Currency[]
12
13
  type: Category
14
+ conditions?: Conditions
13
15
  }
14
16
 
15
17
  export namespace Creatable {
@@ -19,6 +21,7 @@ export namespace Creatable {
19
21
  supplier: isly.fromIs("supplier", Supplier.is),
20
22
  currencies: isly.fromIs("Account.Creatable.currencies", isoly.Currency.is).array(),
21
23
  type: isly.string(Category.type),
24
+ conditions: Conditions.type.optional(),
22
25
  })
23
26
  export const is = type.is
24
27
  export const flaw = type.flaw
@@ -3,6 +3,7 @@ import { isoly } from "isoly"
3
3
  import { isly } from "isly"
4
4
  import { Realm } from "../../Realm"
5
5
  import { Supplier } from "../../Supplier"
6
+ import { Conditions } from "./Conditions"
6
7
 
7
8
  export interface Storable {
8
9
  id: cryptly.Identifier
@@ -10,6 +11,7 @@ export interface Storable {
10
11
  realm: Realm
11
12
  supplier: Supplier
12
13
  reference: string
14
+ conditions?: Conditions
13
15
  }
14
16
 
15
17
  export namespace Storable {
@@ -19,6 +21,7 @@ export namespace Storable {
19
21
  realm: isly.fromIs("realm", Realm.is),
20
22
  supplier: isly.fromIs("supplier", Supplier.is),
21
23
  reference: isly.string(),
24
+ conditions: Conditions.type.optional(),
22
25
  })
23
26
  export const is = type.is
24
27
  export const flaw = type.flaw
@@ -6,6 +6,7 @@ import { Realm } from "../../Realm"
6
6
  import { Supplier } from "../../Supplier"
7
7
  import { Balance } from "../Balance"
8
8
  import { Category as AccountCategory } from "./Category"
9
+ import { Conditions as AccountConditions } from "./Conditions"
9
10
  import { Creatable as AccountCreatable } from "./Creatable"
10
11
  import { Fetchable as AccountFetchable } from "./Fetchable"
11
12
  import { Storable as AccountStorable } from "./Storable"
@@ -19,6 +20,7 @@ export interface Account {
19
20
  reference: string
20
21
  currencies: isoly.Currency[]
21
22
  type: AccountCategory
23
+ conditions?: { minimum?: Balance }
22
24
  rail: Rail[]
23
25
  balance: Balance
24
26
  }
@@ -33,8 +35,9 @@ export namespace Account {
33
35
  reference: isly.string(),
34
36
  currencies: isly.fromIs("Treasury.Account.currencies", isoly.Currency.is).array(),
35
37
  type: isly.string(AccountCategory.type),
38
+ conditions: AccountConditions.type,
36
39
  rail: isly.fromIs("Treasury.Account.rail", Rail.is).array(),
37
- balance: isly.fromIs("Treasury.Account.rail", Balance.is),
40
+ balance: isly.fromIs("Treasury.Account.balance", Balance.is),
38
41
  })
39
42
  export const is = type.is
40
43
  export const flaw = type.flaw
@@ -50,4 +53,6 @@ export namespace Account {
50
53
  export const Fetchable = AccountFetchable
51
54
  export type Category = AccountCategory
52
55
  export const Category = AccountCategory
56
+ export type Conditions = AccountConditions
57
+ export const Conditions = AccountConditions
53
58
  }
package/Treasury/index.ts CHANGED
@@ -26,6 +26,8 @@ export namespace Treasury {
26
26
  export const Storable = TreasuryAccount.Storable
27
27
  export type Fetchable = TreasuryAccount.Fetchable
28
28
  export const Fetchable = TreasuryAccount.Fetchable
29
+ export type Conditions = TreasuryAccount.Conditions
30
+ export const Conditions = TreasuryAccount.Conditions
29
31
  export const is = TreasuryAccount.is
30
32
  }
31
33
  }
@@ -1,5 +1,7 @@
1
+ import { isly } from "isly";
1
2
  export type Supplier = typeof Supplier.names[number];
2
3
  export declare namespace Supplier {
3
- function is(value: any | Supplier): value is Supplier;
4
4
  const names: readonly ["paxgiro", "clearbank"];
5
+ const type: isly.Type<"paxgiro" | "clearbank">;
6
+ const is: isly.Type.IsFunction<"paxgiro" | "clearbank">;
5
7
  }
@@ -1,9 +1,8 @@
1
+ import { isly } from "isly";
1
2
  export var Supplier;
2
3
  (function (Supplier) {
3
- function is(value) {
4
- return value && Supplier.names.includes(value);
5
- }
6
- Supplier.is = is;
7
4
  Supplier.names = ["paxgiro", "clearbank"];
5
+ Supplier.type = isly.string(Supplier.names);
6
+ Supplier.is = Supplier.type.is;
8
7
  })(Supplier || (Supplier = {}));
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Supplier/index.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,QAAQ,CAKxB;AALD,WAAiB,QAAQ;IACxB,SAAgB,EAAE,CAAC,KAAqB;QACvC,OAAO,KAAK,IAAI,SAAA,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IACtC,CAAC;IAFe,WAAE,KAEjB,CAAA;IACY,cAAK,GAAG,CAAC,SAAS,EAAE,WAAW,CAAU,CAAA;AACvD,CAAC,EALgB,QAAQ,KAAR,QAAQ,QAKxB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Supplier/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,QAAQ,CAIxB;AAJD,WAAiB,QAAQ;IACX,cAAK,GAAG,CAAC,SAAS,EAAE,WAAW,CAAU,CAAA;IACzC,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW,SAAA,KAAK,CAAC,CAAA;IACnC,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,QAAQ,KAAR,QAAQ,QAIxB"}
@@ -0,0 +1,9 @@
1
+ import { isly } from "isly";
2
+ import { Amounts } from "../../Amounts";
3
+ export interface Conditions {
4
+ minimum?: Amounts;
5
+ }
6
+ export declare namespace Conditions {
7
+ const type: isly.object.ExtendableType<Conditions>;
8
+ const is: isly.Type.IsFunction<Conditions>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { isly } from "isly";
2
+ import { Amounts } from "../../Amounts";
3
+ export var Conditions;
4
+ (function (Conditions) {
5
+ Conditions.type = isly.object({ minimum: Amounts.type.optional() });
6
+ Conditions.is = Conditions.type.is;
7
+ })(Conditions || (Conditions = {}));
8
+ //# sourceMappingURL=Conditions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Conditions.js","sourceRoot":"../","sources":["Treasury/Account/Conditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAMvC,MAAM,KAAW,UAAU,CAG1B;AAHD,WAAiB,UAAU;IACb,eAAI,GAAG,IAAI,CAAC,MAAM,CAAa,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;IACpE,aAAE,GAAG,WAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAHgB,UAAU,KAAV,UAAU,QAG1B"}
@@ -3,12 +3,14 @@ import { isly } from "isly";
3
3
  import { Realm } from "../../Realm";
4
4
  import { Supplier } from "../../Supplier";
5
5
  import { Category } from "./Category";
6
+ import { Conditions } from "./Conditions";
6
7
  export interface Creatable {
7
8
  name: string;
8
9
  realm: Realm;
9
10
  supplier: Supplier;
10
11
  currencies: isoly.Currency[];
11
12
  type: Category;
13
+ conditions?: Conditions;
12
14
  }
13
15
  export declare namespace Creatable {
14
16
  const type: isly.object.ExtendableType<Creatable>;
@@ -3,6 +3,7 @@ import { isly } from "isly";
3
3
  import { Realm } from "../../Realm";
4
4
  import { Supplier } from "../../Supplier";
5
5
  import { Category } from "./Category";
6
+ import { Conditions } from "./Conditions";
6
7
  export var Creatable;
7
8
  (function (Creatable) {
8
9
  Creatable.type = isly.object({
@@ -11,6 +12,7 @@ export var Creatable;
11
12
  supplier: isly.fromIs("supplier", Supplier.is),
12
13
  currencies: isly.fromIs("Account.Creatable.currencies", isoly.Currency.is).array(),
13
14
  type: isly.string(Category.type),
15
+ conditions: Conditions.type.optional(),
14
16
  });
15
17
  Creatable.is = Creatable.type.is;
16
18
  Creatable.flaw = Creatable.type.flaw;
@@ -1 +1 @@
1
- {"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Treasury/Account/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAUrC,MAAM,KAAW,SAAS,CAUzB;AAVD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;QACrC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC9C,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,8BAA8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AAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAXgB,SAAS,KAAT,SAAS,QAWzB"}
@@ -3,12 +3,14 @@ import { isoly } from "isoly";
3
3
  import { isly } from "isly";
4
4
  import { Realm } from "../../Realm";
5
5
  import { Supplier } from "../../Supplier";
6
+ import { Conditions } from "./Conditions";
6
7
  export interface Storable {
7
8
  id: cryptly.Identifier;
8
9
  created: isoly.DateTime;
9
10
  realm: Realm;
10
11
  supplier: Supplier;
11
12
  reference: string;
13
+ conditions?: Conditions;
12
14
  }
13
15
  export declare namespace Storable {
14
16
  const type: isly.object.ExtendableType<Storable>;
@@ -2,6 +2,7 @@ import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
3
  import { Realm } from "../../Realm";
4
4
  import { Supplier } from "../../Supplier";
5
+ import { Conditions } from "./Conditions";
5
6
  export var Storable;
6
7
  (function (Storable) {
7
8
  Storable.type = isly.object({
@@ -10,6 +11,7 @@ export var Storable;
10
11
  realm: isly.fromIs("realm", Realm.is),
11
12
  supplier: isly.fromIs("supplier", Supplier.is),
12
13
  reference: isly.string(),
14
+ conditions: Conditions.type.optional(),
13
15
  });
14
16
  Storable.is = Storable.type.is;
15
17
  Storable.flaw = Storable.type.flaw;
@@ -1 +1 @@
1
- {"version":3,"file":"Storable.js","sourceRoot":"../","sources":["Treasury/Account/Storable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAUzC,MAAM,KAAW,QAAQ,CAUxB;AAVD,WAAiB,QAAQ;IACX,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW;QACzC,EAAE,EAAE,IAAI,CAAC,MAAM,EAA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UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;KACtC,CAAC,CAAA;IACW,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAXgB,QAAQ,KAAR,QAAQ,QAWxB"}
@@ -6,6 +6,7 @@ import { Realm } from "../../Realm";
6
6
  import { Supplier } from "../../Supplier";
7
7
  import { Balance } from "../Balance";
8
8
  import { Category as AccountCategory } from "./Category";
9
+ import { Conditions as AccountConditions } from "./Conditions";
9
10
  import { Creatable as AccountCreatable } from "./Creatable";
10
11
  import { Fetchable as AccountFetchable } from "./Fetchable";
11
12
  import { Storable as AccountStorable } from "./Storable";
@@ -18,6 +19,9 @@ export interface Account {
18
19
  reference: string;
19
20
  currencies: isoly.Currency[];
20
21
  type: AccountCategory;
22
+ conditions?: {
23
+ minimum?: Balance;
24
+ };
21
25
  rail: Rail[];
22
26
  balance: Balance;
23
27
  }
@@ -34,4 +38,6 @@ export declare namespace Account {
34
38
  const Fetchable: typeof AccountFetchable;
35
39
  type Category = AccountCategory;
36
40
  const Category: typeof AccountCategory;
41
+ type Conditions = AccountConditions;
42
+ const Conditions: typeof AccountConditions;
37
43
  }
@@ -6,6 +6,7 @@ import { Realm } from "../../Realm";
6
6
  import { Supplier } from "../../Supplier";
7
7
  import { Balance } from "../Balance";
8
8
  import { Category as AccountCategory } from "./Category";
9
+ import { Conditions as AccountConditions } from "./Conditions";
9
10
  import { Creatable as AccountCreatable } from "./Creatable";
10
11
  import { Fetchable as AccountFetchable } from "./Fetchable";
11
12
  import { Storable as AccountStorable } from "./Storable";
@@ -20,8 +21,9 @@ export var Account;
20
21
  reference: isly.string(),
21
22
  currencies: isly.fromIs("Treasury.Account.currencies", isoly.Currency.is).array(),
22
23
  type: isly.string(AccountCategory.type),
24
+ conditions: AccountConditions.type,
23
25
  rail: isly.fromIs("Treasury.Account.rail", Rail.is).array(),
24
- balance: isly.fromIs("Treasury.Account.rail", Balance.is),
26
+ balance: isly.fromIs("Treasury.Account.balance", Balance.is),
25
27
  });
26
28
  Account.is = Account.type.is;
27
29
  Account.flaw = Account.type.flaw;
@@ -33,5 +35,6 @@ export var Account;
33
35
  Account.Storable = AccountStorable;
34
36
  Account.Fetchable = AccountFetchable;
35
37
  Account.Category = AccountCategory;
38
+ Account.Conditions = AccountConditions;
36
39
  })(Account || (Account = {}));
37
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AAexD,MAAM,KAAW,OAAO,CA2BvB;AA3BD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QAC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BAAuB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QAC3D,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,OAAO,CAAC,EAAE,CAAC;KAC5D,CAAC,CAAA;IACW,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;IAC7B,SAAgB,YAAY,CAAC,KAA+B;QAC3D,OAAO,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACvC,CAAC;IAFe,oBAAY,eAE3B,CAAA;IAGY,iBAAS,GAAG,gBAAgB,CAAA;IAE5B,gBAAQ,GAAG,eAAe,CAAA;IAE1B,iBAAS,GAAG,gBAAgB,CAAA;IAE5B,gBAAQ,GAAG,eAAe,CAAA;IAE1B,kBAAU,GAAG,iBAAiB,CAAA;AAC5C,CAAC,EA9BgB,OAAO,KAAP,OAAO,QA8BvB"}
@@ -18,6 +18,8 @@ export declare namespace Treasury {
18
18
  const Storable: typeof import("./Account/Storable").Storable;
19
19
  type Fetchable = TreasuryAccount.Fetchable;
20
20
  const Fetchable: typeof import("./Account/Fetchable").Fetchable;
21
+ type Conditions = TreasuryAccount.Conditions;
22
+ const Conditions: typeof import("./Account/Conditions").Conditions;
21
23
  const is: import("isly/dist/cjs/Type").Type.IsFunction<TreasuryAccount>;
22
24
  }
23
25
  }
@@ -15,6 +15,7 @@ export var Treasury;
15
15
  Account.Creatable = TreasuryAccount.Creatable;
16
16
  Account.Storable = TreasuryAccount.Storable;
17
17
  Account.Fetchable = TreasuryAccount.Fetchable;
18
+ Account.Conditions = TreasuryAccount.Conditions;
18
19
  Account.is = TreasuryAccount.is;
19
20
  })(Account = Treasury.Account || (Treasury.Account = {}));
20
21
  })(Treasury || (Treasury = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/index.ts"],"names":[],"mappings":"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KAAR,QAAQ,QAyBxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.176",
3
+ "version": "0.1.178",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",
@@ -57,27 +57,27 @@
57
57
  "semver": "7.5.3"
58
58
  },
59
59
  "devDependencies": {
60
- "@types/jest": "^29.5.2",
61
- "@typescript-eslint/eslint-plugin": "5.59.11",
62
- "@typescript-eslint/parser": "5.59.11",
63
- "eslint": "^8.42.0",
60
+ "@types/jest": "^29.5.8",
61
+ "@typescript-eslint/eslint-plugin": "6.10.0",
62
+ "@typescript-eslint/parser": "6.10.0",
63
+ "eslint": "^8.53.0",
64
64
  "eslint-plugin-prettierx": "github:utily/eslint-plugin-prettierx#utily-20231004",
65
65
  "eslint-plugin-simple-import-sort": "^10.0.0",
66
- "jest": "^29.5.0",
66
+ "jest": "^29.7.0",
67
67
  "prettierx": "github:utily/prettierx#utily-20231004",
68
- "rimraf": "^5.0.1",
69
- "ts-jest": "^29.1.0",
70
- "typescript": "^5.1.3"
68
+ "rimraf": "^5.0.5",
69
+ "ts-jest": "^29.1.1",
70
+ "typescript": "^5.2.2"
71
71
  },
72
72
  "dependencies": {
73
73
  "@userwidgets/model": "0.8.12",
74
- "authly": "^3.0.6",
74
+ "authly": "^3.0.11",
75
75
  "cloudly-http": "^0.1.6",
76
76
  "cloudly-rest": "^0.1.3",
77
- "cryptly": "^3.0.8",
78
- "gracely": "^2.0.4",
79
- "isly": "^0.1.7",
80
- "isoly": "^2.0.20",
77
+ "cryptly": "^3.1.3",
78
+ "gracely": "^2.0.6",
79
+ "isly": "^0.1.12",
80
+ "isoly": "^2.1.1",
81
81
  "selectively": "^2.0.9"
82
82
  }
83
83
  }