@pulumi/eks 2.7.0-alpha.1717536972 → 2.7.0-alpha.1717602819
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/addon.d.ts +20 -0
- package/addon.js +32 -0
- package/addon.js.map +1 -0
- package/cmd/provider/addon.d.ts +1 -0
- package/cmd/provider/addon.js +40 -0
- package/cmd/provider/addon.js.map +1 -0
- package/cmd/provider/index.js +2 -0
- package/cmd/provider/index.js.map +1 -1
- package/cmd/provider/schema.json +55 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/package.json.dev +1 -1
package/addon.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as aws from "@pulumi/aws";
|
|
3
|
+
import { Cluster, ClusterInternal } from "./cluster";
|
|
4
|
+
/**
|
|
5
|
+
* AddonOptions describes the configuration options available for the Amazon VPC CNI plugin for Kubernetes. This is obtained from
|
|
6
|
+
* upstream `aws.eks.AddonArgs` and removes the deprecated `resolveConflicts` field. `clusterName` is also removed as we enable users to
|
|
7
|
+
* pass in the cluster object directly.
|
|
8
|
+
*/
|
|
9
|
+
export interface AddonOptions extends Omit<aws.eks.AddonArgs, "resolveConflicts" | "clusterName" | "configurationValues"> {
|
|
10
|
+
cluster: Cluster | ClusterInternal;
|
|
11
|
+
configurationValues?: object;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Addon manages an EKS add-on.
|
|
15
|
+
* For more information about supported add-ons, see: https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html
|
|
16
|
+
*/
|
|
17
|
+
export declare class Addon extends pulumi.ComponentResource {
|
|
18
|
+
readonly addon: pulumi.Input<aws.eks.Addon>;
|
|
19
|
+
constructor(name: string, args: AddonOptions, opts?: pulumi.CustomResourceOptions);
|
|
20
|
+
}
|
package/addon.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2016-2024, Pulumi Corporation.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Addon = void 0;
|
|
17
|
+
const pulumi = require("@pulumi/pulumi");
|
|
18
|
+
const aws = require("@pulumi/aws");
|
|
19
|
+
/**
|
|
20
|
+
* Addon manages an EKS add-on.
|
|
21
|
+
* For more information about supported add-ons, see: https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html
|
|
22
|
+
*/
|
|
23
|
+
class Addon extends pulumi.ComponentResource {
|
|
24
|
+
constructor(name, args, opts) {
|
|
25
|
+
const cluster = args.cluster;
|
|
26
|
+
super("eks:index:Addon", name, args, Object.assign(Object.assign({}, opts), { parent: cluster }));
|
|
27
|
+
const addon = new aws.eks.Addon(name, Object.assign(Object.assign({}, args), { clusterName: cluster.core.cluster.name, configurationValues: JSON.stringify(args.configurationValues) }), { parent: this, provider: opts === null || opts === void 0 ? void 0 : opts.provider });
|
|
28
|
+
this.addon = addon;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Addon = Addon;
|
|
32
|
+
//# sourceMappingURL=addon.js.map
|
package/addon.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addon.js","sourceRoot":"","sources":["../addon.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,yCAAyC;AACzC,mCAAmC;AAcnC;;;GAGG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,iBAAiB;IAG/C,YAAY,IAAY,EAAE,IAAkB,EAAE,IAAmC;QAC7E,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAE7B,KAAK,CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,kCAC5B,IAAI,KACP,MAAM,EAAE,OAAO,IACjB,CAAC;QAEH,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,CAC3B,IAAI,kCAEG,IAAI,KACP,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EACtC,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAEjE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,EAAE,CAC7C,CAAC;QAEF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;CACJ;AAvBD,sBAuBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2016-2020, Pulumi Corporation.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.managedAddonProviderFactory = void 0;
|
|
17
|
+
const addon_1 = require("../../addon");
|
|
18
|
+
const managedAddonProvider = {
|
|
19
|
+
construct: (name, type, inputs, options) => {
|
|
20
|
+
try {
|
|
21
|
+
const addon = new addon_1.Addon(name, inputs, options);
|
|
22
|
+
return Promise.resolve({
|
|
23
|
+
urn: addon.urn,
|
|
24
|
+
state: {
|
|
25
|
+
addon: addon.addon,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
return Promise.reject(e);
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
version: "", // ignored
|
|
34
|
+
};
|
|
35
|
+
/** @internal */
|
|
36
|
+
function managedAddonProviderFactory() {
|
|
37
|
+
return managedAddonProvider;
|
|
38
|
+
}
|
|
39
|
+
exports.managedAddonProviderFactory = managedAddonProviderFactory;
|
|
40
|
+
//# sourceMappingURL=addon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addon.js","sourceRoot":"","sources":["../../../cmd/provider/addon.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAGjC,uCAAoC;AAEpC,MAAM,oBAAoB,GAA6B;IACnD,SAAS,EAAE,CACP,IAAY,EACZ,IAAY,EACZ,MAAqB,EACrB,OAAwC,EAC1C,EAAE;QACA,IAAI;YACA,MAAM,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,EAAO,MAAM,EAAE,OAAO,CAAC,CAAC;YACpD,OAAO,OAAO,CAAC,OAAO,CAAC;gBACnB,GAAG,EAAE,KAAK,CAAC,GAAG;gBACd,KAAK,EAAE;oBACH,KAAK,EAAE,KAAK,CAAC,KAAK;iBACrB;aACJ,CAAC,CAAC;SACN;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;SAC5B;IACL,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,UAAU;CAC1B,CAAC;AAEF,gBAAgB;AAChB,SAAgB,2BAA2B;IACvC,OAAO,oBAAoB,CAAC;AAChC,CAAC;AAFD,kEAEC"}
|
package/cmd/provider/index.js
CHANGED
|
@@ -32,6 +32,7 @@ const cni_2 = require("./cni");
|
|
|
32
32
|
const nodegroup_1 = require("./nodegroup");
|
|
33
33
|
const randomSuffix_1 = require("./randomSuffix");
|
|
34
34
|
const securitygroup_1 = require("./securitygroup");
|
|
35
|
+
const addon_1 = require("./addon");
|
|
35
36
|
class Provider {
|
|
36
37
|
constructor(version, schema) {
|
|
37
38
|
this.version = version;
|
|
@@ -47,6 +48,7 @@ class Provider {
|
|
|
47
48
|
"eks:index:NodeGroupSecurityGroup": securitygroup_1.nodeGroupSecurityGroupProviderFactory,
|
|
48
49
|
"eks:index:RandomSuffix": randomSuffix_1.randomSuffixProviderFactory,
|
|
49
50
|
"eks:index:VpcCni": cni_2.vpcCniProviderFactory,
|
|
51
|
+
"eks:index:Addon": addon_1.managedAddonProviderFactory,
|
|
50
52
|
};
|
|
51
53
|
// Register any resources that can come back as resource references that need to be rehydrated.
|
|
52
54
|
pulumi.runtime.registerResourceModule("eks", "index", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../cmd/provider/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mE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I,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/cmd/provider/schema.json
CHANGED
|
@@ -735,6 +735,61 @@
|
|
|
735
735
|
},
|
|
736
736
|
"provider": {},
|
|
737
737
|
"resources": {
|
|
738
|
+
"eks:index:Addon": {
|
|
739
|
+
"description": "Addon manages an EKS add-on.\nFor more information about supported add-ons, see: https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html",
|
|
740
|
+
"inputProperties": {
|
|
741
|
+
"addonName": {
|
|
742
|
+
"type": "string",
|
|
743
|
+
"description": "Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions."
|
|
744
|
+
},
|
|
745
|
+
"addonVersion": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"description": "The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions."
|
|
748
|
+
},
|
|
749
|
+
"cluster": {
|
|
750
|
+
"$ref": "#/resources/eks:index:Cluster",
|
|
751
|
+
"description": "The target EKS cluster."
|
|
752
|
+
},
|
|
753
|
+
"configurationValues": {
|
|
754
|
+
"type": "object",
|
|
755
|
+
"additionalProperties": {
|
|
756
|
+
"$ref": "pulumi.json#/Any"
|
|
757
|
+
},
|
|
758
|
+
"description": "Custom configuration values for addons specified as an object. This object value must match the JSON schema derived from describe-addon-configuration."
|
|
759
|
+
},
|
|
760
|
+
"preserve": {
|
|
761
|
+
"type": "boolean",
|
|
762
|
+
"description": "Indicates if you want to preserve the created resources when deleting the EKS add-on."
|
|
763
|
+
},
|
|
764
|
+
"resolveConflictsOnCreate": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"description": "How to resolve field value conflicts when migrating a self-managed add-on to an Amazon EKS add-on. Valid values are NONE and OVERWRITE. For more details see the CreateAddon API Docs."
|
|
767
|
+
},
|
|
768
|
+
"resolveConflictsOnUpdate": {
|
|
769
|
+
"type": "string",
|
|
770
|
+
"description": "How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Valid values are NONE, OVERWRITE, and PRESERVE. For more details see the UpdateAddon API Docs."
|
|
771
|
+
},
|
|
772
|
+
"serviceAccountRoleArn": {
|
|
773
|
+
"type": "string",
|
|
774
|
+
"description": "The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide.\n\n\t\t\t\t\t\tNote: To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide."
|
|
775
|
+
},
|
|
776
|
+
"tags": {
|
|
777
|
+
"type": "array",
|
|
778
|
+
"items": {
|
|
779
|
+
"type": "object",
|
|
780
|
+
"additionalProperties": {
|
|
781
|
+
"type": "string"
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
"description": "Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level."
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"requiredInputs": [
|
|
788
|
+
"addonName",
|
|
789
|
+
"cluster"
|
|
790
|
+
],
|
|
791
|
+
"isComponent": true
|
|
792
|
+
},
|
|
738
793
|
"eks:index:Cluster": {
|
|
739
794
|
"description": "Cluster is a component that wraps the AWS and Kubernetes resources necessary to run an EKS cluster, its worker nodes, its optional StorageClasses, and an optional deployment of the Kubernetes Dashboard.\n\n## Example Usage\n\n### Provisioning a New EKS Cluster\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as eks from \"@pulumi/eks\";\n\n// Create an EKS cluster with the default configuration.\nconst cluster = new eks.Cluster(\"cluster\", {});\n\n// Export the cluster's kubeconfig.\nexport const kubeconfig = cluster.kubeconfig;\n ```\n\n```python\n import pulumi\n import pulumi_eks as eks\n \n # Create an EKS cluster with the default configuration.\n cluster = eks.Cluster(\"cluster\")\n\n # Export the cluster's kubeconfig.\n pulumi.export(\"kubeconfig\", cluster.kubeconfig)\n ```\n\n```go\n package main\n \n import (\n \t\"github.com/pulumi/pulumi-eks/sdk/go/eks\"\n \t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n )\n\nfunc main() {\n \tpulumi.Run(func(ctx *pulumi.Context) error {\n \t\t// Create an EKS cluster with the default configuration.\n\t\tcluster, err := eks.NewCluster(ctx, \"cluster\", nil)\n \t\tif err != nil {\n \t\t\treturn err\n \t\t}\n \t\t// Export the cluster's kubeconfig.\n \t\tctx.Export(\"kubeconfig\", cluster.Kubeconfig)\n\t\treturn nil\n \t})\n }\n ```\n\n```csharp\n using System.Collections.Generic;\n using Pulumi;\n using Eks = Pulumi.Eks;\n \n return await Deployment.RunAsync(() =\u003e\n {\n \t// Create an EKS cluster with the default configuration.\n\tvar cluster = new Eks.Cluster(\"cluster\");\n \n \treturn new Dictionary\u003cstring, object?\u003e\n \t{\n \t\t// Export the cluster's kubeconfig.\n \t\t[\"kubeconfig\"] = cluster.Kubeconfig,\n \t};\n });\n\n```\n\n```java\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.eks.Cluster;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n\tpublic static void main(String[] args) {\n\t\tPulumi.run(App::stack);\n\t}\n\n\t public static void stack(Context ctx) {\n \t\t// Create an EKS cluster with the default configuration.\n \t\tvar cluster = new Cluster(\"cluster\");\n \n \t\t// Export the cluster's kubeconfig.\n\t\tctx.export(\"kubeconfig\", cluster.kubeconfig());\n\t}\n }\n```\n\n```yaml\nresources:\n# Create an EKS cluster with the default configuration.\ncluster:\ntype: eks:Cluster\noutputs:\n# Export the cluster's kubeconfig.\nkubeconfig: ${cluster.kubeconfig}\n\n```\n\u003c!--End PulumiCodeChooser --\u003e",
|
|
740
795
|
"properties": {
|
package/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export { VpcCni, VpcCniOptions } from "./cni";
|
|
|
4
4
|
export { NodeGroupSecurityGroup, createNodeGroupSecurityGroup } from "./securitygroup";
|
|
5
5
|
export { StorageClass, EBSVolumeType, createStorageClass } from "./storageclass";
|
|
6
6
|
export { InputTags, UserStorageClasses } from "./utils";
|
|
7
|
+
export { Addon, AddonOptions } from "./addon";
|
package/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.createStorageClass = exports.createNodeGroupSecurityGroup = exports.NodeGroupSecurityGroup = exports.VpcCni = exports.createManagedNodeGroup = exports.NodeGroupV2 = exports.NodeGroup = exports.ManagedNodeGroup = exports.getRoleProvider = exports.ClusterCreationRoleProvider = exports.Cluster = exports.AuthenticationMode = exports.AccessEntryType = void 0;
|
|
16
|
+
exports.Addon = exports.createStorageClass = exports.createNodeGroupSecurityGroup = exports.NodeGroupSecurityGroup = exports.VpcCni = exports.createManagedNodeGroup = exports.NodeGroupV2 = exports.NodeGroup = exports.ManagedNodeGroup = exports.getRoleProvider = exports.ClusterCreationRoleProvider = exports.Cluster = exports.AuthenticationMode = exports.AccessEntryType = void 0;
|
|
17
17
|
var cluster_1 = require("./cluster");
|
|
18
18
|
Object.defineProperty(exports, "AccessEntryType", { enumerable: true, get: function () { return cluster_1.AccessEntryType; } });
|
|
19
19
|
Object.defineProperty(exports, "AuthenticationMode", { enumerable: true, get: function () { return cluster_1.AuthenticationMode; } });
|
|
@@ -32,4 +32,6 @@ Object.defineProperty(exports, "NodeGroupSecurityGroup", { enumerable: true, get
|
|
|
32
32
|
Object.defineProperty(exports, "createNodeGroupSecurityGroup", { enumerable: true, get: function () { return securitygroup_1.createNodeGroupSecurityGroup; } });
|
|
33
33
|
var storageclass_1 = require("./storageclass");
|
|
34
34
|
Object.defineProperty(exports, "createStorageClass", { enumerable: true, get: function () { return storageclass_1.createStorageClass; } });
|
|
35
|
+
var addon_1 = require("./addon");
|
|
36
|
+
Object.defineProperty(exports, "Addon", { enumerable: true, get: function () { return addon_1.Addon; } });
|
|
35
37
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,qCAgBmB;AAdf,0GAAA,eAAe,OAAA;AAEf,6GAAA,kBAAkB,OAAA;AAClB,kGAAA,OAAO,OAAA;AAOP,sHAAA,2BAA2B,OAAA;AAE3B,0GAAA,eAAe,OAAA;AAGnB,yCAQqB;AAPjB,6GAAA,gBAAgB,OAAA;AAEhB,sGAAA,SAAS,OAAA;AACT,wGAAA,WAAW,OAAA;AAGX,mHAAA,sBAAsB,OAAA;AAE1B,6BAA8C;AAArC,6FAAA,MAAM,OAAA;AACf,iDAAuF;AAA9E,uHAAA,sBAAsB,OAAA;AAAE,6HAAA,4BAA4B,OAAA;AAC7D,+CAAiF;AAA3C,kHAAA,kBAAkB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,qCAgBmB;AAdf,0GAAA,eAAe,OAAA;AAEf,6GAAA,kBAAkB,OAAA;AAClB,kGAAA,OAAO,OAAA;AAOP,sHAAA,2BAA2B,OAAA;AAE3B,0GAAA,eAAe,OAAA;AAGnB,yCAQqB;AAPjB,6GAAA,gBAAgB,OAAA;AAEhB,sGAAA,SAAS,OAAA;AACT,wGAAA,WAAW,OAAA;AAGX,mHAAA,sBAAsB,OAAA;AAE1B,6BAA8C;AAArC,6FAAA,MAAM,OAAA;AACf,iDAAuF;AAA9E,uHAAA,sBAAsB,OAAA;AAAE,6HAAA,4BAA4B,OAAA;AAC7D,+CAAiF;AAA3C,kHAAA,kBAAkB,OAAA;AAExD,iCAA8C;AAArC,8FAAA,KAAK,OAAA"}
|
package/package.json
CHANGED
package/package.json.dev
CHANGED