New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atala/apollo

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atala/apollo - npm Package Compare versions

Comparing version 1.2.10 to 1.2.15

core-library-common.js

42

core-mac-js-ir.js
(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
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.21-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![Build](https://github.com/input-output-hk/atala-prism-apollo/actions/workflows/pull-request.yml/badge.svg)](https://github.com/input-output-hk/atala-prism-apollo/actions/workflows/pull-request.yml)
[![Deployment](https://github.com/input-output-hk/atala-prism-apollo/actions/workflows/Deployment.yml/badge.svg)](https://github.com/input-output-hk/atala-prism-apollo/actions/workflows/Deployment.yml)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.22-blue.svg?logo=kotlin)](http://kotlinlang.org)
![badge-license]
![badge-latest-release]
[![semantic-release-kotlin]](https://github.com/semantic-release/semantic-release)
![android](https://camo.githubusercontent.com/b1d9ad56ab51c4ad1417e9a5ad2a8fe63bcc4755e584ec7defef83755c23f923/687474703a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d616e64726f69642d3645444238442e7376673f7374796c653d666c6174)
![apple-silicon](https://camo.githubusercontent.com/a92c841ffd377756a144d5723ff04ecec886953d40ac03baa738590514714921/687474703a2f2f696d672e736869656c64732e696f2f62616467652f737570706f72742d2535424170706c6553696c69636f6e2535442d3433424246462e7376673f7374796c653d666c6174)
![ios](https://camo.githubusercontent.com/1fec6f0d044c5e1d73656bfceed9a78fd4121b17e82a2705d2a47f6fd1f0e3e5/687474703a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d696f732d4344434443442e7376673f7374796c653d666c6174)
![jvm](https://camo.githubusercontent.com/700f5dcd442fd835875568c038ae5cd53518c80ae5a0cf12c7c5cf4743b5225b/687474703a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d6a766d2d4442343133442e7376673f7374796c653d666c6174)
![js](https://camo.githubusercontent.com/3e0a143e39915184b54b60a2ecedec75e801f396d34b5b366c94ec3604f7e6bd/687474703a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d6a732d4638444235442e7376673f7374796c653d666c6174)
![getNode-js](https://camo.githubusercontent.com/d08fda729ceebcae0f23c83499ca8f06105350f037661ac9a4cc7f58edfdbca9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d6e6f64656a732d3638613036332e7376673f7374796c653d666c6174)
![macos](https://camo.githubusercontent.com/1b8313498db244646b38a4480186ae2b25464e5e8d71a1920c52b2be5212b909/687474703a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d6d61636f732d3131313131312e7376673f7374796c653d666c6174)
![badge-platform-android]
![badge-platform-ios]
![badge-platform-jvm]
![badge-platform-js]
![badge-platform-js-node]

@@ -163,4 +162,3 @@ ![Atala Prism Logo](Logo.png)

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc