
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@umm/accessor_utility_core
Advanced tools
アクセサ (もどき) として任意のオブジェクトからアクセスさせる際の型ベースのデータストアを提供します。
ConditionalWeakTable
が使いたい!$ npm install github:umm-projects/accessor_utility_core.git
AccessorUtility
を継承したクラスをこさえてください。using UnityEngine;
using AccessorUtility;
// 別に継承しなくても良いんだけど、毎回 Generic 書くのダルいので
public class SampleAccessor : AccessorUtility<MonoBehaviour, Component> {}
// interface として提供するコトで、ちょっと DI っぽく実装できます
public interface IRectTransformAccessor {
}
public static class RectTransformAccessorExtension {
// この拡張メソッド内でデータストアにインスタンスを保持します
// 型ベースなので、複数のキーを持たせて…、みたいなのは無理っす
public static RectTransform RectTransform(this IRectTransformAccessor self) {
// ココが強引なんだよなぁ…。
MonoBehaviour instance = (MonoBehaviour)self;
return SampleAccessor.instanceMapMap[instance][typeof(RectTransform)];
}
}
public class Hoge : MonoBehaviour, IRectTransformAccessor {
public void Start() {
Debug.Log(this.RectTransform().sizeDelta);
}
}
Copyright (c) 2017 Tetsuya Mori
Released under the MIT license, see LICENSE.txt
FAQs
Accessor Utility
We found that @umm/accessor_utility_core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.