
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
recharge-api
Advanced tools
Ruby client for ReCharge Payments' recurring payments API for Shopify.
Ruby gems:
gem install recharge-api
Bundler:
gem "recharge-api", :require => "recharge"
An API key is required. The key can be set via ReCharge.api_key or via the RECHARGE_API_KEY
environment variable.
require "recharge"
ReCharge.api_key = "YOUR_KEY" # Can also use Recharge
data = {
:address_id => 123234321,
:customer_id => 565728,
# ... more stuff
:next_charge_scheduled_at => Time.new,
:properties => {
:name => "size",
:value => "medium"
}
}
subscription = ReCharge::Subscription.create(data)
subscription.address_id = 454343
subscription.save
# Or
ReCharge::Subscription.update(id, data)
subscription = ReCharge::Subscription.new(data)
subscription.save
order1 = ReCharge::Order.get(123123)
order1.line_items.each do |li|
p li.title
p li.quantity
end
order2 = ReCharge::Order.get(453321)
p "Different" if order1 != order2
JSON.dump(order2.to_h)
customers = ReCharge::Customer.list(:page => 10, :limit => 50)
customers.each do |customer|
addresses = ReCharge::Customer.addresses(customer.id)
# ...
end
For complete documentation refer to the API docs: http://rdoc.info/gems/recharge-api
Add the following to your Rakefile:
require "recharge/tasks"
This will add the following tasks:
recharge:hook:create - create webhook HOOK to be sent to CALLBACKrecharge:hooks:delete - delete the webhook(s) given by IDrecharge:hooks:delete_all - delete all webhooksrecharge:hooks:list - list webhooksAll tasks require RECHARGE_API_KEY be set.
For example, to create a hook run the following:
rake recharge:hooks:create RECHARGE_API_KEY=YOURKEY HOOK=subscription/created CALLBACK=https://example.com/callback
Released under the MIT License: www.opensource.org/licenses/MIT
Made by ScreenStaring
FAQs
Unknown package
We found that recharge-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.