bare-storage
Advanced tools
+3
-3
@@ -9,5 +9,5 @@ #include <bare.h> | ||
| bare_storage_persistent_dir(js_env_t *env) { | ||
| NSString *home = NSHomeDirectory(); | ||
| NSString *documents = [home stringByAppendingPathComponent:@"Documents"]; | ||
| return [documents UTF8String]; | ||
| NSFileManager *fileManager = [NSFileManager defaultManager]; | ||
| NSURL *url = [[fileManager URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask] firstObject]; | ||
| return [[url path] UTF8String]; | ||
| } | ||
@@ -14,0 +14,0 @@ |
+1
-1
| { | ||
| "name": "bare-storage", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Minimal, cross-platform directory locator for Bare", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
489034
014
7.69%