@atala/apollo
Advanced tools
Comparing version 1.2.10 to 1.2.15
(function (_, kotlin_kotlin) { | ||
'use strict'; | ||
//region block: imports | ||
var toString = kotlin_kotlin.$_$.v4; | ||
var toString = kotlin_kotlin.$_$.w4; | ||
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.m; | ||
var protoOf = kotlin_kotlin.$_$.r4; | ||
var hashCode = kotlin_kotlin.$_$.e4; | ||
var classMeta = kotlin_kotlin.$_$.z3; | ||
var setMetadataFor = kotlin_kotlin.$_$.s4; | ||
var protoOf = kotlin_kotlin.$_$.s4; | ||
var hashCode = kotlin_kotlin.$_$.f4; | ||
var classMeta = kotlin_kotlin.$_$.a4; | ||
var setMetadataFor = kotlin_kotlin.$_$.t4; | ||
var isBlank = kotlin_kotlin.$_$.g5; | ||
@@ -32,3 +32,3 @@ //endregion | ||
if (other instanceof Engine) { | ||
tmp = other.ye_1 === this.ye_1; | ||
tmp = other.pp_1 === this.pp_1; | ||
} else { | ||
@@ -40,14 +40,14 @@ tmp = false; | ||
protoOf(Engine).hashCode = function () { | ||
return this.ye_1; | ||
return this.pp_1; | ||
}; | ||
function Engine() { | ||
this.ye_1 = hashCode(new Object()); | ||
this.pp_1 = hashCode(new Object()); | ||
} | ||
function Mac(algorithm, engine) { | ||
this.cf_1 = algorithm; | ||
this.df_1 = engine; | ||
this.tp_1 = algorithm; | ||
this.up_1 = engine; | ||
// Inline function 'org.kotlincrypto.core.mac.internal.commonInit' call | ||
// Inline function 'kotlin.require' call | ||
// Inline function 'kotlin.text.isNotBlank' call | ||
var this_0 = this.cf_1; | ||
var this_0 = this.tp_1; | ||
// Inline function 'kotlin.contracts.contract' call | ||
@@ -60,11 +60,11 @@ if (!!isBlank(this_0)) { | ||
} | ||
protoOf(Mac).ef = function () { | ||
return this.cf_1; | ||
protoOf(Mac).vp = function () { | ||
return this.tp_1; | ||
}; | ||
protoOf(Mac).ff = function (input) { | ||
this.df_1.bf(input, 0, input.length); | ||
protoOf(Mac).wp = function (input) { | ||
this.up_1.sp(input, 0, input.length); | ||
}; | ||
protoOf(Mac).ze = function () { | ||
var final = this.df_1.ze(); | ||
this.df_1.af(); | ||
protoOf(Mac).qp = function () { | ||
var final = this.up_1.qp(); | ||
this.up_1.rp(); | ||
return final; | ||
@@ -75,3 +75,3 @@ }; | ||
if (other instanceof Mac) { | ||
tmp = other.df_1.equals(this.df_1); | ||
tmp = other.up_1.equals(this.up_1); | ||
} else { | ||
@@ -83,7 +83,7 @@ tmp = false; | ||
protoOf(Mac).hashCode = function () { | ||
return this.df_1.hashCode(); | ||
return this.up_1.hashCode(); | ||
}; | ||
protoOf(Mac).toString = function () { | ||
// Inline function 'org.kotlincrypto.core.mac.internal.commonToString' call | ||
return 'Mac[' + this.ef() + ']@' + this.hashCode(); | ||
return 'Mac[' + this.vp() + ']@' + this.hashCode(); | ||
}; | ||
@@ -90,0 +90,0 @@ //region block: exports |
@@ -7,12 +7,12 @@ (function (_, kotlin_org_kotlincrypto_core_mac, kotlin_kotlin) { | ||
var fill = kotlin_kotlin.$_$.a3; | ||
var Unit_instance = kotlin_kotlin.$_$.i2; | ||
var toByte = kotlin_kotlin.$_$.t4; | ||
var protoOf = kotlin_kotlin.$_$.r4; | ||
var objectCreate = kotlin_kotlin.$_$.p4; | ||
var objectMeta = kotlin_kotlin.$_$.q4; | ||
var setMetadataFor = kotlin_kotlin.$_$.s4; | ||
var Unit_instance = kotlin_kotlin.$_$.h2; | ||
var toByte = kotlin_kotlin.$_$.u4; | ||
var protoOf = kotlin_kotlin.$_$.s4; | ||
var objectCreate = kotlin_kotlin.$_$.q4; | ||
var objectMeta = kotlin_kotlin.$_$.r4; | ||
var setMetadataFor = kotlin_kotlin.$_$.t4; | ||
var Mac = kotlin_org_kotlincrypto_core_mac.$_$.c; | ||
var THROW_CCE = kotlin_kotlin.$_$.y5; | ||
var THROW_CCE = kotlin_kotlin.$_$.x5; | ||
var Engine = kotlin_org_kotlincrypto_core_mac.$_$.b; | ||
var classMeta = kotlin_kotlin.$_$.z3; | ||
var classMeta = kotlin_kotlin.$_$.a4; | ||
//endregion | ||
@@ -27,8 +27,8 @@ //region block: pre-declaration | ||
Engine_0.call($this); | ||
$this.kg_1 = algorithm; | ||
$this.br_1 = algorithm; | ||
var tmp; | ||
if (key.length > digest.gg()) { | ||
var keyHash = digest.ig(key); | ||
if (key.length > digest.xq()) { | ||
var keyHash = digest.zq(key); | ||
// Inline function 'kotlin.also' call | ||
var this_0 = copyOf(keyHash, digest.gg()); | ||
var this_0 = copyOf(keyHash, digest.xq()); | ||
// Inline function 'kotlin.contracts.contract' call | ||
@@ -39,3 +39,3 @@ // Inline function 'org.kotlincrypto.macs.hmac.Engine.<init>.<anonymous>' call | ||
} else { | ||
tmp = copyOf(key, digest.gg()); | ||
tmp = copyOf(key, digest.xq()); | ||
} | ||
@@ -45,3 +45,3 @@ var sizedKey = tmp; | ||
var tmp_1 = 0; | ||
var tmp_2 = digest.gg(); | ||
var tmp_2 = digest.xq(); | ||
var tmp_3 = new Int8Array(tmp_2); | ||
@@ -55,6 +55,6 @@ while (tmp_1 < tmp_2) { | ||
} | ||
tmp_0.lg_1 = tmp_3; | ||
tmp_0.cr_1 = tmp_3; | ||
var tmp_5 = $this; | ||
var tmp_6 = 0; | ||
var tmp_7 = digest.gg(); | ||
var tmp_7 = digest.xq(); | ||
var tmp_8 = new Int8Array(tmp_7); | ||
@@ -68,6 +68,6 @@ while (tmp_6 < tmp_7) { | ||
} | ||
tmp_5.mg_1 = tmp_8; | ||
tmp_5.dr_1 = tmp_8; | ||
fill(sizedKey, 0); | ||
digest.ff($this.lg_1); | ||
$this.ng_1 = digest; | ||
digest.wp($this.cr_1); | ||
$this.er_1 = digest; | ||
return $this; | ||
@@ -79,4 +79,4 @@ } | ||
function Companion() { | ||
this.og_1 = 54; | ||
this.pg_1 = 92; | ||
this.fr_1 = 54; | ||
this.gr_1 = 92; | ||
} | ||
@@ -92,17 +92,17 @@ var Companion_instance; | ||
function Hmac_init_$Init$_0(engine, $this) { | ||
Mac.call($this, (engine instanceof Engine_0 ? engine : THROW_CCE()).kg_1, engine); | ||
Mac.call($this, (engine instanceof Engine_0 ? engine : THROW_CCE()).br_1, engine); | ||
Hmac.call($this); | ||
return $this; | ||
} | ||
protoOf(Engine_0).bf = function (input, offset, len) { | ||
this.ng_1.bf(input, offset, len); | ||
protoOf(Engine_0).sp = function (input, offset, len) { | ||
this.er_1.sp(input, offset, len); | ||
}; | ||
protoOf(Engine_0).ze = function () { | ||
var iFinal = this.ng_1.bg(); | ||
this.ng_1.ff(this.mg_1); | ||
return this.ng_1.ig(iFinal); | ||
protoOf(Engine_0).qp = function () { | ||
var iFinal = this.er_1.sq(); | ||
this.er_1.wp(this.dr_1); | ||
return this.er_1.zq(iFinal); | ||
}; | ||
protoOf(Engine_0).af = function () { | ||
this.ng_1.af(); | ||
this.ng_1.ff(this.lg_1); | ||
protoOf(Engine_0).rp = function () { | ||
this.er_1.rp(); | ||
this.er_1.wp(this.cr_1); | ||
}; | ||
@@ -109,0 +109,0 @@ function Engine_0() { |
@@ -6,7 +6,7 @@ (function (_, kotlin_org_kotlincrypto_hash_sha2, kotlin_org_kotlincrypto_macs_hmac, kotlin_kotlin) { | ||
var Hmac_init_$Init$ = kotlin_org_kotlincrypto_macs_hmac.$_$.a; | ||
var protoOf = kotlin_kotlin.$_$.r4; | ||
var objectCreate = kotlin_kotlin.$_$.p4; | ||
var protoOf = kotlin_kotlin.$_$.s4; | ||
var objectCreate = kotlin_kotlin.$_$.q4; | ||
var Hmac = kotlin_org_kotlincrypto_macs_hmac.$_$.b; | ||
var classMeta = kotlin_kotlin.$_$.z3; | ||
var setMetadataFor = kotlin_kotlin.$_$.s4; | ||
var classMeta = kotlin_kotlin.$_$.a4; | ||
var setMetadataFor = kotlin_kotlin.$_$.t4; | ||
//endregion | ||
@@ -31,4 +31,4 @@ //region block: pre-declaration | ||
return _; | ||
}(module.exports, require('./hash-sha2-js-ir.js'), require('./MACs-hmac-js-ir.js'), require('./kotlin-kotlin-stdlib.js'))); | ||
}(module.exports, require('./hash-library-sha2.js'), require('./MACs-hmac-js-ir.js'), require('./kotlin-kotlin-stdlib.js'))); | ||
//# sourceMappingURL=MACs-hmac-sha2-js-ir.js.map |
@@ -11,3 +11,3 @@ { | ||
"types": "Apollo.d.ts", | ||
"version": "1.2.10", | ||
"version": "1.2.15", | ||
"name": "@atala/apollo", | ||
@@ -14,0 +14,0 @@ "dependencies": { |
# Apollo | ||
[](http://kotlinlang.org) | ||
[](https://github.com/input-output-hk/atala-prism-apollo/actions/workflows/pull-request.yml) | ||
[](https://github.com/input-output-hk/atala-prism-apollo/actions/workflows/Deployment.yml) | ||
[](http://kotlinlang.org) | ||
![badge-license] | ||
![badge-latest-release] | ||
[![semantic-release-kotlin]](https://github.com/semantic-release/semantic-release) | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
![badge-platform-android] | ||
![badge-platform-ios] | ||
![badge-platform-jvm] | ||
![badge-platform-js] | ||
![badge-platform-js-node] | ||
@@ -163,4 +162,3 @@  | ||
dependencies { | ||
val apolloVersion = ... // Latest Apollo Version | ||
implementation("io.iohk.atala.prism.apollo:apollo:$apolloVersion") | ||
implementation("io.iohk.atala.prism.apollo:apollo:<latest version>") | ||
} | ||
@@ -178,3 +176,3 @@ ``` | ||
url: "git@github.com:input-output-hk/atala-prism-apollo.git", | ||
from: "latest version" | ||
from: "<latest version>" | ||
) | ||
@@ -216,3 +214,3 @@ ] | ||
"dependencies": { | ||
"@atala/apollo": "latest version of Apollo" | ||
"@atala/apollo": "<latest version>" | ||
} | ||
@@ -224,24 +222,2 @@ } | ||
You need to do the following: | ||
1. You need to let Gradle know where to search for the Apollo package | ||
2. Import the packages in the common target as per your project needs | ||
1. Once you insert the import in the common target, it will automatically retrieve each supported target knowing that the currently only available targets are: | ||
3. You need to use the new iOS hierarchy system (In case they have an iOS target) | ||
4. You need to use the same Kotlin version used in our project | ||
| Platform | Supported | | ||
|------------------------------------------|--------------------| | ||
| iOS x86 64 | :heavy_check_mark: | | ||
| iOS Arm 64 | :heavy_check_mark: | | ||
| iOS Simulator Arm 64 (Apple Silicon) | :heavy_check_mark: | | ||
| JVM | :heavy_check_mark: | | ||
| Android | :heavy_check_mark: | | ||
| JS Browser | :heavy_check_mark: | | ||
| NodeJS Browser | :heavy_check_mark: | | ||
| macOS X86 64 | :heavy_check_mark: | | ||
| macOS Arm 64 (Apple Silicon) | :heavy_check_mark: | | ||
**For the first, second & third point** we have two cases using Groovy and using Kotlin DSL | ||
### Using Groovy | ||
@@ -265,3 +241,3 @@ | ||
// This following is just an example you can import it as per you needs | ||
implementation 'io.iohk.atala.prism.apollo:apollo:${latest version}' | ||
implementation 'io.iohk.atala.prism.apollo:apollo:<latest version>' | ||
} | ||
@@ -296,5 +272,9 @@ } | ||
``` | ||
**For the third point** | ||
You need to use Kotlin version `1.9.21`. | ||
## How to use for Scala project | ||
```scala | ||
libraryDependencies += "io.iohk.atala.prism.apollo" % "apollo-jvm" % "<latest version>" | ||
``` | ||
## Usage | ||
@@ -318,1 +298,13 @@ | ||
and redistribute it freely. | ||
<!-- TAG_VERSION --> | ||
[badge-latest-release]: https://img.shields.io/badge/latest--release-1.2.10-blue.svg?style=flat | ||
[badge-license]: https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat | ||
[semantic-release-kotlin]: https://img.shields.io/badge/semantic--release-kotlin-blue?logo=semantic-release | ||
<!-- TAG_PLATFORMS --> | ||
[badge-platform-android]: http://img.shields.io/badge/-android-6EDB8D.svg?style=flat | ||
[badge-platform-ios]: http://img.shields.io/badge/-ios-CDCDCD.svg?style=flat | ||
[badge-platform-jvm]: http://img.shields.io/badge/-jvm-DB413D.svg?style=flat | ||
[badge-platform-js]: http://img.shields.io/badge/-js-F8DB5D.svg?style=flat | ||
[badge-platform-js-node]: https://img.shields.io/badge/-nodejs-68a063.svg?style=flat |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1125584
39
17883
304